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 24 pages
Exam (elaborations)

CJE BENCHMARK EXAM 3 QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Document preview thumbnail
Preview 3 out of 24 pages

CJE BENCHMARK EXAM 3 QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Content preview

CJE BENCHMARK EXAM 3 QUESTIONS
AND CORRECT ANSWERS LATEST
UPDATE


1. In a Declarative Pipeline, which directive is used to specify that a stage should only execute

if a certain environment variable is set to a specific value?

A. when


B. expression


C. condition


D. check


Answer: A


Conceptual Explanation: The ‘when’ directive allows the Pipeline to determine whether

the stage should be executed depending on given conditions, such as environment

variables, branch names, or custom expressions.


2. When using a Jenkins Shared Library, where should the global variables (custom steps) be

stored within the repository structure?

A. /src


B. /vars


C. /resources

,D. /lib


Answer: B


Conceptual Explanation: In a Jenkins Shared Library, the ‘/vars’ directory is used for

scripts that define global variables and custom steps that can be invoked directly in a

Pipeline.


3. Which annotation is used in a Jenkins Shared Library to prevent a method from being

transformed by the Pipeline’s CPS (Continuation Passing Style) transformation?

A. @IgnoreCPS


B. @NonCPS


C. @StaticGroovy


D. @PipelineSkip


Answer: B


Conceptual Explanation: The @NonCPS annotation is used for methods that perform

operations not supported by Pipeline serialization, such as complex loops or using certain

non-serializable Groovy features.


4. In a Jenkins Master/Agent architecture, what is the primary benefit of ‘Distributed Builds’?

A. To ensure that the Jenkins Master has enough disk space for logs.


B. To allow multiple users to edit the same Pipeline simultaneously.


C. To offload build processing from the Master to dedicated Agent nodes.

, D. To automatically backup the Jenkins configuration to a remote server.


Answer: C


Conceptual Explanation: Distributed builds allow the Jenkins Master to delegate the

actual execution of build jobs to Agents, preserving Master resources for orchestration and

UI handling.


5. Which security realm allows Jenkins to delegate authentication to the underlying operating

system?

A. LDAP


B. Jenkins’ own user database


C. Delegated Identity Provider


D. Unix user/group database


Answer: D


Conceptual Explanation: The ‘Unix user/group database’ security realm allows Jenkins to

authenticate users based on the OS-level users existing on the machine where Jenkins is

running.


6. In a Declarative Pipeline, what happens if the ‘agent none’ directive is defined at the top

level?

A. The build will fail immediately.


B. Jenkins will automatically assign the build to the master node.

Document information

Uploaded on
September 15, 2026
Number of pages
24
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