Black Friday Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

CloudBees CJE Certified Jenkins Engineer (CJE) Exam Practice Test

Demo: 27 questions
Total 186 questions

Certified Jenkins Engineer (CJE) Questions and Answers

Question 1

What's the difference between continuous integration and continuous delivery?

Options:

A.

Continuous deployment means the code CAN be released at any time, while continuous integration means it is released continuously.

B.

Continuous delivery means the code CAN be released at any time, while continuous integration means it is released continuously

C.

Continuous integration is just the practice of integrating code continuously. It doesn't necessarily mean that it can be released at any time like continuous delivery

D.

Continuous delivery and continuous integration are the same thing.

Question 2

You've just become the administrator for the Jenkins server, and the feedback you've received from the users is they're having trouble locating their jobs to run them. You've determined that folders are the most logical solution and wish to move the jobs into the new folders you've created. How would you accomplish this?

Options:

A.

All of these

B.

Click existing item; in the item view page, select "move" on the left panel; select target folder.

C.

For new items, click folder; in the folder view, select new item; it will automatically be added to that folder.

D.

Hover and click arrow on existing item, choose "move", select target folder.

Question 3

What types of credentials does Jenkins support?

Options:

A.

SSH Keys

B.

All of these

C.

Username/Password

D.

Username/API Token

Question 4

What's a fingerprint?

Options:

A.

User tracking in Jenkins

B.

The size of an artifact in bytes

C.

An md5sum for an artifact that's tracked between projects

D.

The name of a file

Question 5

Jenkins, along with several other automation platforms, provides developers and operators with tools that allow them to automate the deployment of environments with preconfigured source code, including the CI pipeline. What is this called?

Options:

A.

Continuous Integration

B.

Continuous Deployment

C.

Continuous Delivery

D.

Infrastructure as Code

Question 6

Which menu option do you select to add a pipeline or other project?

Options:

A.

Credentials

B.

My Views

C.

New Item

D.

Manage Jenkins

Question 7

What is a code coverage test?

Options:

A.

It tests components coming together

B.

It tests against the product specifications.

C.

It tests a small piece of functionality, usually at the class method level.

D.

It tests how well your code is tested.

Question 8

How do you navigate to the matrix-based security section of Jenkins?

Options:

A.

Manage Jenkins -> Configure Global Security

B.

Manage Jenkins -> Configure System

C.

None of these

D.

Manage Jenkins -> Configure Global Options

Question 9

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

Options:

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.

Question 10

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?

Options:

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.

Question 11

Which answer best describes continuous integration?

Options:

A.

A software development discipline where software is built so that it can be released to production at any time.

B.

A software development discipline where software is released continuously as part of an automated pipeline.

C.

Building in 60 minutes or less.

D.

A software development practice where contributors are integrating their work very frequently.

Question 12

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

Options:

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.

Question 13

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

Choose 3 answers

Options:

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.

Question 14

Which is not a function provided by the Jenkins CLI?

Options:

A.

db-dump

B.

restart

C.

who-am-i

D.

shutdown

Question 15

Which are Source Code Management tools?

Choose 3 answers

Options:

A.

Java

B.

Perforce

C.

Subversion

D.

Git

E.

Maven

Question 16

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

Options:

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

Question 17

The QA department has been having issues locating their work on the Jenkins server. As a result, their manager has asked for the jobs (projects) to be better organized. Which most correct answer can you use to organize projects?

Options:

A.

Folders and views

B.

Relational Database

C.

Folders

D.

Views

Question 18

Which is a valid agent declaration?

Options:

A.

agent any

B.

agent { label 'Slave 1'}

C.

agent none

D.

All of these

Question 19

Your company's DevOps staff is new to the continuous integration methodology. Some users are unclear on best practices, and you're hearing all kinds of feedback from them, some of it wrong. Which of the following statements is NOT a CI best practice?

Options:

A.

Builds should be self-testing. That allows us maximum flexibility in spotting breaking changes and prevents a lot of staff time spent trying to both integrate a change and determine why it broke the build.

B.

We should really use a single source repository. That makes it easier for us to manage what gets into the build pipeline.

C.

Build everything manually, because that prevents errors.

D.

Every commit should be built. That ensures we don't wind up with a lot of stray code and that any future change will be testable.

Question 20

Which of the following are advantages of a Pipeline job when compared to a Freestyle job? Choose 2 answers

Options:

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.

Question 21

Over the last six months, a large number of projects have been added to Jenkins. You have been asked by your manager to do some cleanup by creating some list views. How would you go about creating these list views?

Options:

A.

All of these

B.

Using a regular expression pattern

C.

Explicitly set projects to view

D.

Explicitly set recursively in sub-folders

Question 22

You are tasked by management to explain continuous deployment. Your explanation will be used in the company's annual report, so you need to ensure you understand it properly. Which is the best definition?

Options:

A.

Building in 60 minutes or less.

B.

A software development practice where contributors are integrating their work very frequently to production in an automated fashion.

C.

A software development discipline where software is built so that it can be released to production at any time.

D.

A software development discipline where software is built so that it can be released to production at any time.

Question 23

Your co-worker was installing a Jenkins instance and went home for the night. When they returned the next day they notice their machine had rebooted, the scrollback of the installation was unretrievable, and they've come to you for help. In what location will you need to look at it to retrieve the initialAdminPassword?

Options:

A.

/opt/jenkins/

B.

/var/lib/jenkins/secrets/

C.

/tmp/Jenkins/

D.

/usr/lib/jenkins/password/

Question 24

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

Options:

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.

Question 25

You can use Jenkins' database to manage users.

Options:

A.

True

B.

False

Question 26

Which is NOT a continuous integration best practice?

Options:

A.

Maintain a single source repository.

B.

Do everything manually with great care.

C.

Build every commit.

D.

Make the build self-testing.

Question 27

What's a unit test?

Options:

A.

It tests the functionality of the project as a whole.

B.

It tests against the product specifications

C.

It tests a small piece of functionality, usually at the class method level.

D.

It tests components coming together.

Demo: 27 questions
Total 186 questions