Exam Information
Free practice questions with explanations
CloudBees CJE Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 11
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Building Continuous Delivery (CD) Pipelines
A payments company has a Jenkins controller shared by four product teams. Each team commits its own Jenkinsfile in its repository. The platform team must ensure that the production deployment stage in every team's pipeline can only run after a manual approval by the release manager, and no team may remove that gate. Teams must still be able to change their build and test stages freely without waiting on the platform team. Which approach best meets these requirements?
Correct Answer: CExplanationA shared library function that wraps the approval input step lets teams keep ownership of their build and test stages while the gate lives in a single place the teams cannot edit per project. Relying on code review alone (A) allows a silent removal of the gate. Build Authorization (C) controls who starts a build, not a stage inside a pipeline, so it cannot gate one stage. Splitting into separate jobs (D) adds linked-job complexity and does not stop a team from altering the production job's own definition in its repository.
-
2 Question 2 Dropdown CD-as-Code Best Practices
A platform team runs Jenkins on Kubernetes with the Kubernetes plugin. Build pods must be fungible and must not carry state from one build to the next, and the image used for the build agent must be pinned to a specific version for traceability. Complete the pod template snippet by selecting the correct value for each blank.
Choose the correct value for each blank.
podTemplate(cloud: 'k8s', : true, containers: [containerTemplate(name: 'maven', image: 'maven:3.9.6-eclipse-temurin-17', ttyEnabled: true)]) { node(POD_LABEL) { ... } } Setting makes the agent pods removed when the build completes, and sets the pod's working area so each run starts clean.Correct Answer:podTemplate(cloud: 'k8s', ephemeral: true, containers: [containerTemplate(name: 'maven', image: 'maven:3.9.6-eclipse-temurin-17', ttyEnabled: true)]) { node(POD_LABEL) { ... } } Setting podRetention makes the agent pods removed when the build completes, and emptyDirWorkspaceVolume sets the pod's working area so each run starts clean.
ExplanationSetting podRetention to a value that does not keep pods (the default behaviour is to delete them) and using an emptyDirWorkspaceVolume gives each build a fresh workspace that is discarded with the pod, which is what makes agents fungible. The ephemeral option is a distractor that is not a real podTemplate parameter for this purpose. idleMinutes only controls how long an idle agent is kept, so it does not guarantee a clean start. hostPathWorkspaceVolume shares node storage across builds and reintroduces state, which violates the requirement.
-
3 Question 3 Order list Jenkins usage (features and functionality)
A release engineer must set up a Freestyle job that builds a Java application only when a developer clicks a button, accepts a version string at start, and stores the packaged artifact so later jobs can retrieve it. The job already exists with no parameters or post-build actions configured. Arrange the steps in the order they must be performed.
Drag the steps into the correct order, or use the arrows.
- Save the job configuration and run it with a value for VERSION
- Add a Post-build Action to archive the target JAR artifacts
- Set the job to be triggered by a manual start rather than by SCM polling
- Enable the This project is parameterized option and add a String Parameter named VERSION
- Add a Maven build step that references the VERSION value in its goals
Correct Answer:- Enable the This project is parameterized option and add a String Parameter named VERSION
- Add a Maven build step that references the VERSION value in its goals
- Add a Post-build Action to archive the target JAR artifacts
- Save the job configuration and run it with a value for VERSION
- Set the job to be triggered by a manual start rather than by SCM polling
ExplanationParameters must exist before a build can be started with a value, so the parameter is added first and then referenced by the build step. The archive action is a post-build step that depends on the build having produced the JAR, so it follows the build step. The trigger setting is configured before the job is saved and run. Saving and running the job comes last, since the configuration must be persisted before a parameterized run supplies VERSION. The ordering matters because the Maven step cannot read a parameter that has not been defined yet.
-
4 Question 4 Single choice Jenkins usage (features and functionality)
A team runs a Freestyle job that executes a long Maven test suite across three independent module groups. The team wants the three groups to run at the same time on available agents, and the job must still report one overall result with a single set of test reports. Build time is the primary concern and the team does not want to maintain three separate jobs. Which is the most suitable approach?
Correct Answer: DExplanationA Matrix job with a user-defined axis runs each combination as a configuration that can execute in parallel across agents, and it aggregates into one parent build with combined test results. Chaining Freestyle jobs (B) runs them sequentially, which fails the build-time goal. Build steps within a single Freestyle job run in sequence, not concurrently (C). Executing concurrent builds with repeated triggers (D) creates separate builds whose test reports are not aggregated into one result, failing the single-report requirement.
-
5 Question 5 Drag and drop Key CI/CD/Jenkins Concepts
A product group is reviewing its delivery terminology before writing an automation policy. Its leads want each practice correctly matched to the outcome it guarantees for every merged change that passes the automated pipeline. Match each practice to the outcome that describes it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Continuous deploymentContinuous integrationContinuous deliveryChanges are deployed to production only when a release manager approves each oneEvery change is merged to the mainline and automatically built and testedEvery validated change is kept in a releasable state and can be deployed on demandEvery change is manually reviewed and deployed in a fixed monthly release windowEvery change that passes the pipeline is released to production with no manual approvalCorrect Answer:- Continuous integration → Every change is merged to the mainline and automatically built and tested
- Continuous delivery → Every validated change is kept in a releasable state and can be deployed on demand
- Continuous deployment → Every change that passes the pipeline is released to production with no manual approval
ExplanationContinuous integration focuses on frequent merging with automated build and test feedback, continuous delivery keeps the software releasable with deployment available on demand, and continuous deployment removes the manual gate so passing changes reach production automatically. The two extra targets describe manual, gated release models that contradict the automation defined by all three practices, so they are not valid matches for any of them.
-
6 Question 6 Single choice Building Continuous Delivery (CD) Pipelines
A Declarative Pipeline deploys a service to a staging environment and then to production. The business wants the pipeline to wait for a human decision before production, but the release manager is in a different time zone and the pipeline must not hold an executor or agent while it waits, because agents are scarce and billed by the hour. Which implementation best meets this requirement?
Correct Answer: BExplanationAn input step placed outside a node or agent block pauses the Pipeline without occupying an executor, which is exactly what is needed when agents are scarce and billed. Placing input inside an agent block (A) keeps the executor allocated for the entire wait. A sleep step (C) holds the executor and does not respond to an approval at all. A timeout that proceeds automatically (D) removes the human gate instead of enforcing it, which violates the approval requirement.
-
7 Question 7 Multiple choice CD-as-Code Best Practices
A company runs a Jenkins controller and several permanent Linux VM agents that have accumulated manually installed JDK versions and cron jobs over two years. Builds intermittently fail because of leftover state, and a recent security audit flagged the VMs for drift. The team wants agents to become replaceable and the build environment to be reproducible. Which TWO actions best address these goals? (Choose two.)
Correct Answer: C, DExplanationProvisioning agents on demand from a versioned image removes accumulated drift because every agent starts from a known state and is discarded afterward, which makes it fungible. Declaring tools per build through the Tool Installer or a container image ensures each build pulls a specified version rather than depending on what happens to be installed on a host. Deleting workspaces (C) does not remove manually installed software or cron changes. A one-time manual cleanup (D) reintroduces drift over time. Running builds on the controller (E) is discouraged and centralizes exactly the state that should be avoided.
-
8 Question 8 Single choice Building Continuous Delivery (CD) Pipelines
A regulated fintech team runs a centralized Jenkins controller that three product groups share for their deployment pipelines. Each group owns its own Jenkinsfile in its repository, but a platform team must guarantee that every deployment to production passes a security scan and a change-approval gate that individual groups cannot skip or edit. The platform team wants to keep the groups' pipelines flexible for everything else. Which approach best meets this requirement?
Correct Answer: AExplanationA Jenkins shared library pinned to a tag lets the platform team own the gating logic in one place, so groups invoke it rather than rewriting it, and the pinned version prevents silent changes. Relying on code review (B) still lets a group omit or edit the stages, which fails the enforcement requirement. Disabling the sandbox (C) is a security weakening and does not inject steps into pipelines at all. Converting to Freestyle jobs (D) runs the scan after completion, so a failing build can still have deployed, and it abandons the pipeline model the teams already use.
-
9 Question 9 Order list CD-as-Code Best Practices
A team runs a Kubernetes-based Jenkins deployment where build agents are created on demand. Agents must be replaceable, no build should depend on state left by a previous build, and tools must be available without manual setup on individual machines. Arrange the steps in the correct order to onboard a new build tool version for all pipelines.
Drag the steps into the correct order, or use the arrows.
- Build a new agent image containing the tool at that version and publish it to the registry.
- Point the pod template for the agent to the new image so new agents are provisioned from it.
- Drain and remove agents still running the old image once their in-flight builds finish.
- Update the tool definition in the controller's configuration-as-code file to the new version.
Correct Answer:- Update the tool definition in the controller's configuration-as-code file to the new version.
- Build a new agent image containing the tool at that version and publish it to the registry.
- Point the pod template for the agent to the new image so new agents are provisioned from it.
- Drain and remove agents still running the old image once their in-flight builds finish.
ExplanationWith fungible agents, the image is the unit of change: the tool is baked into a new image, the cloud template is pointed at it, and old agents are retired after running work completes. Changing the configuration first (A before B) would reference an image that does not exist yet and break provisioning. Removing old agents before pointing the template at the new image would leave no agent able to run builds. Draining instead of killing agents protects in-flight builds.
-
10 Question 10 Drag and drop Jenkins usage (features and functionality)
A release engineer maintains several Jenkins jobs that must be organized, parameterized, and reported on consistently. Each requirement below needs a specific Jenkins capability. Match each requirement to the capability that meets it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Group jobs for several teams under separate permission boundaries and shared settingsLet a user choose a target environment before each build startsBuild the same job across several operating system and JDK combinationsShow pass and fail counts and trend graphs from unit test outputFoldersTrigger downstream jobs with a Build other projects stepEmail notification pluginParameterized build with a Choice parameterMatrix job axesJUnit test report publisherCorrect Answer:- Group jobs for several teams under separate permission boundaries and shared settings → Folders
- Let a user choose a target environment before each build starts → Parameterized build with a Choice parameter
- Show pass and fail counts and trend graphs from unit test output → JUnit test report publisher
- Build the same job across several operating system and JDK combinations → Matrix job axes
ExplanationFolders provide namespacing and scoped security and properties, choice parameters capture input at build time, the JUnit publisher converts XML results into reports and trends, and matrix jobs expand a job across axis combinations. The Build other projects step and the email plugin both exist but solve triggering and notification, not the listed requirements.
-
11 Question 11 Dropdown Key CI/CD/Jenkins Concepts
A team is debugging why a Jenkins job never runs after a commit is pushed to its repository. The job is configured to be triggered by SCM changes rather than manually. Complete the description of the trigger configuration by selecting the correct value for each blank, given that the team wants Jenkins to be notified by the repository instead of polling it on a schedule.
Choose the correct value for each blank.
In a Pipeline, the trigger is declared as triggers { } for SCM-driven builds, and to receive push notifications from the repository the Git plugin requires the endpoint to be configured in the repository's webhook settings.Correct Answer:In a Pipeline, the trigger is declared as triggers { githubPush() } for SCM-driven builds, and to receive push notifications from the repository the Git plugin requires the /git/notifyCommit endpoint to be configured in the repository's webhook settings.
ExplanationThe githubPush() trigger tells Jenkins to build when the GitHub webhook fires, and the Git plugin's /git/notifyCommit endpoint is the URL that accepts those notifications. pollSCM is a polling approach, which the team specifically wants to avoid. cron('@daily') and upstream() do not react to commits. The other endpoints listed are unrelated to SCM notification.
These are 11 of the 186 questions in the full CJE pack.
Get All 186 QuestionsGet all 186 questions & answers
Full access options for CloudBees CJE
Self-study
PDF Version
- 186 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 186 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 186 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the CJE Exam (Certified Jenkins Engineer (CJE)) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.