Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

CJE BENCHMARK EXAM PREP QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Document preview thumbnail
Preview 3 out of 25 pages

CJE BENCHMARK EXAM PREP QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Content preview

CJE BENCHMARK EXAM PREP
QUESTIONS AND CORRECT ANSWERS
LATEST UPDATE


1. In Jenkins Pipeline, what is the primary purpose of the ‘Continuation Passing Style’ (CPS)

transformation?

A. To convert Declarative Pipeline syntax into Scripted Pipeline syntax for execution.


B. To allow Pipelines to survive Jenkins controller restarts by serializing the execution

state.


C. To optimize the performance of Groovy scripts by compiling them into native machine

code.


D. To provide a sandbox environment for executing untrusted Groovy scripts.


Answer: B


Conceptual Explanation: CPS is a transformation performed by the Jenkins Pipeline

engine that allows the execution state to be persisted to disk, enabling long-running

pipelines to resume after a restart.


2. When developing a Jenkins Shared Library, which directory should contain the Groovy

source files for classes that are instantiated using the ‘new’ keyword?

A. src/

,B. resources/


C. vars/


D. lib/


Answer: A


Conceptual Explanation: The ‘src/’ directory in a Shared Library is added to the classpath

and should contain standard Groovy source files for helper classes and business logic.


3. In a Declarative Pipeline, which directive is used to ensure that a stage only runs when a

specific branch is being built?

A. expression


B. trigger


C. when


D. filter


Answer: C


Conceptual Explanation: The ‘when’ directive allows for conditional execution of stages

based on criteria like branch name, environment variables, or custom expressions.


4. Which mechanism does Jenkins use to prevent Cross-Site Request Forgery (CSRF) attacks

when interacting with the REST API?

A. JWT Tokens


B. OAuth2 Scopes

, C. Crumbs


D. SAML Assertions


Answer: C


Conceptual Explanation: Jenkins uses a ‘Crumb’ (a security token) to protect against CSRF

attacks by ensuring requests come from authenticated and authorized users.


5. What is the effect of the ‘failFast true’ option within a ‘parallel’ block in a Declarative

Pipeline?

A. It causes all parallel branches to be aborted if any single branch fails.


B. It forces the pipeline to continue even if one branch fails, but marks the build as

unstable.


C. It speeds up the execution by skipping the initialization of build agents.


D. It automatically retries failed branches until they succeed.


Answer: A


Conceptual Explanation: The ‘failFast true’ option in a parallel block ensures that if one

branch fails, all other currently executing branches are terminated immediately to save

resources.


6. In Jenkins Distributed Architecture, how does an inbound (JNLP) agent typically initiate

communication with the controller?

A. The controller initiates an SSH connection to the agent’s fixed IP address.

Document information

Uploaded on
September 15, 2026
Number of pages
25
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
CA$23.05

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Thebright
3.6
(44)
Sold
241
Followers
6
Items
14934
Last sold
3 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions