Labour Day Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 713PS592

CJE Certified Jenkins Engineer (CJE) Questions and Answers

Questions 4

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.

Buy Now
Questions 5

Which plugin provides Git hook functionality?

Options:

A.

Both the Git and GitHub Plugins

B.

The GitHub Plugin

C.

The Git Plugin

D.

None of these

Buy Now
Questions 6

You have a series of tasks which require execution across different software components to prove the compatibility and functionality of your build and the components as a whole. Which of the following describes the type of testing you will perform?

Options:

A.

Acceptance testing

B.

Smoke testing

C.

Unit testing

D.

Integration testing

Buy Now
Questions 7

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.

Buy Now
Questions 8

How do you add a new folder?

Options:

A.

Click "New Item" in the left dashboard panel, then select "Folder"

B.

None of these

C.

Add a folder on the Jenkins master file system in /var/lib/jenkins

D.

You can add one from another project's "Configuration" view

Buy Now
Questions 9

Which isn't a common Jenkins build tool?

Options:

A.

Ant

B.

Excel

C.

Docker

D.

Gradle

Buy Now
Questions 10

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.

Buy Now
Questions 11

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

Buy Now
Questions 12

You are a DevOps engineer in charge of your team's Jenkins server. Your project is on major version "1". You want to ensure that this variable, MAJOR_VERSION, is available throughout your pipeline that is defined in a Jenkinsfile. Which of the following ways could you accomplish that using the "environment" directive?

Options:

A.

environment(MAJOR_VERSION = 1)

B.

environment { steps { sh " export MAJOR_VERSION=1" }}

C.

environment { MAJOR_VERSION = 1 }

D.

environment [MAJOR_VERSION=1]

Buy Now
Questions 13

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.

Buy Now
Questions 14

You can set permissions for anonymous users with matrix-based security.

Options:

A.

False

B.

True

Buy Now
Questions 15

What is Jenkins auditing?

Options:

A.

Ensuring licenses have been paid for and allocated appropriately

B.

Tracking system resources

C.

Tracking who did what on your Jenkins server

D.

Reviewing Build Failure rate

Buy Now
Questions 16

Which of the following is not a default environment variable in a Jenkins project?

Options:

A.

START_TIME

B.

JOB_NAME

C.

NODE_NAME

D.

BUILD_NUMBER

Buy Now
Questions 17

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

Buy Now
Questions 18

How can you assign projects to specific agent nodes?

Options:

A.

None of these

B.

Using an expression that matches a node's name or label

C.

Select the node from the "Project Configuration" view

D.

Set the projects in the "Manage Node" view

Buy Now
Questions 19

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?

Options:

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.

Buy Now
Questions 20

You need to grant permissions, via matrix-based security, to run a specific command in a Jenkins pipeline. The project parameters will not allow you to create a specific user to run this task, and you have no relevant groups. Which of the following is an option?

Options:

A.

Either creating a group or reassigning the user will work.

B.

Create a group, add an existing user to the task, and grant permissions to that group

C.

Set permissions in Jenkins to allow anonymous users to run the command

D.

Change the workflow to require an existing user to run the task, and assign permissions to that user.

Buy Now
Questions 21

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/

Buy Now
Questions 22

What's the Jenkinsfile?

Options:

A.

None of these

B.

It's only used for freestyle projects

C.

It contains the definition for a pipeline

D.

It contains the basic configuration for Jenkins

Buy Now
Questions 23

Which answer best describes continuous deployment?

Options:

A.

Building in 60 minutes or less.

B.

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

C.

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

D.

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

Buy Now
Questions 24

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.

Options:

Buy Now
Questions 25

Which is an invalid default project parameter?

Options:

A.

Boolean

B.

File

C.

String

D.

md5

Buy Now
Questions 26

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' } }

Buy Now
Questions 27

Which of the following are true about credentials that are implemented in a Declarative Pipeline using the "credentials" or "withCredentials( )" method?

Choose 2 answers

Options:

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.

Buy Now
Exam Code: CJE
Exam Name: Certified Jenkins Engineer (CJE)
Last Update: Apr 27, 2024
Questions: 186

PDF + Testing Engine

$66.4  $165.99

Testing Engine

$46  $114.99
buy now CJE testing engine

PDF (Q&A)

$42  $104.99
buy now CJE pdf