CJE BENCHMARK FINAL EXAM
QUESTIONS AND CORRECT ANSWERS
LATEST UPDATE
1. In a Declarative Pipeline, which directive is used to define a list of one or more stages that
represent the main part of the pipeline’s execution?
A. steps
B. parallel
C. nodes
D. stages
Answer: D
Conceptual Explanation: The ‘stages’ directive is a mandatory section in a Declarative
Pipeline that contains a sequence of one or more stage directives.
2. When using CloudBees Core on Kubernetes, what is the primary purpose of the CloudBees
Operations Center (CJOC)?
A. To store all Docker images for the build agents.
B. To serve as a single point of management for multiple Managed Controllers.
C. To act as a load balancer for external web traffic.
D. To provide a direct console for Groovy script execution across all agents.
,Answer: B
Conceptual Explanation: CJOC is designed to manage and monitor a cluster of Jenkins
controllers, providing centralized management, shared agents, and licensing.
3. Which of the following describes the ‘Skip Default Checkout’ option in a Pipeline?
A. It deletes the workspace after every build.
B. It prevents Jenkins from checking out the source code from SCM automatically at the
start of a stage.
C. It ignores the Jenkinsfile located in the repository.
D. It skips the execution of the ‘post’ section if the build fails.
Answer: B
Conceptual Explanation: By default, Jenkins checkouts SCM at the start of a build;
‘skipDefaultCheckout()’ in the options block allows manual control over SCM operations.
4. In the context of Jenkins security, what is the ‘Matrix-based security’ strategy?
A. A plugin that allows building multiple versions of a project simultaneously.
B. A method to encrypt passwords using a private matrix key.
C. A way to define permissions for users and groups across the entire Jenkins instance
using a grid.
D. A system that limits builds to only run on specific agents with matching labels.
Answer: C
, Conceptual Explanation: Matrix-based security allows administrators to grant specific
permissions to users or groups globally through a grid interface.
5. What is the functionality of the ‘Fingerprint’ feature in Jenkins?
A. It tracks which version of a file was used by which build, facilitating traceability across
jobs.
B. It provides biometric authentication for Jenkins login.
C. It identifies the unique IP address of the build agent.
D. It maps the code coverage of unit tests to specific developers.
Answer: A
Conceptual Explanation: Fingerprinting uses MD5 checksums to track files (like jars or
artifacts) across different builds and pipelines to maintain traceability.
6. Which Pipeline directive allows for the definition of code that should run only after the
completion of a build, regardless of its status?
A. always
B. finally
C. cleanup
D. post
Answer: D
QUESTIONS AND CORRECT ANSWERS
LATEST UPDATE
1. In a Declarative Pipeline, which directive is used to define a list of one or more stages that
represent the main part of the pipeline’s execution?
A. steps
B. parallel
C. nodes
D. stages
Answer: D
Conceptual Explanation: The ‘stages’ directive is a mandatory section in a Declarative
Pipeline that contains a sequence of one or more stage directives.
2. When using CloudBees Core on Kubernetes, what is the primary purpose of the CloudBees
Operations Center (CJOC)?
A. To store all Docker images for the build agents.
B. To serve as a single point of management for multiple Managed Controllers.
C. To act as a load balancer for external web traffic.
D. To provide a direct console for Groovy script execution across all agents.
,Answer: B
Conceptual Explanation: CJOC is designed to manage and monitor a cluster of Jenkins
controllers, providing centralized management, shared agents, and licensing.
3. Which of the following describes the ‘Skip Default Checkout’ option in a Pipeline?
A. It deletes the workspace after every build.
B. It prevents Jenkins from checking out the source code from SCM automatically at the
start of a stage.
C. It ignores the Jenkinsfile located in the repository.
D. It skips the execution of the ‘post’ section if the build fails.
Answer: B
Conceptual Explanation: By default, Jenkins checkouts SCM at the start of a build;
‘skipDefaultCheckout()’ in the options block allows manual control over SCM operations.
4. In the context of Jenkins security, what is the ‘Matrix-based security’ strategy?
A. A plugin that allows building multiple versions of a project simultaneously.
B. A method to encrypt passwords using a private matrix key.
C. A way to define permissions for users and groups across the entire Jenkins instance
using a grid.
D. A system that limits builds to only run on specific agents with matching labels.
Answer: C
, Conceptual Explanation: Matrix-based security allows administrators to grant specific
permissions to users or groups globally through a grid interface.
5. What is the functionality of the ‘Fingerprint’ feature in Jenkins?
A. It tracks which version of a file was used by which build, facilitating traceability across
jobs.
B. It provides biometric authentication for Jenkins login.
C. It identifies the unique IP address of the build agent.
D. It maps the code coverage of unit tests to specific developers.
Answer: A
Conceptual Explanation: Fingerprinting uses MD5 checksums to track files (like jars or
artifacts) across different builds and pipelines to maintain traceability.
6. Which Pipeline directive allows for the definition of code that should run only after the
completion of a build, regardless of its status?
A. always
B. finally
C. cleanup
D. post
Answer: D