cje
cje
CloudBees
Exam CJE
Certified Jenkins Engineer (CJE)
Version: 3.0
[ Total Questions: 60 ]
CloudBees CJE
Question No : 1
A. Ant project
B. Make project
C. Grade project
D. Pipeline project
E. Freestyle project
Answer: E
Question No : 2
Answer: E
Question No : 3
You are using GitHub repository scanning (in a project of type "GitHub Organization") with
the Pipeline lenkinsfile Project Recognizer. In this case, which repositories under the
organization will have Multibranch projects automatically created for them?
Answer: A
Question No : 4
2
CloudBees CJE
A Freestyle job is configured to execute concurrent builds, and to only build on a specific
agent (agent A) that has 4 executors. You observe that 2 Instances of the job are currently
building while several others are waiting in the build queue. Which of the following could
explain why the builds are waiting in the build queue?
Answer: A
Question No : 5
Answer: D
Question No : 6
What is the purpose of the "Manage Users" section of the Manage Jenkins dashboard?
A. Contains entries used for the security matrix or project security matrix.
B. Defines aliases for credentials that have been created In the external security realm.
C. Each user who is allowed access to Jenkins must have an entry in this Jenkins user
database.
D. Defines user groups used for role-based strategy authorization.
E. Populates the Jenkins user database that can be used if you are not using an external
security realm such as LDAP, Active Directory, or Unix user/groups.
Answer: C
3
CloudBees CJE
Question No : 7
A. can be used to group a number of other steps into a logical unit for display
B. collects a set of artifacts that can be referenced in a later Pipeline step
C. prepares a test environment in Jenkins
D. transfers artifacts to a staging server for testing
Answer: A
Question No : 8
Which statements about a Distributed Version Control System are correct? Choose 2
answers
Answer: A,E
Question No : 9
What is the purpose of the "Manage Old Data" screen under "Manage Jenkins"?
Answer: C
Question No : 10
4
CloudBees CJE
A. Run all builds on agents and never on the master itself.
B. Use the maximum number of executors at all times and avoid using labels.
C. Avoid modifying Java parameters that control heap size and garbage collection.
D. Use plugins as much as possible.
E. Allocate specific masters for different build types and teams.
Answer: A,D
Question No : 11
When you want to validate that your software produces the desired behavior for end users,
you need to use
A. smoke tests
B. acceptance tests
C. functional tests
D. non-regression tests
Answer: A
Question No : 12
Answer: A
Question No : 13
In Jenkins, which section in a Freestyle job configuration is used to execute a Linux (shell)
or Windows (batch) command?
A. Build
B. Build Environment
C. Source Code Management
5
CloudBees CJE
D. Build Triggers
E. Post-build Actions
Answer: A
Question No : 14
Choose 2 answers
Answer: C,D
Question No : 15
Choose 3 answers
A. Java
B. Perforce
C. Subversion
D. Git
E. Maven
Answer: B,C,D
Question No : 16
A. Validate with the CI system, write the new functional code, and then verify that the test
6
CloudBees CJE
passes.
B. Write a new test, validate with the a system, and then write the new functional code.
C. Write a new falling unit test, write the new functional code to fix the test, verify that the
test passes, and then refactor the code.
D. Write a new failing unit test, write the new functional code to fix the test, and then verify
that the test passes.
Answer: C
Question No : 17
Pipelines often require access to protected resources such as servers, databases, and
SCMs. Without using an external credentials manager, which of the following provides the
most secure centralized mechanism for managing the "secrets" that Jenkins requires to
login/authenticate (for example: keys, tokens, passwords)?
A. Store the secrets on the Jenkins master using the Credentials plugin.
B. Include the secrets In the home directory of the Jenkins agent account.
C. Store the secrets required in the SCM alongside the application source code.
D. Embed secrets into the build and deployment scripts invoked by the job.
E. Store the secrets as Node Properties for each agent definition.
Answer: A
Question No : 18
Which of the following are true when using build parameters? Choose 3 answers
A. If your Jenkinsfile specifies parameters with the "parameters'' directive, those are the
only parameters recognized when the Pipeline executes; any parameters that were
specified In the "Project is parameterized" section of the Job configuration are cleared.
B. Use the "params" object to reference parameters that are defined on "The project is
parameterized" section of the job configuration.
C. Use the "parameters" directive to define parameters for your Pipeline Inside your
Pipeline code.
D. If you configure a build parameter of type File, then users can specify a file on the server
as build input.
Answer: A,B,C
7
CloudBees CJE
Question No : 19
Which of the following are advantages of a Pipeline job when compared to a Freestyle job?
Choose 2 answers
A. Jenkins can be restarted while a build is In progress without impacting the build.
B. Job definition can be loaded from the Source Code Management system at build time.
C. No extra plugins must be installed.
D. Builds can be parameterized.
E. Builds can be triggered with millisecond granularity.
Answer: A,B
Question No : 20
Which can be defined in and limited to a specific folder and its subfolders? Choose 4
answers
Answer: A,B,C,E
Question No : 21
When you upgrade a plugin and find an issue in the new version, how ran you move hade
to the previously installed version? Choose 2 answers
Answer: D,F
8
CloudBees CJE
Question No : 22
A. Aborted
B. Success
C. Unstable
D. Failure
E. Not Built
Answer: C
Question No : 23
Which of the following are true about the "post" section of a Declarative Pipeline that
defines additional steps that run at the end of either a pipeline stage or the pipeline itself?
Choose 3 answers
A. The "post" section can be used to stash files, archive artifacts, and send notifications.
B. The "post" section includes conditional blocks (such as "always", "success", or "failure").
C. It any step specified in the "post" section fails, the pipeline run is marked as
"unsuccessful".
D. The Blue Ocean editor does not display the "post" section blocks although they can be
viewed and modified in the Blue Ocean code editor.
E. The conditional blocks are executed in the order they are coded in the Pipeline.
Answer: B,C,E
Question No : 24
A. If you check the "Enable rollbacks when upgrading" box, future updates to an the plugin
can easily be rolled back when necessary.
B. The previous public release of a plugin is installed for reliability instead of Installing the
most recent public release.
C. Most plugins can be Installed without stopping and starting Jenkins.
D. You must install all required and optional dependencies before Installing the plugin with
the plugin manager.
E. If you are running Jenkins under an HTTP proxy, you must configure HTTP proxy
access for the plugin manager before Installing or updating plugins.
9
CloudBees CJE
Answer: B,C
Question No : 25
You want to execute a Job passing one parameter via the Jenkins RFST API. The correct
syntax for this is http: / /server/Job/ myjob_________.
A. /build?Parameter =Value
B. /buiWWithParameters?Parameter=Value
C. /buildWithParameters
D. /build?Parameters=Value
Answer: B
Question No : 26
In a Multibranch Pipeline project, you removed a branch in the repository. When is the
corresponding "orphaned" job removed?
A. All orphaned jobs that match the "Orphaned Item Strategy" are cleaned up automatically
every 24 hours.
B. All orphaned jobs are cleaned up every time the Multibranch project is saved.
C. All orphaned jobs that match the "Orphaned Item Strategy" configuration are cleaned up
on every branch re-index process.
D. All "orphaned" jobs are cleaned up on every branch re-Index process.
Answer: C
Question No : 27
Answer: C
10
CloudBees CJE
Question No : 28
A multi-configuration job contains the combination filter index% 4=1. What does this filter
achieve?
Answer: B
Question No : 29
A freestyle job is set up to "Enable concurrent builds if necessary" and configured to run on
a single node. How can you ensure that multiple concurrent runs share the same
workspace?
Answer: D
Question No : 30
A unit test_________.
Answer: A
11
CloudBees CJE
Question No : 31
A. Declarative Pipelines cab be restarted after a Jenkins failure but not after a transient
outage (such as a network failure or disk space exhaustion).
B. Declarative Pipelines can be resumed only after a transient outage (such as a network
failure or disk space exhaustion).
C. All Declarative Pipelines are restartable by default, with the same inputs (commit to
build, parameters, etc) as the original run. Any data that was built In the original run Is
available only If the preserveStashes() optionIs specified In the Jenkinsfile
D. Declarative Pipelines that use Docker containers can not be resumed because the
docker APIs that Jenkins calls to createthe container are not serialized
E. A Declarative Pipeline can be restarted only If the preserveStashes() option Is set In the
pipeline.
Answer: C
Question No : 32
What happens to all associated configuration metadata (on jobs, builds, etc) after a plugin
is uninstalled?
A. Nothing happens. The data remains on the persisted form of the configuration until the
next save of that Rem (job, etc.).
B. It is deleted on the next restart of Jenkins.
C. It Is deleted on the next configuration reload.
D. It Is deleted Immediately.
E. The data is backed up and then deleted from the live configuration.
Answer: A
Question No : 33
12
CloudBees CJE
You run the following command from a Unix terminal: curl http: ///git/notifyCommit?
Answer: D
Question No : 34
Which of the following are true about credentials that are implemented in a Declarative
Pipeline using the "credentials"or "withCredentials( )" method?
Choose 2 answers
A. All credential bindings support the "Secret Text" and "Standard username and
password" credential types.
B. Credential IDs are case Insensitive.
C. The credential types supported are defined by the binding plugin (or the resource being
accessed.
D. Most credentials called from a pipeline have Global scope, not System scope.
Answer: A,B
13
CloudBees CJE
Question No : 35
Choose 3 answers
Answer: A,C,D
Question No : 36
Which of the following practices are recommended for a Declarative Pipeline? Choose 3
answers
A. Use the pipeline DSL to implement intricate networking and computational tasks that
your Pipeline needs to do.
B. Simplify the test/debug process and improve performance of your pipeline by defining
separate steps for each Important task performed by the pipeline.
C. Encapsulate common Jenkins logic within shared libraries when leveraging Declarative
Pipelines.
D. Call scripts written In Shell, Batch, Groovy, or Python to implement any complex logic
required for your pipeline; call these scripts as steps in your pipeline.
E. Use took such as Maven, Gradle, NPM, Ant, and Make to define most of the build work;
cad these executables as steps In your pipeline.
Answer: B,C,E
Question No : 37
What is the preferred method for a Jenkins administrator to notify nil Jenkins users about
upcoming system maintenance?
A. Add text to the "System Message" field on the "System Configuration" page to populate
a banner displayed across the top of the master's home page.
14
CloudBees CJE
B. On the "System Configuration" page, choose the "Maintenance Alerts" option from the
"Alerts" dropdown menu and populate the box with a message to be added to all build logs.
C. Populate the "Email Notifications" section of the "System Configuration" page with a
message to be sent as email to all registered Jenkins users.
D. On the master's dashboard, dick "add description" or "edit description" to populate a
banner displayed across the top of the master's home page.
Answer: B
Question No : 38
Answer: A
Question No : 39
Which can you do with the Jenkins Install Wizard? Choose 3 answers
Answer: A,B,D
Question No : 40
Which of the following are true when using environment directives in a Declarative
Pipeline?
Choose 3 answers
15
CloudBees CJE
the variable on the master's JVM and passes the calculated string to the sh or bat step; if
the environment variable Is enclosed in double quotes, the name of the environment
variable itself is passed to the "sh" or 'bat" step and the shell interpreter on the agent
dereferences the variable.
B.
If an environment variable Is enclosed In double quotes, the Pipeline DSL dereferences the
variable on the master's JVM and passes the calculated string to the sh or bat step; if the
environment variable isenclosed in single quotes, thename of the environment variable
itself is passed to the "sh" or "bat" step and the shell interpreter on the agent dereferences
the variable.
C.
A Declarative Pipeline can use environment variables defined In Jenkins Itself (such as
BUILD_NUMBER and JENKINS^URL), environment variables defined in an installed plugin
(such as GIT„COMMIT or GIT .BRANCH, defined in the Git plugin), or environment
variables that are coded as directives in the Pipeline itself; the semantics are identical for
all environment variables.
D.
An environment variable can be specified globally (to apply to all steps in the pipeline), for
an individual step, or for one or more specified steps In the Pipeline,
Answer: A,C,D
Question No : 41
Which of the following are true about the structure of a Declarative Pipeline? Choose 2
answers
A. Any Pipeline DSL code that Implements complex computational tasks must be located
outside any stage block.
B. Steps are the logical segmentation of a Pipeline; they contain stages that define actual
tasks.
C. Stages are the logical segmentation of a Pipeline; they contain steps that define actual
tasks.
D. Each pipeline must have a global agent specification.
E. All stages in a Pipeline must execute on the same type of agent.
Answer: C,D
Question No : 42
Which of these tasks are ONLY available from the "Manage Jenkins'' page? Choose 2
16
CloudBees CJE
answers
A. Manage plugins
B. Define views
C. Configure credentials
D. Open Blue Ocean
E. Configure Global Security
Answer: A,E
Question No : 43
Which enables you to use artifacts from a completed build in the workspace of the currently
running build?
A. Jenkins core
B. Copy Artifact plugin.
C. Rebuild plugin.
D. ArtifactDeployer plugin.
Answer: B
Question No : 44
Which are benefits of binary reuse (compiling once and reusing the built artifact across the
rest of the pipeline)? Choose 3 answers
Answer: A,B,D
Question No : 45
Yon are an administrator of a base Jenkins master with the recommended plugin set and
you want to connect a new agent using SSH. Authentication on the remote node that will
17
CloudBees CJE
host the agent is done with an SSH key pair which your users must NOT be able to see or
access. Which of the following is TRUE assuming your users do not have admin rights?
A. Use a credential "SSH Username with private key", restricted to the Scope "System", for
the node's SSH authentication.
B. You cannot use an SSH key-pair. Configure a password for the agent's SSH user, and
create a credential of type "Username with password" for the node's SSH authentication.
C. Use a credential "SSH Username with private key", restricted to the Scope "Agents", for
the node's SSH authentication.
D. The SSH key will be stored in the JENKINS_HOME/.ssh folder. Configure the agent to
use a key from the "standard" SSH folder.
Answer: A
Question No : 46
On a single Jenkins master you have a folder named "Project1 ". I his folder contains three
jobs: "job master", "job develop", and "Job edge". The job "job master" Is the latest built
project and Is In a success state while the two other jobs are in falling state. Which
statement is true about the folder "Project1"?
A. It reports its health as "failed" {"Raining Cloud" weather icon), because that is the "worst
health of the sub-items".
B. It reports its health as "success" ("Sunny" weather icon), because that is the health of
the "latest built item."
C. It must be configured with a dedicated "Health Metric" setting before it can report its
health with weather icons.
D. It does not report its health on the folder level; only Jobs report health.
Answer: A
Question No : 47
Which of the following build steps is most appropriate to use to publish the artifact files of a
build?
Answer: B
18
CloudBees CJE
Question No : 48
A. updates plugins
B. starts the build of a job
C. sends notification once the build is completed
D. detects code changes in the repository
Answer: B
Question No : 49
A. It allows you to customize what specific IP address will never be able to trigger a build.
B. It allows you to trigger a build under certain conditions, such as GitHub/BitBucket push
events, deployment ratifications,
C. It can only be configured on Freestyle projects.
D. It allows you to customize the mail to be sent to developers after a failing build.
Answer: B
Question No : 50
How can you configure a Declarative Pipeline to record the fingerprint of an artifact?
Answer: D
Answer: B, C
Question No : 52
You need to automate the deployment of 20 base Jenkins masters. I or this, you set the
system property
Answer: A
Question No : 53
Choose 3 answers
Answer: C,D,E
20
CloudBees CJE
Question No : 54
Which TIIKII of the following are considered best practices when setting up rules for
notifications?
Answer: B,C,D
Question No : 55
Where do you find alerts about Jenkins security issues? Choose 3 answers
Answer: C,D,E
Question No : 56
Choose the destinations where Jenkins and its plugins can send job notifications?
A. email
B. Slack
C. Jira
D. SMS messaging
21
CloudBees CJE
E. All of the above
Answer: E
Question No : 57
Answer: B
Question No : 58
In order to send email notifications on build completion using Jenkins' built in mail
functionality, which TWO of the following must be true?
Answer: A,B
Question No : 59
In a "standalone" configuration, when masters manage the build environment and also
execute builds with their own resources, which of the following Is true?
22
CloudBees CJE
Answer: B
Question No : 60
A. collect
B. step
C. stage
D. steps
E. group
Answer: D
23