Pass the CloudBees Jenkins Engineer CJE Questions and answers with CertsForce

Viewing page 3 out of 6 pages
Viewing questions 21-30 out of questions
Questions # 21:

How would you invoke a Docker agent?

Options:

A.

agent { label 'docker'}


B.

None of these


C.

agent { docker 'openjdk'}


D.

agent docker


Expert Solution
Questions # 22:

If you set "Child item with worst health" and "recursive" in the folder config, how is the health determined for the folder?

Options:

A.

Only top-scoped projects will determine the folder's health


B.

None of these


C.

Folders don't have health


D.

Items in nested sub-folders are used to calculate the folder's health.


Expert Solution
Questions # 23:

Which of the following statements are TRUE about Jenkins Pipeline?

Choose 2 answers

Options:

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.


Expert Solution
Questions # 24:

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

Options:

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.


Expert Solution
Questions # 25:

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

Options:

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.


Expert Solution
Questions # 26:

You can use Jenkins' database to manage users.

Options:

A.

True


B.

False


Expert Solution
Questions # 27:

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


Expert Solution
Questions # 28:

Which is a valid environment variable string interpolation?

Options:

A.

"${VARIABLE}"


B.

Both "${VARIABLE}" and $VARIABLE


C.

%{VARIABLE}


D.

$VARIABLE


Expert Solution
Questions # 29:

You have now been given charge over an existing Jenkins system install that was previously started by a colleague who is gone on a business trip. He left it in the install wizard phase. Unfortunately, your colleague did not note the initialAdminPassword. Where on the systemwould this be located?

Options:

A.

/var/lib/jenkins/secrets/InitialAdminPassword


B.

/var/lib/jenkins/adminPassword


C.

/var/lib/jenkins/workspace/secrets/InitialAdminPassword


D.

/home/jenkins/secrets/InitialAdminPassword


Expert Solution
Questions # 30:

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


Expert Solution
Viewing page 3 out of 6 pages
Viewing questions 21-30 out of questions