
Updated Feb-2023 CJE Free Exam Files Downloaded Instantly
Practice Exams and Training Solutions for Certifications
NEW QUESTION 23
What's a Jenkins job (or project)?
- A. None of these
- B. Can be scoped to any typical IT task defined in Jenkins
- C. Employment for an IT worker
- D. The overall purpose of a Jenkins implementation
Answer: B
Explanation:
A project is really any unit of work in a typical IT environment that's configured to run in Jenkins.
NEW QUESTION 24
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. Job Configuration Restriction plugin
- B. Build parameters
- C. System environment variables
- D. Matrix-based security
- E. Declarative Pipeline
Answer: C
NEW QUESTION 25
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?
- A. Use a clean checkout.
- B. There's no way to reduce the time
- C. Tune the "timer" section for the project.
- D. Choose not to use a clean checkout.
Answer: D
Explanation:
You can save time by not choosing to have a clean checkout for each build
NEW QUESTION 26
Which of the following would correctly complete the sentence, "Continuous Integration is a of Continuous Delivery"? Choose 2 answers
- A. requirement
- B. process definition
- C. consolidation
- D. subset
- E. superset
Answer: A,B
NEW QUESTION 27
Which of the following "agent" directives are not valid in Declarative Pipeline?
- A. agent docker
- B. agent (dockerfile {filename ' Dockerfile' } }
- C. agent { docker ' centos:latest' }
- D. agent { label 'Minux' }
- E. agent none
Answer: A
NEW QUESTION 28
How do you navigate to the matrix-based security section of Jenkins?
- A. Manage Jenkins -> Configure Global Options
- B. None of these
- C. Manage Jenkins -> Configure Global Security
- D. Manage Jenkins -> Configure System
Answer: C
Explanation:
This is how you would use the dashboard to navigate to the Security section.
NEW QUESTION 29
Which of these tasks are ONLY available from the "Manage Jenkins'' page? Choose 2 answers
- A. Open Blue Ocean
- B. Configure Global Security
- C. Define views
- D. Configure credentials
- E. Manage plugins
Answer: B,E
NEW QUESTION 30
How do you archive artifacts from a Jenkinsfile?
- A. artifact
- B. export
- C. save
- D. archiveArtifacts
Answer: D
Explanation:
archiveArtifacts can be used to set an archiving strategy for a project in a Jenkinsfile.
NEW QUESTION 31
What's the Jenkinsfile?
- A. None of these
- B. It contains the definition for a pipeline
- C. It's only used for freestyle projects
- D. It contains the basic configuration for Jenkins
Answer: B
Explanation:
The Jenkinsfile lives with project source code and portrays the "Pipeline as code" concept.
NEW QUESTION 32
What's a big priority of continuous integration?
- A. Fixing broken builds
- B. Making sure a manager approves every line of code
- C. Automate only when necessary
Answer: A
Explanation:
Making sure everyone gets to contribute the exact same amount
Explanation:
When a build breaks, fixing it should be the priority of everyone on the project
NEW QUESTION 33
Which of the following are advantages of a Pipeline job when compared to a Freestyle job? Choose 2 answers
- A. Builds can be triggered with millisecond granularity.
- B. Builds can be parameterized.
- C. No extra plugins must be installed.
- D. Jenkins can be restarted while a build is In progress without impacting the build.
- E. Job definition can be loaded from the Source Code Management system at build time.
Answer: D,E
NEW QUESTION 34
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 not configure any Global Pipeline Libraries at the folder level: The libraries are running as "trusted" code, allowing all developers to execute privileged methods.
- 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 configufe Global Pipeline Libraries at the Pipeline level: The libraries are running as "untrusted" code, allowing developers to run code on the Groovy sandbox.
Answer: C
NEW QUESTION 35
A multi-configuration job contains the combination filter index% 4=1. What does this filter achieve?
- A. It removes the fourth combination.
- B. Nothing. The syntax is Invalid.
- C. It removes one combination in every 4.
- D. It removes 3 combinations In every 4.
- E. It removes the first combination.
Answer: C
NEW QUESTION 36
How can you downgrade a plugin?
- A. Use the advanced install option in the Plugin Manager to install an older hpi file than the plugin already installed.
- B. Overwrite the hpi file on the file system
- C. All of these
- D. Click the "Downgrade to" button in the Plugin Manager
Answer: C
Explanation:
You can downgrade a plugin with any of these methods.
NEW QUESTION 37
What is the default directory where a build takes place?
- A. The JENKINS_HOME directory.
- B. The Builds directory in the Job.
- C. The user's home directory.
- D. The Workspace directory.
Answer: D
NEW QUESTION 38
Which plugin provides Git hook functionality?
- A. None of these
- B. Both the Git and GitHub Plugins
- C. The Git Plugin
- D. The GitHub Plugin
Answer: B
Explanation:
Both of these very common plugins provide hook functionality
NEW QUESTION 39
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. Set the "fingerprint: true" argument for the archiveArtifactsQ step.
- C. No action is required; Declarative Pipelines automatically record a fingerprint for each artifact.
- D. Enable the Declarative Pipeline 'enableFingerprints' 'option' .
- E. Set the Fingerprint Artifacts global configuration option.
Answer: B
NEW QUESTION 40
How do you use the Jenkins CLI?
- A. jcli
- B. There is no Jenkins CLI
- C. jenkins
- D. java -jar /var/lib/jenkins/jenkins-cli.jar -s http://:8080/
Answer: D
NEW QUESTION 41
You want to archive and track a build artifact, "build/mybuilt.jar", with a fingerprint from your team's build. How would you invoke the archiveArtifacts function to accomplish this?
- A. archiveArtifacts artifacts: ''build/mybuilt.jar'
- B. archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: true
- C. archiveArtifacts = 'build/mybuilt.jar', fingerprint: true
- D. archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: false
Answer: B
Explanation:
Example with Context: post { success { archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: true } }
NEW QUESTION 42
......
Q&As with Explanations Verified & Correct Answers: https://pass4sure.itexamdownload.com/CJE-valid-questions.html