CloudBees CJE Certified Jenkins Engineer (CJE) Online Training
CloudBees CJE Online Training
The questions for CJE were last updated at Nov 23,2024.
- Exam Code: CJE
- Exam Name: Certified Jenkins Engineer (CJE)
- Certification Provider: CloudBees
- Latest update: Nov 23,2024
You are using the Jenkins CLI to communicate with a remote Jenkins master.
Which are valid ways to authenticate your identity gain access? Choose 2 answers
- A . A Jenkins user’s username and GitHub API token.
- B . An SSH key matching an entry in the authorized_keys file of the user account that the Jenkins master process runs "as".
- C . A Jenkins user’s username and Kerberos token.
- D . An SSH key matching a Jenkins user’s public key.
- E . A Jenkins user’s username and password or API token.
Which of the following would correctly complete the sentence, "Continuous Integration is a of Continuous Delivery"? Choose 2 answers
- A . consolidation
- B . requirement
- C . process definition
- D . subset
- E . superset
Your Pipeline has three stages: build, test, and deploy. You want the build and test stages to run automatically (without requiring human interaction), but you want the deploy stage to require approval by a human being.
How do you achieve that goal?
- A . Use an input step just before the deploy stage.
- B . This is not possible using Pipeline, because a Pipeline must run from start to finish without human interaction.
- C . Create a separate Pipeline to run the deploy stage.
- D . Use a stage step just before the deploy stage.
Freestyle job configurations provide a post-build action that allows you to build other projects after a build of this job.
Which trigger conditions are supported? Choose 3 answers
- A . Trigger even if the build fails.
- B . Trigger only if the build succeeds during working hours.
- C . Trigger only if the build produces artifacts.
- D . Trigger only if the build succeeds.
- E . Trigger even if the build is unstable.
You are using a base Jenkins master in production with the recommended set of plugins.
The administrators have configured a Global Pipeline Library named "common-libs", stored in a git repository, with the configuration shown in the exhibit above.
You have a Pipeline job at the root of the Jenkins dashboard, whose script starts with the annotation @LibraryCcommon-libs’) _
You want to test this Pipeline job with a beta version of the Global Pipeline Library "common-libs", stored on the branch named ‘’edge’’ the git repository.
Which of the following statements are TRUE? Choose 2 answers
- A . Replace the @ Library (‘common- lib.’_ annotation with QLibrary(‘common-libs@edge’) and run the job again.
- B . Duplicate the Pipeline job in a folder with a local Global Pipeline Library referencing the git repository on the "edge" branch, and change libs’)_ annotation to ^Library (‘common-libs: edge1) Replace the ommon-libs1)_ annotation with ^Library (‘ common -libs: edge’)_ and run the job again.
- C . Duplicate the pipeline job in a folder with a local Global Pipeline Library referencing the git repository on the "edge" branch, and change its
annotation to ^Library (‘ common – libs@edge’ ) - D . A Jenkins test instance with the same configuration as the production Jenkins master can be used to achieve this, giving yourself administrator
rights to configure the "edge" branch on the Global Configuration. - E . You cannot do this on this Jenkins instance.
You are the administrator of a base Jenkins master with the recommended set of plugins installed. You want to protect the Jenkins master against malicious (or bad) usages of Groovy methods. You also want your users to be able to share their Pipeline code via Global Pipeline Libraries housed on a git repository under your company’s Github Organization.
Which of the following statements is TRUE?
- A . You should configure Global Pipeline Libraries at the Github Organization level: The libraries are running as "untrusted" code, allowing developers to run code on the Groovy sandbox.
- B . You should configufe Global Pipeline Libraries at the Pipeline level: The libraries are running as "untrusted" code, allowing developers to run code on the Groovy sandbox.
- C . You should not configure any Global Pipeline Libraries at all: The libraries are running as "trusted" code, allowing all developers to execute privileged methods.
- D . You should not configure any Global Pipeline Libraries at the folder level: The libraries are running as "trusted" code, allowing all developers to execute privileged methods.
You want to allow regular users to configure limited aspects of a job but not allow them to change everything, What Jenkins mechanism do to use?
- A . System environment variables
- B . Job Configuration Restriction plugin
- C . Build parameters
- D . Matrix-based security
- E . Declarative Pipeline
How can you easily see if a plugin you use needs to be upgraded to a new version?
- A . Check the plugin wiki.
- B . Search for the plugin in the Jenkins artifact repository.
- C . Email the maintained
- D . Check the Jenkins Update Center.
Which of the following "agent" directives are not valid in Declarative Pipeline?
- A . agent (dockerfile {filename ‘ Dockerfile’ } }
- B . agent { label ‘Minux’ }
- C . agent docker
- D . agent { docker ‘ centos:latest’ }
- E . agent none
Which of the following is true about resuming a Declarative Pipeline?
- A . All Declarative Pipelines are restartable by default, with the same inputs (commit to build, parameters, etc) as the original run. Any data that built in the original run is available only if the preserveStashes() option is specified in the Jenkinsfile.
- B . Declarative Pipelines cab be restarted after a Jenkins failure but not after a transient outage (such as a network failure or disk space exhaustion)
- C . Declarative Pipelines that use Docker containers can not be resumed because the docker APIs that Jenkins calls to create the container are not senalized.
- D . A DeclaraDve Pipeline can be restarted only if the preserveStashes() option is set in the pipeline.
- E . Declarative Pipelines can be resumed only after a transient outage (such as a network failure orfefisk space exhaustion).