
[Jan-2023 Newly Released] CJE Dumps for Jenkins Engineer Certified
Updated Verified CJE dumps Q&As - 100% Pass
NEW QUESTION 73
How can you easily see if a plugin you use needs to be upgraded to a new version?
- A. Check the Jenkins Update Center.
- B. Email the maintained
- C. Search for the plugin in the Jenkins artifact repository.
- D. Check the plugin wiki.
Answer: A
NEW QUESTION 74
What types of credentials does Jenkins support?
- A. All of these
- B. SSH Keys
- C. Username/API Token
- D. Username/Password
Answer: A
Explanation:
Jenkins supports all of these credential types.
NEW QUESTION 75
Which of the following are advantages of a Pipeline job when compared to a Freestyle job? Choose 2 answers
- A. No extra plugins must be installed.
- B. Jenkins can be restarted while a build is In progress without impacting the build.
- C. Job definition can be loaded from the Source Code Management system at build time.
- D. Builds can be triggered with millisecond granularity.
- E. Builds can be parameterized.
Answer: B,C
NEW QUESTION 76
What's an example of a cloud-based SCM?
- A. All of these
- B. GitHub
- C. AWS CodeCommit
- D. Atlassian BitBucket
Answer: A
Explanation:
All of these options are cloud-based SCM providers.
NEW QUESTION 77
Which is the about the "Build Triggers" functionality in Jenkins?
- A. It allows you to trigger a build under certain conditions, such as GitHub/BitBucket push events, deployment ratifications,
- B. It allows you to customize the mail to be sent to developers after a failing build.
- C. It allows you to customize what specific IP address will never be able to trigger a build.
- D. It can only be configured on Freestyle projects.
Answer: A
NEW QUESTION 78
Which keyword is used to group related parts of a Declarative Pipeline?
- A. group
- B. steps
- C. step
- D. collect
- E. stage
Answer: B
NEW QUESTION 79
How can you assign projects to specific agent nodes?
- A. None of these
- B. Set the projects in the "Manage Node" view
- C. Using an expression that matches a node's name or label
- D. Select the node from the "Project Configuration" view
Answer: C
Explanation:
You can configure a project to run on a node, or subset of nodes, based on expression matching of a node's labels.
NEW QUESTION 80
Which is not a Git plugin-provided environment variable?
- A. GIT_URL
- B. GIT_BRANCH
- C. GIT_ORIGIN_URL
- D. GIT_COMMIT
Answer: C
Explanation:
The others are all default Git plugin-provided environment variables.
NEW QUESTION 81
You are working on a project that will build a Docker image. When the job completes it needs to trigger a build to deploy a container to your development environment for integration testing. How would you go about triggering the second build?
- A. Use the run() function passing the downstream projects name from within an upstream project build step.
- B. In the downstream build, you can select "Triggered by another project"
- C. You could use the Parameterized Trigger Plugin to trigger from an upstream project.
- D. Both "Triggered by another project" and the "Parameterized Trigger Plugin"
Answer: D
Explanation:
Both are options for triggering upstream and downstream projects.
NEW QUESTION 82
What can a plugin do?
- A. All of these
- B. Add a build step option to Jenkins
- C. Provide backup functionality to Jenkins
- D. Manage credentials for Jenkins
Answer: A
Explanation:
Plugins can really be used to add any functionality to Jenkins.
NEW QUESTION 83
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 = 'build/mybuilt.jar', fingerprint: true
- B. archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: false
- C. archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: true
- D. archiveArtifacts artifacts: ''build/mybuilt.jar'
Answer: C
Explanation:
Example with Context: post { success { archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: true } }
NEW QUESTION 84
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?
- A. environment [MAJOR_VERSION=1]
- B. environment { MAJOR_VERSION = 1 }
- C. environment { steps { sh " export MAJOR_VERSION=1" }}
- D. environment(MAJOR_VERSION = 1)
Answer: B
Explanation:
Example: pipeline { agent none environment { MAJOR_VERSION = 1 }
NEW QUESTION 85
How do you set a freestyle project to be parameterized?
- A. All freestyle projects are parameterized
- B. From "Project Configuration," select "This project is parameterized."
- C. Choose the project from the parameterized list in the "Configure System" section.
- D. Freestyle projects don't accept parameters
Answer: B
NEW QUESTION 86
Pipelines often require access to protected resources such as servers, databases, and SCMs. Without using an external credentials manager, which of the following provides the most secure centralized mechanism for managing the "secrets" that Jenkins requires to login/authenticate (for example: keys, tokens, passwords)?
- A. Store the secrets as Node Properties for each agent definition.
- B. Embed secrets into the build and deployment scripts invoked by the job.
- C. Store the secrets required in the SCM alongside the application source code.
- D. Store the secrets on the Jenkins master using the Credentials plugin.
- E. Include the secrets In the home directory of the Jenkins agent account.
Answer: D
NEW QUESTION 87
Where do you find alerts about Jenkins security issues? Choose 3 answers
- A. An email message sent to all users who are listed in the "Send security notifications'' field of the "Extended E-mail Notification" configuration.
- B. An email message that is automatically sent to all users who have registered with the mailing list at [email protected].
- C. A banner displayed in the upper right section of the master's home page.
- D. Jenkins logs.
- E. Beekeeper Upgrade Assistant if you are running CloudBees Jenkins Distribution or CloudBees Core.
Answer: A,C,D
NEW QUESTION 88
Which are commonly referenced as key points of CI?
Choose 3 answers
- A. Frequent commits to source code repository.
- B. Automated deployment to the production environment.
- C. Collaboration among Dev, QA and Ops.
- D. Automated tests after each commit
- E. Automated builds after each commit.
Answer: A,D,E
NEW QUESTION 89
Which of the following are true when using environment directives in a Declarative Pipeline?
Choose 3 answers
- A. If an environment variable Is enclosed In double quotes, the Pipeline DSL dereferences the variable on the master's JVM and passes the calculated string to the sh or bat step; if the environment variable is enclosed in single quotes, the name of the environment variable itself is passed to the "sh" or "bat" step and the shell interpreter on the agent dereferences the variable.
- B. A Declarative Pipeline can use environment variables defined In Jenkins Itself (such as BUILD_NUMBER and JENKINS^URL), environment variables defined in an installed plugin (such as GIT„COMMIT or GIT .BRANCH, defined in the Git plugin), or environment variables that are coded as directives in the Pipeline itself; the semantics are identical for all environment variables.
- C. If an environment variable b enclosed In single quotes, the Pipeline DSL dereferences the variable on the master's JVM and passes the calculated string to the sh or bat step; if the environment variable Is enclosed in double quotes, the name of the environment variable itself is passed to the "sh" or 'bat" step and the shell interpreter on the agent dereferences the variable.
- D. An environment variable can be specified globally (to apply to all steps in the pipeline), for an individual step, or for one or more specified steps In the Pipeline,
Answer: B,C,D
NEW QUESTION 90
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?
- A. Set permissions in Jenkins to allow anonymous users to run the command
- B. Change the workflow to require an existing user to run the task, and assign permissions to that user.
- C. Create a group, add an existing user to the task, and grant permissions to that group
- D. Either creating a group or reassigning the user will work.
Answer: A
Explanation:
You can set permissions for anonymous users with matrix-based security. Since this requires the least impact on existing workflows, it's the best solution.
NEW QUESTION 91
In a Pipeline, the stage step_________.
- A. can be used to group a number of other steps into a logical unit for display
- B. prepares a test environment in Jenkins
- C. transfers artifacts to a staging server for testing
- D. collects a set of artifacts that can be referenced in a later Pipeline step
Answer: A
NEW QUESTION 92
......
Latest CJE Exam Dumps CloudBees Exam from Training: https://passcertification.preppdf.com/CloudBees/CJE-prepaway-exam-dumps.html