CJE BENCHMARK EXAM 1 QUESTIONS
AND CORRECT ANSWERS LATEST
UPDATE
1. When configuring a Jenkins agent to connect via the ‘Launch agent by connecting it to the
master’ method (Inbound Agent), which protocol is primarily used for communication?
A. SSH
B. FTP
C. JNLP (Java Network Launch Protocol)
D. SMTP
Answer: C
Conceptual Explanation: Inbound agents, formerly known as JNLP agents, use the Java
Network Launch Protocol to establish a connection from the agent machine to the Jenkins
master.
2. In a Jenkins Declarative Pipeline, which directive is used to specify that a stage should only
run if a specific condition is met?
A. condition
B. when
C. if
,D. check
Answer: B
Conceptual Explanation: The ‘when’ directive allows the Pipeline to determine whether a
stage should be executed depending on the conditions defined within it.
3. What is the purpose of Jenkins ‘Fingerprinting’?
A. To identify the developer who committed code.
B. To track the usage of artifacts across different builds and jobs.
C. To verify the SSL certificate of the Jenkins server.
D. To log the IP addresses of users logging into Jenkins.
Answer: B
Conceptual Explanation: Fingerprinting uses MD5 checksums to track which version of an
artifact is used by which version of a build, facilitating dependency tracking.
4. Where is the default location for the ‘JENKINS_HOME’ directory on a Linux installation?
A. /etc/jenkins
B. /usr/share/jenkins
C. /home/jenkins
D. /var/lib/jenkins
Answer: D
, Conceptual Explanation: By default, on Linux systems (like Debian/Ubuntu or RHEL),
Jenkins stores its data in /var/lib/jenkins.
5. Which folder in a Jenkins Shared Library contains the actual Groovy scripts that define
global variables?
A. src
B. resources
C. vars
D. lib
Answer: C
Conceptual Explanation: The ‘vars’ directory in a Shared Library is where you place
Groovy scripts that define global variables accessible to Pipelines.
6. In the context of Jenkins Security, what does the ‘Agent -> Master Access Control’ setting
do?
A. It allows agents to execute arbitrary code on the master.
B. It prevents users from logging in via an agent machine.
C. It encrypts the communication between master and agents.
D. It restricts the ability of agents to request sensitive data or actions from the master.
Answer: D
AND CORRECT ANSWERS LATEST
UPDATE
1. When configuring a Jenkins agent to connect via the ‘Launch agent by connecting it to the
master’ method (Inbound Agent), which protocol is primarily used for communication?
A. SSH
B. FTP
C. JNLP (Java Network Launch Protocol)
D. SMTP
Answer: C
Conceptual Explanation: Inbound agents, formerly known as JNLP agents, use the Java
Network Launch Protocol to establish a connection from the agent machine to the Jenkins
master.
2. In a Jenkins Declarative Pipeline, which directive is used to specify that a stage should only
run if a specific condition is met?
A. condition
B. when
C. if
,D. check
Answer: B
Conceptual Explanation: The ‘when’ directive allows the Pipeline to determine whether a
stage should be executed depending on the conditions defined within it.
3. What is the purpose of Jenkins ‘Fingerprinting’?
A. To identify the developer who committed code.
B. To track the usage of artifacts across different builds and jobs.
C. To verify the SSL certificate of the Jenkins server.
D. To log the IP addresses of users logging into Jenkins.
Answer: B
Conceptual Explanation: Fingerprinting uses MD5 checksums to track which version of an
artifact is used by which version of a build, facilitating dependency tracking.
4. Where is the default location for the ‘JENKINS_HOME’ directory on a Linux installation?
A. /etc/jenkins
B. /usr/share/jenkins
C. /home/jenkins
D. /var/lib/jenkins
Answer: D
, Conceptual Explanation: By default, on Linux systems (like Debian/Ubuntu or RHEL),
Jenkins stores its data in /var/lib/jenkins.
5. Which folder in a Jenkins Shared Library contains the actual Groovy scripts that define
global variables?
A. src
B. resources
C. vars
D. lib
Answer: C
Conceptual Explanation: The ‘vars’ directory in a Shared Library is where you place
Groovy scripts that define global variables accessible to Pipelines.
6. In the context of Jenkins Security, what does the ‘Agent -> Master Access Control’ setting
do?
A. It allows agents to execute arbitrary code on the master.
B. It prevents users from logging in via an agent machine.
C. It encrypts the communication between master and agents.
D. It restricts the ability of agents to request sensitive data or actions from the master.
Answer: D