Exam4Training

CloudBees CJE Certified Jenkins Engineer (CJE) Online Training

Question #1

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?

  • A . only repositories that contain a Jenkinsfile in all their branches
  • B . only repositories that contain a Jenkinsfile in at least one branch
  • C . all repositories that contain a Jenkinsfile in at least one branch or pull request
  • D . all repositories

Reveal Solution Hide Solution

Correct Answer: A
Question #2

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

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

Reveal Solution Hide Solution

Correct Answer: D
Question #3

Which are commonly referenced as key points of CI? Choose 3 answers

  • A . Automated deployment to the production environment.
  • B . Collaboration among Dev, QA and Ops.
  • C . Automated tests after each commit
  • D . Automated builds after each commit.
  • E . Frequent commits to source code repository.

Reveal Solution Hide Solution

Correct Answer: C, D, E
Question #4

A unit test_________.

  • A . tests an Individual unit a component
  • B . verifies cross-functionalities
  • C . verifies that the complete software matches the specifications it was written to fulfill
  • D . is written when an Integration or multi-environment bog is fixed

Reveal Solution Hide Solution

Correct Answer: A
Question #5

Which of the following is true about resuming a Declarative Pipeline?

  • 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() option Is specified In the Jenkinsfile
  • D . Declarative Pipelines that use Docker containers can not be resumed because the docker APIs that Jenkins calls to create the container are not serialized
  • E . A Declarative Pipeline can be restarted only If the preserveStashes() option Is set In the pipeline.

Reveal Solution Hide Solution

Correct Answer: C
Question #6

Which of these tasks are ONLY available from the "Manage Jenkins” page? Choose 2 answers

  • A . Manage plugins
  • B . Define views
  • C . Configure credentials
  • D . Open Blue Ocean
  • E . Configure Global Security

Reveal Solution Hide Solution

Correct Answer: A, E
Question #7

In a "standalone" configuration, when masters manage the build environment and also execute builds with their own resources, which of the following Is true?

  • A . Build times decrease.
  • B . User interface becomes slower as resources on the master run out.
  • C . The builds share SCM checkouts
  • D . Masters are more highly available.

Reveal Solution Hide Solution

Correct Answer: B
Question #8

Why Is the performance of a Jenkins master Improved by using a distributed builds architecture?

  • A . Because executors cannot be allocated on the master.
  • B . Because executors offloaded onto build nodes are not performant.
  • C . Because it prevents the CPU being overloaded during parallel polls.
  • D . Because it prevents builds from overloading a master’s CPU/memory.
  • E . Because builds cannot be run In parallel on a master.

Reveal Solution Hide Solution

Correct Answer: D
Question #9

What is the purpose of the "Manage Old Data" screen under "Manage Jenkins"?

  • A . Delete artifacts, togs, and backups that are no longer required.
  • B . Clean up workspaces left by deleted Jenkins users.
  • C . Delete outdated configurations left by uninstalled, deleted, or upgraded plugins.
  • D . Delete or restore old credentials details.
  • E . Prepare for migration from Jenkins 1 to Jenkins 2.

Reveal Solution Hide Solution

Correct Answer: C
Question #10

Which of the following are true when using environment directives in a Declarative Pipeline? Choose 3 answers

  • A . If an environment variable b enclosed In single 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 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 is enclosed in single 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.
  • 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,

Reveal Solution Hide Solution

Correct Answer: A, C, D

Question #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

Reveal Solution Hide Solution

Correct Answer: A
Question #12

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

  • A . Use the pluginManager.downgrade method in the script console.
  • B . Select the version you want to use in the global configuration section for this plugin.
  • C . Select one of the previous versions in the Plugin Manager.
  • D . Manually download and install the previously installed version.
  • E . Use the "downgradeplugin" command In the Jenkins CI I
  • F . Use the button on the Plugin Manager that allows a downgrade to the previously installed version.

Reveal Solution Hide Solution

Correct Answer: D, F
Question #13

Which are Source Code Management tools? Choose 3 answers

  • A . Java
  • B . Perforce
  • C . Subversion
  • D . Git
  • E . Maven

Reveal Solution Hide Solution

Correct Answer: B, C, D
Question #14

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?

  • A . Pass the argument -Dhuason.model .Run. lockworkspace=false in the Jenkins master Invocation.
  • B . Check "Do not lock workspace" In the Advanced Project Options of the project.
  • C . Multiple concurrent runs can never share the same workspace.
  • D . Define a "Custom workspace" path for the job.

Reveal Solution Hide Solution

Correct Answer: D
Question #15

What does a flashing build icon in the Build History indicate? Choose 3 answers

  • A . A groovy script needs to be approved.
  • B . A build is waiting for Input.
  • C . The build is waiting for an executor to be available.
  • D . An agent is being spawned.

Reveal Solution Hide Solution

Correct Answer: A, C, D
Question #16

Which job type Is always available In Jenkins without additional plugins?

  • A . Ant project
  • B . Make project
  • C . Grade project
  • D . Pipeline project
  • E . Freestyle project

Reveal Solution Hide Solution

Correct Answer: E
Question #17

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

Reveal Solution Hide Solution

Correct Answer: B
Question #18

Which is the expected workflow for "lest-Driven Development"?

  • A . Validate with the CI system, write the new functional code, and then verify that the test 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.

Reveal Solution Hide Solution

Correct Answer: C
Question #19

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

Reveal Solution Hide Solution

Correct Answer: B
Question #20

Which keyword is used to group related parts of a Declarative Pipeline?

  • A . collect
  • B . step
  • C . stage
  • D . steps
  • E . group

Reveal Solution Hide Solution

Correct Answer: D

Question #21

In a Pipeline, the stage step_________.

  • 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

Reveal Solution Hide Solution

Correct Answer: A
Question #22

Which practices optimize performance on large systems? Choose 2 answers

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

Reveal Solution Hide Solution

Correct Answer: A, D
Question #23

Which are benefits of binary reuse (compiling once and reusing the built artifact across the rest of the pipeline)? Choose 3 answers

  • A . guarantees the same source is tested in each environment
  • B . allows the inclusion of environment configurations into the artifact
  • C . enables selectively linking stubs and real classes representing an external interface
  • D . ensures a single version b used throughout the pipeline
  • E . allows a shorter cycle time

Reveal Solution Hide Solution

Correct Answer: A, B, D
Question #24

Which can be defined in and limited to a specific folder and its subfolders? Choose 4 answers

  • A . Permissions to run jobs and Pipeline
  • B . Credentials
  • C . View definitions
  • D . Plugins
  • E . Pipeline shared libraries

Reveal Solution Hide Solution

Correct Answer: B, C, D, E,
Question #25

What is the default directory where a build takes place?

  • A . The Workspace directory.
  • B . The Builds directory in the Job.
  • C . The JENKINS_HOME directory.
  • D . The user’s home directory.

Reveal Solution Hide Solution

Correct Answer: A
Question #26

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.

Reveal Solution Hide Solution

Correct Answer: C, D
Question #27

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
  • D . Build Triggers
  • E . Post-build Actions

Reveal Solution Hide Solution

Correct Answer: A
Question #28

One quality of an ideal build node K that it is_________.

  • A . ephemeral and replaceable
  • B . tailored to specific builds
  • C . on-master
  • D . static

Reveal Solution Hide Solution

Correct Answer: A
Question #29

Which of the following statements are TRUE about Jenkins Pipeline? Choose 2 answers

  • A . A Pipeline job must contain at least three stages.
  • B . It is not possible to call a Freestyle Job from within a Pipeline Job.
  • C . The Pipeline syntax supports running steps in parallel on different agents.
  • D . When using a Multibranch Pipeline, Jenkins can automatically create Jobs for each branch in the source code repository.
  • E . Pipeline jobs survive master restarts only If the Pipeline definition script Is checked into an SCM.

Reveal Solution Hide Solution

Correct Answer: C, D
Question #30

Which Jenkins job status indicates that tests failed?

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

Reveal Solution Hide Solution

Correct Answer: C

Question #31

What are the main advantages of using webhooks/post commit hooks from your Source Code Management system to trigger your Jenkins project rather than using SCM polling? Choose 2 answers A

  • A . Builds are started on a defined a on schedule.
  • B . Avoid unnecessary overhead from polling.
  • C . Builds are started immediately after changes are committed.
  • D . The entire repository Is scanned so no commits are missed.

Reveal Solution Hide Solution

Correct Answer: B, C
Question #32

You need to automate the deployment of 20 base Jenkins masters. I or this, you set the system property jenkins.install.runSetupWizard to the Value "false".

Which Is TRUF about your Jenkins masters?

  • A . No default administrator account is created; you have to configure security manually.
  • B . A default administrator account is created with username "admin" and password "ad
  • C . A default administrator account is created with username "admin" and password from the file JENKINS_HOME/secrets/initialAdminPassword
  • D . A default administrator account is created and you cannot re-enable security.

Reveal Solution Hide Solution

Correct Answer: A
Question #33

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?

  • A . There are not enough idle executors available on agent A.
  • B . Changes were made to this job’s configuration while this Job had builds in the build queue.
  • C . Each build in the build queue must be manually attached to an available executor.
  • D . The "Execute concurrent builds if necessary option in the job configuration has reached Its user-defined maximum.

Reveal Solution Hide Solution

Correct Answer: A
Question #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.

Reveal Solution Hide Solution

Correct Answer: A, B
Question #35

What does the M# of executors" field on the Jenkins master control?

  • A . Maximum number of jobs which can be run concurrently on attached agents.
  • B . Number of Java threads that can run Jenkins jobs.
  • C . Number of external build agents that can be used for jobs run on this Jenkins master.
  • D . Number of CPU cores configured for this master.
  • E . Number of jobs that can execute simultaneously on the Jenkins master

Reveal Solution Hide Solution

Correct Answer: E
Question #36

DevOps teams can implement traceability of artifacts in a continuous delivery pipeline by using

  • A . the Downstream Builds plugin
  • B . manual recording
  • C . the Pipeline plugin to fingerprint files
  • D . Pipeline labels

Reveal Solution Hide Solution

Correct Answer: C
Question #37

Where do you find alerts about Jenkins security issues? Choose 3 answers

  • A . Beekeeper Upgrade Assistant if you are running CloudBees Jenkins Distribution or CloudBees Core.
  • B . An email message that is automatically sent to all users who have registered with the mailing list at Jenklnssd-advisories@googlegroups.com.
  • C . A banner displayed in the upper right section of the master’s home page.
  • D . An email message sent to all users who are listed in the "Send security notifications” field of the "Extended E-mail Notification" configuration.
  • E . Jenkins logs.

Reveal Solution Hide Solution

Correct Answer: C, D, E
Question #38

The Jenkins Install Wizard allows you to

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

Reveal Solution Hide Solution

Correct Answer: B
Question #39

A multi-configuration job contains the combination filter index% 4=1.

What does this filter achieve?

  • A . It removes 3 combinations In every 4.
  • B . It removes one combination in every 4.
  • C . It removes the fourth combination.
  • D . Nothing. The syntax is Invalid.
  • E . It removes the first combination.

Reveal Solution Hide Solution

Correct Answer: B
Question #40

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.

Reveal Solution Hide Solution

Correct Answer: A, B, C

Question #41

Which can you do with the Jenkins Install Wizard? Choose 3 answers

  • A . Install a pre-defined set of recommended plugins.
  • B . Install Jenkins without any extra plugins.
  • C . Choose the version of Jenkins core to install.
  • D . Manually select plugins to install from a set of predefined plugins.
  • E . Install all existing open-source plugins for Jenkins.

Reveal Solution Hide Solution

Correct Answer: A, B, D
Question #42

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 . Artifact Deployer plugin.

Reveal Solution Hide Solution

Correct Answer: B
Question #43

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

Reveal Solution Hide Solution

Correct Answer: A
Question #44

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.

Reveal Solution Hide Solution

Correct Answer: C
Question #45

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.

Reveal Solution Hide Solution

Correct Answer: A
Question #46

Which of the following build steps is most appropriate to use to publish the artifact files of a build?

  • A . Copy artifact files to the agent file system
  • B . Upload the artifact files to a central artifact repository.
  • C . Stash artifact files.
  • D . Commit the artifact files to git.

Reveal Solution Hide Solution

Correct Answer: B
Question #47

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.

Reveal Solution Hide Solution

Correct Answer: C
Question #48

Which is the about the "Build Triggers" functionality in Jenkins?

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

Reveal Solution Hide Solution

Correct Answer: B
Question #49

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.

Reveal Solution Hide Solution

Correct Answer: B, C, E
Question #50

Choose the destinations where Jenkins and its plugins can send job notifications?

  • A . email
  • B . Slack
  • C . Jira
  • D . SMS messaging
  • E . All of the above

Reveal Solution Hide Solution

Correct Answer: E

Question #51

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.

Reveal Solution Hide Solution

Correct Answer: A, B
Question #52

In order to send email notifications on build completion using Jenkins’ built in mail functionality, which TWO of the following must be true?

  • A . The job must be configured to send email.
  • B . Jenkins must be successfully configured to point to a mail server.
  • C . Jenkins must be directly connected to the Internet.
  • D . Jenkins must have a unique email address.
  • E . Sendmail must be Installed and running on the same machine as Jenkins.

Reveal Solution Hide Solution

Correct Answer: A, B
Question #53

A Freestyle job has the configuration shown here:

You run the following command from a Unix terminal: curl http: ///git/notifyCommit?

url-gitagithub.com: cloudbees/github test.git Will the Job be triggered?

  • A . It will not be triggered.
  • B . It will be triggered if the polling detects a change In any git branch.
  • C . It will be triggered if the polling detects a change In the git branch "master".
  • D . It will be triggered if the polling detects a change in the git branch "development".

Reveal Solution Hide Solution

Correct Answer: D
Question #54

Which statements about a Distributed Version Control System are correct? Choose 2 answers

  • A . It makes It easy to fork and merge code.
  • B . It requires one server in each location.
  • C . It requires a central server and a standby server.
  • D . It requires fast network access for daily work.
  • E . It operates without a central server.

Reveal Solution Hide Solution

Correct Answer: A, E
Question #55

In Jenkins, a trigger commonly refers to a mechanism that automatically_________.

  • 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

Reveal Solution Hide Solution

Correct Answer: B
Question #56

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.

Reveal Solution Hide Solution

Correct Answer: A
Question #57

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.

Reveal Solution Hide Solution

Correct Answer: B, C, E
Question #58

Which TIIKII of the following are considered best practices when setting up rules for notifications?

  • A . Send notifications only when direct intervention is needed.
  • B . Do not send developers too many email notifications.
  • C . Make sure the notification’s target Is the right person.
  • D . Send notifications by multiple channels (email, chat room, PagerDuty, etc.) to make sure they are received.
  • E . Periodically change the recipient of emails, to make sure they are not classified as spam.

Reveal Solution Hide Solution

Correct Answer: B, C, D
Question #59

Which arc true when installing new plugins? Choose 2 answers

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

Reveal Solution Hide Solution

Correct Answer: A, C
Question #60

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.

Reveal Solution Hide Solution

Correct Answer: A

Question #61

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.

Reveal Solution Hide Solution

Correct Answer: B, D
Question #62

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

Reveal Solution Hide Solution

Correct Answer: B, C
Question #63

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.

Reveal Solution Hide Solution

Correct Answer: A
Question #64

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.

Reveal Solution Hide Solution

Correct Answer: B
Question #65

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.

Reveal Solution Hide Solution

Correct Answer: ACD
Question #66

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.

Reveal Solution Hide Solution

Correct Answer: C
Question #67

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

Reveal Solution Hide Solution

Correct Answer: A
Question #68

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.

Reveal Solution Hide Solution

Correct Answer: D
Question #69

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

Reveal Solution Hide Solution

Correct Answer: C
Question #70

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

Reveal Solution Hide Solution

Correct Answer: B
Exit mobile version