Certified Jenkins Engineer CJE Exam Review | Jenkins, CI/CD,
Pipelines & Automation Practice Questions and answers
2026/2027
Question 1
What is the primary responsibility of the Jenkins master node in a
default installation?
• A. Executing resource-intensive build jobs and compilation tasks
directly on its local CPU.
• B. Orchestrating build schedules, serving the web UI, managing
plugins, and dispatching jobs to agents.
• C. Hosting central Git repositories and handling pull request
merges.
• D. Providing persistent relational database storage for all project
artifacts.
Correct Answer: B. Orchestrating build schedules, serving the web UI,
managing plugins, and dispatching jobs to agents.
Detailed Rationale: The Jenkins master acts as the central coordinator.
To maintain stability and performance, heavy build workloads should be
offloaded to agent nodes rather than running on the master.
Question 2
Which configuration file format is natively used by the Jenkins
Configuration as Code (JCasC) plugin to define instance settings?
• A. XML
, • B. JSON
• C. YAML
• D. TOML
Correct Answer: C. YAML
Detailed Rationale: JCasC relies on human-readable YAML configuration
files to define Jenkins settings, security realms, credentials, and plugins
declaratively.
Question 3
What directory inside JENKINS_HOME stores all the core job
configuration files, build records, and workspace histories?
• A. plugins/
• B. jobs/
• C. secrets/
• D. users/
Correct Answer: B. jobs/
Detailed Rationale: The jobs/ directory contains subdirectories for each
defined job, housing their respective config.xml files, build histories,
and archive data.
Question 4
Which of the following is a valid block in a Jenkins Declarative Pipeline?
• A. compile
• B. stages
, • C. functions
• D. compile_steps
Correct Answer: B. stages
Detailed Rationale: Declarative Pipelines use strict structural blocks
such as pipeline, agent, stages, stage, steps, and post.
Question 5
What is the default port used by Jenkins for Inbound agents (formerly
JNLP agents) to connect to the master?
• A. 8080
• B. 443
• C. 50000
• D. 22
Correct Answer: C. 50000
Detailed Rationale: Port 50000 is the standard configurable TCP port
dedicated to inbound agent communication with the Jenkins master.
Question 6
Which Jenkins security feature prevents cross-site request forgery
attacks by validating unique per-session tokens on form submissions?
• A. CSRF Protection (API Token & crumb issuer)
• B. Content Security Policy (CSP)
• C. LDAP Binds
• D. SSH Host Key Checking
, Correct Answer: A. CSRF Protection (API Token & crumb issuer)
Detailed Rationale: CSRF protection (crumb issuer) ensures that state-
changing requests submitted to Jenkins originate from authenticated UI
sessions rather than malicious external sites.
Question 7
How are parameters passed to a parameterized Jenkins Pipeline
accessed within the script?
• A. Through operating system environment variables only
($env.PARAM).
• B. Through the global params map (e.g., params.MY_PARAM).
• C. By querying the local SQLite database.
• D. By reading Jenkins configuration XML files directly.
Correct Answer: B. Through the global params map (e.g.,
params.MY_PARAM).
Detailed Rationale: Jenkins automatically populates the params object
with values provided during build triggering, making them easily
accessible in pipeline code.
Question 8
What is the purpose of the post section in a Declarative Pipeline?
• A. To define pre-flight security checks before build execution.
• B. To execute cleanup, notification, or status-dependent actions
after the main stages have finished.
• C. To install required operating system packages.
Pipelines & Automation Practice Questions and answers
2026/2027
Question 1
What is the primary responsibility of the Jenkins master node in a
default installation?
• A. Executing resource-intensive build jobs and compilation tasks
directly on its local CPU.
• B. Orchestrating build schedules, serving the web UI, managing
plugins, and dispatching jobs to agents.
• C. Hosting central Git repositories and handling pull request
merges.
• D. Providing persistent relational database storage for all project
artifacts.
Correct Answer: B. Orchestrating build schedules, serving the web UI,
managing plugins, and dispatching jobs to agents.
Detailed Rationale: The Jenkins master acts as the central coordinator.
To maintain stability and performance, heavy build workloads should be
offloaded to agent nodes rather than running on the master.
Question 2
Which configuration file format is natively used by the Jenkins
Configuration as Code (JCasC) plugin to define instance settings?
• A. XML
, • B. JSON
• C. YAML
• D. TOML
Correct Answer: C. YAML
Detailed Rationale: JCasC relies on human-readable YAML configuration
files to define Jenkins settings, security realms, credentials, and plugins
declaratively.
Question 3
What directory inside JENKINS_HOME stores all the core job
configuration files, build records, and workspace histories?
• A. plugins/
• B. jobs/
• C. secrets/
• D. users/
Correct Answer: B. jobs/
Detailed Rationale: The jobs/ directory contains subdirectories for each
defined job, housing their respective config.xml files, build histories,
and archive data.
Question 4
Which of the following is a valid block in a Jenkins Declarative Pipeline?
• A. compile
• B. stages
, • C. functions
• D. compile_steps
Correct Answer: B. stages
Detailed Rationale: Declarative Pipelines use strict structural blocks
such as pipeline, agent, stages, stage, steps, and post.
Question 5
What is the default port used by Jenkins for Inbound agents (formerly
JNLP agents) to connect to the master?
• A. 8080
• B. 443
• C. 50000
• D. 22
Correct Answer: C. 50000
Detailed Rationale: Port 50000 is the standard configurable TCP port
dedicated to inbound agent communication with the Jenkins master.
Question 6
Which Jenkins security feature prevents cross-site request forgery
attacks by validating unique per-session tokens on form submissions?
• A. CSRF Protection (API Token & crumb issuer)
• B. Content Security Policy (CSP)
• C. LDAP Binds
• D. SSH Host Key Checking
, Correct Answer: A. CSRF Protection (API Token & crumb issuer)
Detailed Rationale: CSRF protection (crumb issuer) ensures that state-
changing requests submitted to Jenkins originate from authenticated UI
sessions rather than malicious external sites.
Question 7
How are parameters passed to a parameterized Jenkins Pipeline
accessed within the script?
• A. Through operating system environment variables only
($env.PARAM).
• B. Through the global params map (e.g., params.MY_PARAM).
• C. By querying the local SQLite database.
• D. By reading Jenkins configuration XML files directly.
Correct Answer: B. Through the global params map (e.g.,
params.MY_PARAM).
Detailed Rationale: Jenkins automatically populates the params object
with values provided during build triggering, making them easily
accessible in pipeline code.
Question 8
What is the purpose of the post section in a Declarative Pipeline?
• A. To define pre-flight security checks before build execution.
• B. To execute cleanup, notification, or status-dependent actions
after the main stages have finished.
• C. To install required operating system packages.