Unit 6: CI/CD with Jenkins - Practice Quiz

INT332 — Devops Virtualization And Configuration Management 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 In the Jenkins Master/Agent architecture, what is the primary role of the Jenkins Master?

Jenkins architecture (Master/Agent model) Easy
A. To execute all the build jobs natively
B. To replace Docker containers
C. To host the Git repositories
D. To schedule build jobs, dispatch them to agents, and monitor the results

2 What is the primary purpose of plugins in Jenkins?

Plugins management Easy
A. To write the actual source code of the application
B. To act as a secondary database
C. To extend Jenkins functionality and integrate with other tools
D. To increase the core software's disk size

3 What is a Jenkinsfile?

Jenkinsfile structure Easy
A. A text file that contains the definition of a Jenkins Pipeline and is checked into source control
B. A script used to uninstall Jenkins
C. A log file generated after a build fails
D. A configuration file for a Jenkins agent's operating system

4 What is a major advantage of Jenkins Pipeline jobs over Freestyle jobs?

Freestyle vs Pipeline jobs Easy
A. Pipeline jobs cannot use plugins
B. Pipeline jobs allow the build process to be defined as code (Pipeline-as-Code)
C. Pipeline jobs do not require a Jenkins Master
D. Pipeline jobs run only on Windows machines

5 Which keyword is used to start a Declarative Jenkins Pipeline block?

Declarative pipeline syntax Easy
A. pipeline {
B. node {
C. stage {
D. build {

6 What happens during the 'Checkout' stage of a Jenkins CI/CD pipeline?

Pipeline Stages: Checkout code from Git Easy
A. Source code is fetched from a version control system like Git
B. Docker containers are stopped
C. Unit tests are generated automatically
D. The application is deployed to production

7 In Jenkins, what is an 'artifact'?

Managing artifacts Easy
A. A deployable file or package (like a .jar or .zip) produced during a build
B. A plugin that has been deprecated
C. A failed test case
D. A Jenkins user with administrative privileges

8 What is the main feature of a Jenkins Multi-branch Pipeline?

Jenkins multi-branch pipelines Easy
A. It merges all branches into the main branch before building
B. It automatically discovers branches in a repository and creates a pipeline for each branch containing a Jenkinsfile
C. It deletes old branches from the repository automatically
D. It prevents developers from creating branches in Git

9 Why is running Docker inside Jenkins agents beneficial?

Docker inside Jenkins agents Easy
A. It allows builds to run in isolated, clean, and consistent containerized environments
B. It guarantees zero build failures
C. It automatically writes the Jenkinsfile
D. It forces all applications to be written in Go

10 Which of the following describes the process of sending a newly built Docker image to Docker Hub?

Publishing images to Docker Hub/GHCR Easy
A. Docker run
B. Docker push
C. Docker pull
D. Docker build

11 Which build trigger mechanism is more efficient and immediate: PollSCM or Webhooks?

Jenkins CI/CD Deployment Flows: Triggering builds (pollSCM, webhook) Easy
A. PollSCM, because it constantly asks Git for updates
B. Neither, both require manual intervention
C. Webhooks, because Git actively notifies Jenkins only when a change occurs
D. PollSCM, because it uses less CPU on the Git server

12 Where in Jenkins do you configure the paths for tools like JDK, Maven, and Git so that they can be used globally across jobs?

Global tool configuration Easy
A. Manage Jenkins -> Manage Users
B. Manage Jenkins -> Security
C. Manage Jenkins -> Global Tool Configuration
D. Inside the individual Jenkinsfile only

13 What is a Jenkins Agent?

Jenkins architecture (Master/Agent model) Easy
A. A monitoring dashboard
B. A type of pipeline syntax
C. A machine or container that connects to the Master and executes the actual build tasks
D. A plugin for GitHub

14 In a Declarative Pipeline, what is the purpose of the post block?

Post actions Easy
A. To define the source code repository
B. To trigger the pipeline periodically
C. To write data to a database before the build starts
D. To define actions to take after the pipeline or a specific stage completes, such as sending emails or cleaning up

15 Which of the following commands is typically used in a Jenkins pipeline to compile, test, and package a Java application using Maven?

Running Maven builds in pipelines Easy
A. docker build
B. mvn clean install
C. make install
D. npm run build

16 Which directory contains all Jenkins configurations, job definitions, and logs, and is the primary target for a Jenkins backup?

Backup & restore Easy
A. JENKINS_HOME
B. /etc/jenkins
C. /usr/bin/jenkins
D. /var/log/jenkins

17 What is the primary benefit of using Jenkins Shared Libraries?

Pipeline libraries Easy
A. It automatically patches vulnerabilities in Jenkins
B. It provides free cloud storage for artifacts
C. It allows developers to share reusable pipeline code across multiple Jenkinsfiles
D. It converts Scripted pipelines to Declarative pipelines

18 Why would you use parameters in a Jenkins pipeline?

Parameters Easy
A. To permanently delete the Jenkins master
B. To allow users to pass dynamic inputs (like branch names or environment tags) when triggering a build
C. To prevent developers from seeing the build logs
D. To bypass Jenkins security protocols

19 In a Jenkins pipeline, what is the purpose of test report plugins (like JUnit)?

Code coverage & test reports Easy
A. To block code commits to Git
B. To visualize test results and track the number of passed/failed tests over time
C. To skip failing tests so the build succeeds
D. To write the tests automatically for developers

20 How does the Jenkins Master typically communicate with an SSH-based agent?

Jenkins agents (SSH/SFTP/Container-based) Easy
A. By sending emails to the agent
B. By establishing a secure SSH connection to the agent machine using credentials
C. Through a shared Google Drive folder
D. By physically connecting a USB drive

21 In a Jenkins Master/Agent architecture, what happens to currently executing builds on an agent if the Jenkins Master node suddenly crashes?

Jenkins Foundations: Jenkins architecture (Master/Agent model) Medium
A. The agent takes over the Master's role temporarily to save the build logs.
B. The agent immediately aborts the build and waits for the Master to come back online.
C. The agent continues executing the build but the results and logs cannot be reported back until the Master recovers.
D. The build execution is transferred to another available agent automatically.

22 Which of the following is a primary advantage of using a Jenkins Pipeline job over a Freestyle job for a CI/CD workflow?

Jenkins Pipelines: Freestyle vs Pipeline jobs Medium
A. Freestyle jobs cannot integrate with Docker or third-party plugins.
B. Pipelines execute faster because they bypass the Jenkins Master node.
C. Pipelines do not require Jenkins agents and run directly on the Jenkins UI.
D. Pipelines allow the build configuration to be version-controlled in the source code repository as a Jenkinsfile.

23 In a Declarative Pipeline, which directive is used to control the execution of a stage based on specific conditions, such as the branch name?

Jenkins Pipelines: Declarative pipeline syntax Medium
A. if (branch == 'main') { ... }
B. trigger { ... }
C. when { ... }
D. condition { ... }

24 Which pipeline step is used to preserve a generated binary file (e.g., a .jar file) so that it can be downloaded directly from the Jenkins build results page?

Pipeline Stages: Managing artifacts Medium
A. publishBinary(target: 'target/*.jar')
B. archiveArtifacts artifacts: 'target/*.jar'
C. saveArtifacts(file: 'target/*.jar')
D. stash name: 'jar', includes: 'target/*.jar'

25 Why is it generally recommended to use Webhooks over pollSCM for triggering Jenkins builds from a Git repository?

Jenkins CI/CD Deployment Flows: Triggering builds (pollSCM, webhook) Medium
A. Webhooks automatically configure Jenkins agents for the build, whereas pollSCM requires manual configuration.
B. pollSCM requires an SSH connection, while Webhooks use secure FTP.
C. pollSCM cannot trigger Multi-branch pipelines.
D. pollSCM creates unnecessary overhead and API calls by constantly checking for changes, whereas Webhooks push an event to Jenkins only when a change occurs.

26 When configuring a Jenkins agent to build Docker images, what is the 'Docker outside of Docker' (DooD) approach?

Docker and Jenkins Integration: Docker inside Jenkins agents Medium
A. Running a Docker daemon inside a Docker container without mapping any host directories.
B. Mounting the host machine's /var/run/docker.sock into the Jenkins agent container so it uses the host's Docker daemon.
C. Installing Jenkins on a bare-metal server and avoiding Docker completely.
D. Using a remote API to build images on Docker Hub directly.

27 How do you correctly reference a Jenkins environment variable named BUILD_NUMBER within a sh step in a Declarative Pipeline?

Jenkins Pipelines: Parameters, environment variables Medium
A. sh "echo The build number is ${env.BUILD_NUMBER}"
B. sh 'echo The build number is ${env.BUILD_NUMBER}'
C. sh 'echo The build number is $jenkins.BUILD_NUMBER'
D. sh "echo The build number is %BUILD_NUMBER%"

28 If an underlying Jenkins agent does not have Maven installed on its OS, how can a pipeline still execute mvn clean install successfully?

Jenkins and Maven: Global tool configuration Medium
A. By configuring Maven in the 'Global Tool Configuration' and referencing it using the tools directive in the pipeline.
B. It is impossible; the agent OS must have Maven pre-installed.
C. By passing the --install-maven flag in the pipeline's sh step.
D. Jenkins automatically detects Java code and downloads Maven in the background.

29 What is the most secure way to authenticate and push a Docker image to Docker Hub within a Jenkins pipeline?

Docker and Jenkins Integration: Publishing images to Docker Hub/GHCR Medium
A. Store the credentials in an environment variable on the Jenkins Master OS.
B. Change the Docker Hub repository to public before pushing so authentication is not required.
C. Use the Jenkins Credentials Binding plugin (e.g., withCredentials block) to securely pass the username and password to docker login.
D. Hardcode the username and password in the Jenkinsfile using a sh 'docker login' command.

30 To add a new Linux-based Jenkins agent via SSH, which of the following is an absolute requirement on the target agent machine?

Jenkins CI/CD Deployment Flows: Jenkins agents (SSH/SFTP/Container-based) Medium
A. A running SSH daemon and a compatible Java Runtime Environment (JRE).
B. The Jenkins CLI .jar downloaded into the root directory.
C. Jenkins Master software installed on it.
D. Docker installed and configured to run as root.

31 How does a Jenkins Multi-branch Pipeline decide which branches to automatically build?

Jenkins Pipelines: Jenkins multi-branch pipelines Medium
A. Branches must be manually added to a text file in the Jenkins master directory.
B. It only builds the default branch (e.g., main or master).
C. It scans the repository and creates a pipeline only for branches that contain a recognized Jenkinsfile.
D. It builds every branch in the repository regardless of the content.

32 In a Declarative Pipeline, how can you ensure an email notification is sent ONLY when the build status changes from successful to failing?

Pipeline Stages: Post actions Medium
A. Write a shell script in the always block to parse the Jenkins logs.
B. Use the post { changed { ... } } block and check if the current status is failure.
C. Use the post { regression { ... } } block.
D. Use the post { failure { ... } } block.

33 What is the primary purpose of Jenkins Shared Libraries?

Jenkins CI/CD Deployment Flows: Pipeline libraries Medium
A. To share compiled .jar files across different Jenkins masters.
B. To store third-party Jenkins plugins locally.
C. To encapsulate and reuse common Groovy pipeline code across multiple Jenkinsfiles.
D. To provide a backup mechanism for Jenkins configuration.

34 Which of the following represents a significant difference between Scripted Pipeline syntax and Declarative Pipeline syntax?

Jenkins Pipelines: Scripted pipeline syntax Medium
A. Scripted pipelines use strict predefined blocks like pipeline, stages, and steps, while Declarative pipelines do not.
B. Declarative pipelines require Groovy programming knowledge, whereas Scripted pipelines use YAML.
C. Scripted pipelines are executed sequentially using native Groovy control structures (like if/else), while Declarative pipelines rely on predefined structure directives (like when).
D. Only Scripted pipelines can interact with Git repositories.

35 To perform a complete backup of Jenkins, including job configurations, plugin configurations, and build histories, which directory is the most critical to back up?

Backup & restore Medium
A. /etc/jenkins/
B. /usr/bin/jenkins/
C. $JENKINS_HOME
D. /var/log/jenkins/

36 After running mvn clean test jacoco:report in a Jenkins pipeline, how is the coverage report typically visualized on the Jenkins UI?

Jenkins and Maven: Code coverage & test reports Medium
A. By enabling the Maven Global Coverage checkbox in Jenkins settings.
B. Jenkins automatically detects and visualizes .xml files without any plugins.
C. By uploading the report to Docker Hub.
D. By using a post-build step provided by a plugin like JaCoCo or Cobertura to parse the generated XML/HTML reports.

37 According to Jenkins best practices, why should complex logic and heavy processing be avoided directly inside the Jenkins Master node (e.g., inside the Jenkinsfile Groovy context without an agent)?

Pipeline best practices Medium
A. Because the Jenkinsfile becomes unreadable when complex logic is added.
B. Because Jenkins Master cannot connect to the internet.
C. Because Groovy cannot execute mathematical operations.
D. Because executing heavy builds on the master can consume CPU/Memory resources needed to manage the UI and agent coordination, causing Jenkins to crash.

38 When implementing Role-Based Access Control (RBAC) in Jenkins using the Role Strategy Plugin, how are permissions applied to specific jobs?

Jenkins Foundations: Security, users, roles Medium
A. By modifying the Jenkinsfile to include an authorized_users list.
B. By creating a 'Project Role' with a regular expression pattern that matches the job names, and assigning users to that role.
C. By assigning an IP address to the job.
D. By creating a separate Jenkins master for each user.

39 In a Declarative Pipeline, which block is used to specify that the entire pipeline should execute inside a specific Docker container rather than directly on the agent's host OS?

Docker and Jenkins Integration: Building Docker images using Jenkins Medium
A. agent { docker { image 'maven:3-alpine' } }
B. steps { docker.image('maven:3-alpine').inside() }
C. docker-compose up 'maven:3-alpine'
D. environment { dockerImage = 'maven:3-alpine' }

40 When configuring a deployment step in a pipeline to push code to a remote Linux server via SSH, which approach ensures the pipeline handles host key verification securely without hanging the build?

Jenkins CI/CD Deployment Flows: Deployments to servers/clouds Medium
A. Disable SSH entirely and use HTTP.
B. Pre-configure the Jenkins agent's ~/.ssh/known_hosts file with the target server's key, or use SSH plugins that handle host key verification dynamically.
C. Run ssh -o StrictHostKeyChecking=yes and wait for the interactive prompt in the pipeline console.
D. Hardcode the server's private key inside the Jenkinsfile.

41 In a distributed Jenkins architecture operating across multiple isolated network zones, you need to connect an agent residing in a private subnet (no inbound internet access) to a Jenkins Master in a public cloud. Which connection strategy and configuration is most secure and architecturally appropriate?

Jenkins Foundations: Jenkins architecture (Master/Agent model) Hard
A. Install a Jenkins Master in the private subnet and configure a Master-to-Master plugin for build synchronization.
B. Configure the agent to use SSH (outbound from Master to Agent) by opening port 22 on the agent's firewall.
C. Use the REST API on the Master to push build payloads to a local proxy running on the agent's host.
D. Configure the agent as an Inbound Agent (JNLP/WebSocket) so the agent initiates an outbound connection to the Master's TCP port.

42 When utilizing the Role-Based Strategy plugin for Jenkins security, a user is assigned a Global role with 'Overall/Read' access and an Item role matching the regex ^PROD-.* with 'Job/Build' access. However, the user cannot see any jobs starting with PROD-. What is the most likely cause of this issue?

Jenkins Foundations: Security, users, roles Hard
A. The Item role also requires 'Job/Read' permissions to make the jobs visible, as 'Job/Build' does not implicitly grant read access.
B. The regex ^PROD-.* is invalid in Jenkins Role-Based Strategy and should be PROD-*.
C. The user must be added to the Jenkins internal directory as an administrator before regex-based roles can take effect.
D. The Global role needs 'Job/Workspace' permissions for the user to view the jobs.

43 In a Declarative Pipeline, you have a stage that requires a heavy Docker agent to run. You want to execute a when condition based on a branch name before Jenkins provisions the Docker agent, to save compute resources. How can this be achieved?

Jenkins Pipelines: Declarative pipeline syntax Hard
A. Use a script block with an if statement wrapped around the agent directive.
B. Include beforeAgent true inside the when directive of that stage.
C. Declare agent none globally and use dockerNode inside the when block.
D. Place the when block outside of the stage block.

44 When defining a matrix block in a Declarative Pipeline to test multiple combinations of OS and browsers, you want to skip the combination of OS 'macOS' and browser 'Internet Explorer'. Which syntax correctly prevents this specific cell from executing?

Jenkins Pipelines: Declarative pipeline syntax Hard
A. Add a when directive at the matrix level with expression { return !(os == 'macOS' && browser == 'IE') }.
B. Use an exclude directive containing an axis block defining the specific name and values to omit.
C. Use the skip directive inside the stages block of the matrix definition.
D. Define an ignoreFailures block for the specific matrix combination.

45 You are writing a Scripted Pipeline that dynamically generates parallel execution branches based on an array of environments. You want all parallel branches to finish execution even if one fails, so you can gather complete test results. Which approach guarantees this behavior?

Jenkins Pipelines: Scripted pipeline syntax Hard
A. Add ignoreErrors: true to the global pipeline options.
B. Wrap the parallel step in a catchError block with buildResult: 'SUCCESS'.
C. Use try/catch blocks inside the closure of each dynamically generated branch.
D. Set failFast: false inside the parallel step when passing the map of branches.

46 You are utilizing a Jenkins Shared Library and need to load a static configuration file (e.g., config.json) stored in the library's resources folder securely within a sandbox-restricted Scripted Pipeline. Which method is correct and adheres to Jenkins security practices?

Jenkins CI/CD Deployment Flows: Pipeline libraries Hard
A. Use standard Groovy File I/O: new File('resources/config.json').text
B. Use the libraryResource step: def config = libraryResource 'config.json'
C. Use the @Resource annotation at the top of the Jenkinsfile.
D. Load it via the sh step: def config = sh(script: 'cat resources/config.json', returnStdout: true)

47 What is a primary functional difference between importing a shared library using the @Library('my-lib') _ annotation versus dynamically loading it using the library 'my-lib' step within a pipeline?

Jenkins CI/CD Deployment Flows: Pipeline libraries Hard
A. The @Library annotation allows dynamic version picking (e.g., based on build parameters), while the library step requires a statically defined version.
B. The @Library annotation executes the library in the Groovy Sandbox, while the library step grants the code full script approval.
C. The library step can be used conditionally during pipeline execution, while @Library resolves and loads before the script compiles.
D. The @Library annotation cannot load global variables (vars/), whereas the library step can.

48 In a Declarative Pipeline, an environment variable APP_ENV is defined in three places: as a global parameter (parameters { string(name: 'APP_ENV', defaultValue: 'dev') }), in the global environment block (environment { APP_ENV = 'qa' }), and inside a specific stage environment block (environment { APP_ENV = 'prod' }). What will be the value of env.APP_ENV when accessed within a script step in that specific stage?

Jenkins Pipelines: Parameters, environment variables Hard
A. prod
B. dev
C. qa
D. null, as a variable cannot be redeclared at different scopes.

49 In a Jenkins Multi-branch Pipeline project mapped to a GitHub repository, the 'Orphaned Item Strategy' is configured to discard old items with 'Max # of old items to keep' set to 0. A developer deletes a feature branch on GitHub. What happens to the corresponding Jenkins job and its build history on the next branch indexing?

Jenkins Pipelines: Jenkins multi-branch pipelines Hard
A. The build history is preserved in a 'Deleted Branches' folder, but the job configuration is removed.
B. The branch job and all of its build history are immediately deleted from Jenkins.
C. The job remains active but is marked as 'disabled' because the source branch no longer exists.
D. The job is kept, but Jenkins throws an SCMSource anomaly error in the indexing log.

50 You are implementing Docker-out-of-Docker (DooD) on a Jenkins agent by mounting /var/run/docker.sock into the Jenkins agent container. Which of the following is the most critical security risk associated with this configuration?

Docker and Jenkins Integration: Docker inside Jenkins agents Hard
A. The Jenkins agent bypasses image registry TLS verification, allowing Man-in-the-Middle attacks.
B. Docker API rate limits will be applied to the Jenkins master rather than the agent.
C. A compromised Jenkins agent can easily gain root-level access to the underlying host system.
D. The Jenkins agent can saturate the host's network interfaces, leading to a Denial of Service.

51 When using docker.image('maven:3-alpine').inside { ... } in a Jenkins Pipeline, how does the Docker Pipeline plugin handle the Jenkins workspace by default?

Docker and Jenkins Integration: Using Docker plugins Hard
A. It copies the workspace contents via docker cp before execution and copies them back after.
B. It relies on the JENKINS_HOME environment variable to locate the workspace across the network.
C. It mounts the host's workspace directory as a bind mount into the container using the exact same path.
D. It creates an isolated temporary volume for the workspace and discards it after execution.

52 A pipeline uses the docker global variable to push an image to an external registry: docker.withRegistry('https://registry.example.com', 'registry-credentials-id') { ... }. How does the Docker Pipeline plugin manage the credentials during this block?

Docker and Jenkins Integration: Publishing images to Docker Hub/GHCR Hard
A. It intercepts HTTP requests to the registry and injects the basic authentication headers at the network layer.
B. It generates a temporary config.json file containing the authentication token and mounts it into the container.
C. It executes docker login, runs the block, and forcefully runs docker logout in a finally block.
D. It injects the credentials as environment variables DOCKER_USER and DOCKER_PASS.

53 In a Continuous Deployment pipeline, multiple commits might trigger concurrent builds. You want to ensure that an older build that took longer to test does not overwrite a deployment from a newer build that finished faster. Which Declarative Pipeline step/feature natively provides this concurrency control?

Jenkins CI/CD Deployment Flows: Deployments to servers/clouds Hard
A. The throttleConcurrentBuilds property in the stage block.
B. The milestone step placed at critical boundaries.
C. Setting disableConcurrentBuilds() in the options directive.
D. The lock step around the deployment stage.

54 Jenkins is configured to trigger a build via a GitHub Webhook. If GitHub sends two push events for the exact same commit hash simultaneously, and the job is currently not running, how does the Jenkins quiet period and queue mechanism handle this?

Jenkins CI/CD Deployment Flows: Triggering builds (pollSCM, webhook) Hard
A. Jenkins merges the two identical webhook requests in the queue and starts only one build.
B. Jenkins immediately starts two parallel builds because webhooks bypass the quiet period.
C. Jenkins starts the first build, and the second webhook triggers a build only after the first one successfully completes.
D. Jenkins rejects the second webhook payload with a 409 Conflict status.

55 During a Maven build stage (sh 'mvn clean test'), some tests fail, causing the step to return a non-zero exit code. You still want the pipeline to proceed to the next stage to publish JUnit test reports but ultimately mark the build as unstable/failed. Which scripted syntax correctly handles this?

Jenkins and Maven: Code coverage & test reports Hard
A. Use catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { sh 'mvn clean test' }
B. Append || true to the shell command: sh 'mvn clean test || true' and let Jenkins parse the results automatically.
C. Use warnError('Tests failed') { sh 'mvn clean test' } which halts execution but publishes reports.
D. Use try { sh 'mvn clean test' } finally { currentBuild.result = 'SUCCESS' }

56 When performing a live backup of the JENKINS_HOME directory via filesystem snapshots (e.g., LVM or ZFS) while jobs are actively running, which specific subdirectory is most prone to data corruption or inconsistent states upon restoration?

Jenkins Foundations: Backup & restore Hard
A. secrets/
B. userContent/
C. jobs/<job_name>/builds/
D. plugins/

57 A Jenkins Declarative Pipeline specifies tools { maven 'Maven-3.8' }. The Jenkins master has this tool configured to auto-install via Apache. However, the build runs on a Windows agent where executing shell scripts is not natively supported. How does Jenkins handle the Maven installation on the Windows agent?

Jenkins and Maven: Global tool configuration Hard
A. Jenkins fails the build because the auto-installer relies on bash scripts to unpack tarballs.
B. Jenkins uses Java to download, extract the zip/tarball, and correctly configures the PATH and M2_HOME environment variables regardless of the OS.
C. Jenkins pushes an MSI installer to the Windows agent and attempts silent installation.
D. The build stalls indefinitely because Jenkins attempts to execute mvn instead of mvn.cmd.

58 You have an upstream job 'Build-Core' that archives a .jar artifact and a downstream job 'Deploy-Core' that retrieves it using the Copy Artifact plugin. To ensure end-to-end traceability of where a specific .jar version was deployed, what must be configured?

Jenkins Pipelines: Pipeline Stages: Managing artifacts Hard
A. Configure 'Keep this build forever' on both the upstream and downstream jobs.
B. Store the .jar in an external Nexus repository and poll the repository from the downstream job.
C. Enable 'Fingerprint all archived artifacts' in the upstream job and use the fingerprint step in the downstream job after copying.
D. Use the archiveArtifacts step in the downstream job to overwrite the original artifact metadata.

59 When provisioning dynamic container-based Jenkins agents using the Kubernetes plugin, you notice the pod starts, but Jenkins immediately terminates the pod after 100 seconds with an 'Agent offline' error. The pod logs show that your custom build container completed its initial command. What is the fundamental misconfiguration?

Jenkins CI/CD Deployment Flows: Jenkins agents (SSH/SFTP/Container-based) Hard
A. The pod lacks a jnlp container or the custom container did not override the entrypoint to run the Jenkins remoting agent.
B. The Kubernetes Service Account used by Jenkins lacks pods/exec permissions.
C. The Jenkins master URL configured in the Kubernetes plugin uses HTTP instead of HTTPS.
D. The custom container must expose port 22 and start an SSH daemon to allow the Jenkins master to connect.

60 To secure Jenkins from unauthorized payload spoofing via GitHub webhooks, you configure an HMAC secret in the GitHub App/Webhook settings. How does the Jenkins GitHub plugin validate this incoming payload?

Docker and Jenkins Integration: Jenkins and GitHub integration Hard
A. It decrypts the payload body using its private SSL key.
B. It makes a synchronous API call back to GitHub to confirm the payload's origin before triggering the build.
C. It extracts the OAuth token from the payload and authenticates against the GitHub API.
D. It computes the SHA-256 hash of the payload body using the configured shared secret and compares it to the X-Hub-Signature-256 header.