New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70special

CloudBees CJE Certified Jenkins Engineer (CJE) Exam Practice Test

Page: 1 / 19
Total 186 questions

Certified Jenkins Engineer (CJE) Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$37.5  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$33  $109.99
Question 1

When you want to validate that your software produces the desired behavior for end users, you need to use

Options:

A.

smoke tests

B.

acceptance tests

C.

functional tests

D.

non-regression tests

Question 2

What interval syntax could I use to trigger a build every day?

Options:

A.

@daily

B.

H H * * *

C.

30 12 * * *

D.

All of these

Question 3

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 4

A unit test_________.

Options:

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

Question 5

How do you configure a JUnit report in a pipeline?

Options:

A.

None of these

B.

junit-report "path to xml file"

C.

generate "junit-report"

D.

junit "path to xml file"

Question 6

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 7

What can a plugin do?

Options:

A.

Manage credentials for Jenkins

B.

All of these

C.

Add a build step option to Jenkins

D.

Provide backup functionality to Jenkins

Question 8

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

Options:

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.

Question 9

You can use Jenkins' database to manage users.

Options:

A.

True

B.

False

Question 10

You're a DevOps engineer in charge of configuring Jenkins for your team's CI/CD pipeline. You're utilizing the Jenkins pipeline and the Jenkinsfile. You want to define a stage for your build that utilizes the locally installed Ant and build.xml in the root of your project repository. Which is the correct syntax?

Options:

A.

step('build') { sh 'ant -f build.xml -v' } }

B.

stage('build') { sh 'ant -f build.xml -v' }

C.

stage('build') { steps { sh 'ant -f build-tools/build.xml -v' } }

D.

stage('build') { steps { sh 'ant -f build.xml -v' } }

Question 11

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

Options:

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.

Question 12

You want to deploy a Jenkins pipeline, but you are concerned about the total amount of time it will take for the deployment to complete, and you aren't concerned with files left in the working directory after a build. What should you do?

Options:

A.

Tune the "timer" section for the project.

B.

Choose not to use a clean checkout.

C.

There's no way to reduce the time

D.

Use a clean checkout.

Question 13

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

Options:

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

Question 14

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

Options:

A.

Ant project

B.

Make project

C.

Grade project

D.

Pipeline project

E.

Freestyle project

Question 15

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

Options:

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.

Question 16

Which is a valid agent declaration?

Options:

A.

agent any

B.

agent { label 'Slave 1'}

C.

agent none

D.

All of these

Question 17

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 18

What type of views can be configured in Jenkins?

Options:

A.

email

B.

notice

C.

emailext

D.

alert

Question 19

What is an SCM?

Options:

A.

Source Code (or Control) Management

B.

Structural Code Machine

C.

Super Core Management

D.

None of the above

Question 20

What is Jenkins matrix-based security?

Options:

A.

None of these

B.

An option that doesn't come with Jenkins by default

C.

An option that doesn't allow user specific permissions

D.

Allows the administrator to grant very specific permissions to users and groups.

Question 21

You have a stage called "Promote to Green," and you only want to run it when "development" is the current branch in a multibranch pipeline. How would you use the "when" declarative to accomplish this?

Options:

A.

when { branch 'development' }

B.

when { branch 'master' }

C.

when( $branch == 'development')

D.

when 'development'

Question 22

How do you configure notifications in a Jenkinsfile?

Options:

A.

emailext

B.

notice

C.

email

D.

alert

Question 23

Which of the following are true about the structure of a Declarative Pipeline? Choose 2 answers

Options:

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.

Question 24

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 25

You've been promoted at work and are now in charge of the system administrators that look after the Jenkins platform for your company. You no longer want to get notifications from Jenkins, but your subordinates don't know what settings to change in a Jenkinsfile. You give them a look, and say one of the following is what needs to be changed:

Options:

A.

notice

B.

alert

C.

email

D.

emailext

Question 26

Which is not a Git plugin-provided environment variable?

Options:

A.

GIT_COMMIT

B.

GIT_ORIGIN_URL

C.

GIT_URL

D.

GIT_BRANCH

Question 27

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

Page: 1 / 19
Total 186 questions