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 FINAL EXAM PREP QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Document preview thumbnail
Preview 3 out of 24 pages

CJE BENCHMARK FINAL EXAM PREP QUESTIONS AND CORRECT ANSWERS LATEST UPDATE

Content preview

CJE BENCHMARK FINAL EXAM PREP
QUESTIONS AND CORRECT ANSWERS
LATEST UPDATE


1. In a Declarative Pipeline, which directive is used to define a set of key-value pairs that are

available as environment variables for all steps or stage-specific steps?

A. parameters


B. options


C. environment


D. tools


Answer: C


Conceptual Explanation: The ‘environment’ directive specifies a sequence of key-value

pairs which will be defined as environment variables for all steps in the pipeline or a

specific stage.


2. Which Jenkins security realm allows Jenkins to delegate authentication to a servlet

container?

A. Jenkins’ own user database


B. LDAP


C. Delegate to servlet container

,D. Unix user/group database


Answer: C


Conceptual Explanation: The ‘Delegate to servlet container’ option allows Jenkins to use

the authentication mechanism provided by the web server (like Tomcat or Jetty) running

the Jenkins .war file.


3. When using the ‘SSH Build Agents’ plugin, where is the primary place the public key should

be stored for the Jenkins controller to authenticate with an agent?

A. The agent’s ~/.ssh/authorized_keys file


B. The controller’s filesystem in ~/.ssh/id_rsa.pub


C. The Global Tool Configuration


D. The Jenkins system logs


Answer: A


Conceptual Explanation: For SSH authentication, the public key corresponding to the

private key held by Jenkins must be placed in the ‘authorized_keys’ file on the remote agent

machine.


4. In a Pipeline script, which block is used to ensure code runs regardless of whether the build

succeeded, failed, or was aborted?

A. post { success { … } }


B. post { cleanup { … } }

, C. post { always { … } }


D. finally { … }


Answer: C


Conceptual Explanation: The ‘always’ condition in the post section of a Declarative

Pipeline executes regardless of the completion status of the pipeline run.


5. What is the primary benefit of using a ‘Jenkinsfile’ in a Source Control Management (SCM)

system?

A. It enables ‘Pipeline as Code’, allowing versioning and code review of the build process.


B. It allows for manual triggering of builds only.


C. It eliminates the need for any plugins.


D. It hides the build logic from developers.


Answer: A


Conceptual Explanation: Storing the Pipeline in a Jenkinsfile within SCM allows the build

process to be versioned, audited, and reviewed alongside the application code.


6. Which global variable provides access to the build number in a Jenkins Pipeline?

A. Both B and C are valid


B. currentBuild.number


C. env.BUILD_NUMBER

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