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 2 QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Document preview thumbnail
Preview 3 out of 25 pages

CJE BENCHMARK EXAM 2 QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Content preview

CJE BENCHMARK EXAM 2 QUESTIONS
AND CORRECT ANSWERS LATEST
UPDATE


1. In a Declarative Pipeline, which directive is used to define global options such as a build

timeout or retry limit?

A. environment


B. options


C. parameters


D. triggers


Answer: B


Conceptual Explanation: The ‘options’ directive in a Declarative Pipeline is used to

configure Pipeline-specific options, such as ‘timeout’, ‘retry’, and ‘buildDiscarder’.


2. When using Jenkins Shared Libraries, where must global variables (accessible as steps) be

defined within the library structure?

A. src/org/library/


B. resources/


C. lib/


D. vars/

,Answer: D


Conceptual Explanation: Global variables defined in the ‘vars/’ directory are exposed as

custom steps in the Pipeline DSL.


3. Which Jenkins feature allows for the automatic tracking of artifact usage across different

jobs, provided md5 checksums are recorded?

A. Artifact Archiver


B. Copy Artifact Plugin


C. Pipeline Graph


D. Fingerprinting


Answer: D


Conceptual Explanation: Fingerprinting uses md5 hashes to track where artifacts are

produced and where they are consumed across the Jenkins environment.


4. What happens if a Declarative Pipeline does not specify an ‘agent’ at the top level but

specifies them at the stage level?

A. The Pipeline will fail to parse.


B. The Pipeline must define ‘agent none’ at the top level.


C. The Pipeline will run on the built-in node by default.


D. The Pipeline will prompt the user for an agent.


Answer: B

, Conceptual Explanation: In Declarative Pipeline, an ‘agent’ directive is mandatory at the

top level. If stages define their own agents, the top level must be ‘agent none’.


5. Which environment variable provides the unique ID for a specific build in a Jenkins job?

A. BUILD_NUMBER


B. EXECUTOR_NUMBER


C. JOB_NAME


D. BUILD_ID


Answer: D


Conceptual Explanation: BUILD_ID is the unique identifier for the build, often

represented as a timestamp or a sequential number depending on the Jenkins version.


6. How can you prevent a Jenkins agent from being used by any job except those specifically

restricted to it via a label?

A. Set the agent’s Usage to ‘Only build jobs with label expressions matching this node’.


B. Remove all labels from the agent.


C. Disconnect the agent when not in use.


D. Use a Matrix project to lock the node.


Answer: A


Conceptual Explanation: The ‘Usage’ configuration (Mode) determines if a node is

available for any job or only those that specifically request its label.

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