Exam4Training

CloudBees CCJE Certified CloudBees Jenkins Engineer (CCJE) Online Training

Question #1

The Jenkins Install Wizard allows you to_________.

  • A . define the security settings of the Jenkins instance you are installing
  • B . define an admin user for Jenkins
  • C . define non-admin users for Jenkins
  • D . completely define the security and notification settings of the Jenkins instance you are installing
  • E . define executor agents

Reveal Solution Hide Solution

Correct Answer: A
Question #2

Which of the following "agent" directives are not valid in Declarative Pipeline?

  • A . agent {dockerfile {filename * Dockerfile’ }}
  • B . agent docker
  • C . agent none
  • D . agent { label " linux }
  • E . agent { docker ‘ centos: latest ‘ }

Reveal Solution Hide Solution

Correct Answer: B
Question #3

You have a project X that depends on project Y, which in turn depends on protect /. You are working on project /. learn X reported that feature team /.Jar, which they are using, causes a NullPointerException .

What Jenkins feature tell you, as a member of team z, which builds are using (or not using) feature team-z jar build #32?

  • A . The "Fingerprint" feature.
  • B . The "Archive the artifacts" post-build action.
  • C . The Jenkins Blueprint feature.
  • D . The can only be done if you install the Build Analysis plugin.

Reveal Solution Hide Solution

Correct Answer: C
Question #4

You are using the Jenkins CLI to communicate with a remote Jenkins master .

Which are valid ways to authenticate your identity to gain access? Choose 2 answers

  • A . A Jenkins user’s username and password or API token.
  • B . A Jenkins user’s username and GitHub API token.
  • C . A Jenkins user’s username and Kerberos token.
  • D . An SSH key matching an entry in the authorized_keys file of the user account that the Jenkins master process runs "as".
  • E . An SSH key matching a Jenkins user’s public key.

Reveal Solution Hide Solution

Correct Answer: A,C
Question #5

What happens to all associated configuration metadata (on jobs, builds, etc) after a plugin is uninstaller?

  • 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.

Reveal Solution Hide Solution

Correct Answer: A
Question #6

What does Jenkins do after activating "Prepare for Shutdown" from "Manage Jenkins"?

  • A . Wait for existing builds to complete and then shut down Jenkins.
  • B . Wait for existing builds to complete and then restart Jenkins.
  • C . Cancel the effect of the "quiet-down" command if Jenkins is already in Quiet Down mode.
  • D . None of the above.

Reveal Solution Hide Solution

Correct Answer: A
Question #7

How can you easily see if a plug in you use needs to be upgraded to a new version?

  • A . Check the Jenkins Update Center.
  • B . Search for the plugin in the Jenkins artifact repository.
  • C . Email the maintainer.
  • D . Check the plugin wiki

Reveal Solution Hide Solution

Correct Answer: A
Question #8

In which situations can the REST API be used? Choose 3 answers

  • A . Modifying the authorization strategy configuration.
  • B . Administering Jenkins’ global configuration.
  • C . Creating/copying jobs.
  • D . Triggering a new build.
  • E . Retrieving information from Jenkins for programmatic consumption

Reveal Solution Hide Solution

Correct Answer: A,C,E
Question #9

You have an Operations Center with two connected Masters. You want to start a job on Master B from a fob on Master A .

What is the preferred way to accomplish this?

  • A . Use the Pipeline build step with the remote path URL argument.
  • B . Use the cross team collaboration feature to publish a build notification and subscribe to that notice from Jobs that should run when the notification is published.
  • C . Broadcast an e-mail message from the Job on Master A and monitor the e-mail queue from Master B.
  • D . Use the "Trigger parameterized build on other projects" post-build step and specify the remote path as project name.
  • E . Use the trigger-remote-build CLI command and pass the Job URL as a parameter.

Reveal Solution Hide Solution

Correct Answer: B
Question #10

Which actions can you accomplish using the Cloud Bees Core Install Wizard? Choose 2 answers

  • A . Define the initial set of users for the instance.
  • B . Request an Evaluation License to use with the CloudBees Core instance being installed
  • C . Install a set of recommended plugins (which includes some proprietary plugins developed by CloudBees).
  • D . Define the initial security settings for the instance.
  • E . Update the Jenkins release used by an existing Operations Center.

Reveal Solution Hide Solution

Correct Answer: A,C

Question #11

The main purpose of the Beekeeper Upgrade Assistant is to_________.

  • A . Automatically install new CloudBees Core releases as soon as they are available.
  • B . Provide information on the current status and configuration options of the CloudBees Assurance Program.
  • C . Enforce and lock a specific configuration in the CloudBees Core instance defined by the administrator.
  • D . Notify the user when a new CloudBees Core release is available.

Reveal Solution Hide Solution

Correct Answer: A
Question #12

Which Jenkins job status indicates that tests failed?

  • A . Unstable
  • B . Success
  • C . Aborted
  • D . Failure
  • E . Not Built

Reveal Solution Hide Solution

Correct Answer: D
Question #13

What is the purpose of Pipeline checkpoints?

  • A . To allow continuing the build on another agent.
  • B . To avoid having to rerun the entire Pipeline If a transient error occurs.
  • C . To visually separate stages.
  • D . To run additional tests.
  • E . To configure pipelines to send a progress report by email when a checkpoint is reached.

Reveal Solution Hide Solution

Correct Answer: A
Question #14

Which are ways to influence the number of build artifacts that can be archived? Choose 2 answers

  • A . unit build data using the job setting "Discard old builds".
  • B . Change the order of jobs in the pipeline.
  • C . Gear the Jenkins cache.
  • D . Increase the size of the JENKINS.HOME partition/logical volume.
  • E . Make sure you regularly delete unused views.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #15

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 . All stages in a Pipeline must execute on the same type of agent.
  • C . Steps are the logical segmentation of a Pipeline; they contain stages that define actual tasks.
  • D . Each pipeline must have a global agent specification.
  • E . Stages are the logical segmentation of a Pipeline; they contain steps that define actual tasks.

Reveal Solution Hide Solution

Correct Answer: A,B
Question #16

What is the purpose of the Script Console?

  • A . Provides a secure environment used to execute sh and bat scripts for all Pipelines and Freestyle Jobs.
  • B . Provides the secure environment used to run CLI commands.
  • C . Provides a largely unrestricted environment where sophisticated and trusted users can run Apache Groovy scripts to streamline management tasks.
  • D . Provides a secure environment to run python scripts to administer Jenkins.
  • E . Provides a largely unrestricted environment where sophisticated and trusted users can run sh and bat scripts to streamline management tasks.

Reveal Solution Hide Solution

Correct Answer: D
Question #17

Which is the best choice for keeping JENKINS_HOME folder from becoming too large?

  • A . Discard build records.
  • B . Remove all non-bundled plugins.
  • C . Start new versions of Jenkins on fresh machines.
  • D . Purge the secrets.key and secrets-not-so-secret.key regularly.

Reveal Solution Hide Solution

Correct Answer: A
Question #18

Using the CloudBees Folders Plus plugin, which can you restrict in a folder? Choose 2 answers

  • A . Builds to controlled agents (slaves).
  • B . Total number of jobs.
  • C . Maximum number of failed jobs allowed.
  • D . Job types that are allowed.
  • E . Available plugins.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #19

In an architecture that includes an Operations Center and one or more Client Masters, you want to share an agent node for several Client Masters .

What Is the best way to achieve this?

  • A . Configure "Shared agents’ In all CloudBees Core masters.
  • B . Create an Item of type "Shared Agent" in the Operations Center.
  • C . Configure a "Shared cloud" In al CloudBees Core masters.
  • D . (Configure the same agent node In all CloudBees Core masters.

Reveal Solution Hide Solution

Correct Answer: D
Question #20

Which are valid command-line options for the Java command that runs Jenkins as a stand alone application? Choose 3 answers

  • A . –logfile — Specify the path for the Jenkins log fie.
  • B . –installPlugin – Install a new plugin.
  • C . –Idap — Specify an LDAP server location to use for user authentication.
  • D . -prefix – Spedfy a string to be added at the end of the URL for this instance.
  • E . –httpPort — Specify the port on which Jenkins Iistens.

Reveal Solution Hide Solution

Correct Answer: A

Question #21

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 Globa 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 developer to run code on the Groovy sandbox.
  • B . 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.
  • C . You should configure Global Pipeline Libraries at the Pipeline level: The libraries are running as "untrusted" code, allowing developers to run cod on the Groovy sandbox.
  • D . You should not configure any Global Pipeline Libraries at all: The libraries are running as "trusted" code, allowing all developers to execute privileged methods.

Reveal Solution Hide Solution

Correct Answer: D
Question #22

When a Cloud Bees Core instance is enrolled in the CloudBees Assurance Program, which functions do the Beekeeper Upgrade Assistant perform? Choose 2 answers

  • A . Perform automatic upgrades to new CloudBees Core releases as soon as they are available.
  • B . Configure, under certain circumstances, CAP-specific Update Centers.
  • C . Monitor the plugins installed in the instance.
  • D . Delete every Update Center configured in the instance.
  • E . Prevent any upgrades of plugins.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #23

How can you configure a Declarative Pipeline to record the fingerprint of an artifact?

  • A . Enable the Declarative Pipeline ‘enableFingerprints’ ‘option’ .
  • B . No action is required; Declarative Pipelines automatically record a fingerprint for each artifact.
  • C . Set the "fingerprint: true" argument for the archiveArtifacts() step.
  • D . Call the fingerprintArtifact() step immediately after the archiveArtifacts() step.
  • E . Set the Fingerprint Artifacts global configuration option.

Reveal Solution Hide Solution

Correct Answer: B
Question #24

Which is an advantage of using a replaceable build node?

  • A . It allows jobs to have dedicated machines tailored to specialized needs.
  • B . It improves the throughput of master executors.
  • C . It reduces the impact on productivity if there is an outage of a build node.
  • D . It decreases the load on the network.

Reveal Solution Hide Solution

Correct Answer: A
Question #25

When designing a Jenkins architecture for your organization, two of the most common ways of stratifying development of projects are 1) populating masters by fobs based on the environment they are deploying to, and 2) assigning masters to divisions within an organization, based on an org chart .

Which of the following is an advantage of stratifying by environment over stratifying by org chart?

  • A . Outage of a master will not block flows for all products.
  • B . You can easily restrict access to a department’s protects to the users within that department.
  • C . You can tailor the installed plugins to be specific to the needs of the environment.
  • D . You can more easily create pipelines covering entire products.

Reveal Solution Hide Solution

Correct Answer: D
Question #26

You have an Operations Center architecture as pictured in the exhibit above, where there are:

• Three folders: F1, F2, and F3

• Three shared agents: SI, S2, and S3

• Four client masters: Ml, M2, M3, and M4

Which statements are true? Choose 2 answers

  • A . M1 can only perform builds on S1.
  • B . M3 can only perform builds on S2.
  • C . M4 can perform builds on any shared agent.
  • D . M3 can only perform builds on S2 and S3.
  • E . M4 can only perform builds on S3.

Reveal Solution Hide Solution

Correct Answer: C,D
Question #27

Which statements are TRUE when doing a freshinstall of CloudBees Core 2.x? Choose 2 answers

  • A . After the initial setup, the Beekeeper Upgrade Assistant will always be disabled.
  • B . Only the OPTIONAL plugins selected in the Setup Wizard and their dependencies will be installed, in their latest versions.
  • C . AN the OPTIONAL plugins will be installed, In the versions defined In the CAP Collection.
  • D . All the REQUIRED plugins will be Installed, in the versions defined in the CAP Collection.
  • E . Only the OPTIONAL plugins selected in the Setup Wizard and their dependencies will be Installed, In the versions defined in the CAP Collection.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #28

In a Freestyle fob, the tests are being executed within a Shell build step and then published vid the "Publish JUnit results" post build action .

Which conditions must Alt be met In order for the JUnit publisher to display the job status .is "Unstable’’? Choose 3 answers

  • A . The "Publish JUnR results" reporter finds the test reports.
  • B . All build steps are successful.
  • C . There is at least one SKIPPED test case.
  • D . All publishers before "Publish JUnit results" assign the SUCCESS status.
  • E . The overall "stability report amplification factor" is greater than 1.00.
  • F . There is at least one FAILED test case.

Reveal Solution Hide Solution

Correct Answer: B,C,E
Question #29

Which of the following are true about Declarative Pipelines: Choose 3 answers

  • A . Declarative syntax can express complex flows and conditionals.
  • B . A jenkinsfile can express the entire CI/CD process as code that is stored in a Source Code Management system.
  • C . Execution can be resumed after most failures.
  • D . The Jenkinsfile can incorporate any valid Apache Groovy code.
  • E . Declarative Pipeline uses the Pipeline domain specific language (DSL) to manipulate
    Jenkins objects.

Reveal Solution Hide Solution

Correct Answer: A,B,C
Question #30

On a Jenkins master, where would you configure tools like Maven, JDK, and Ant?

  • A . Manage Jenkins -> Global Tool Configuration
  • B . Build tools need to be configured manually on each agent.
  • C . Jenkins Nodes -> Install Tools
  • D . Manage Jenkins -> Configure System

Reveal Solution Hide Solution

Correct Answer: A
Exit mobile version