▶ ExamTry
Home
Medical
Neet Ug
4
Ssc-Cgl
General_Awareness
5
Mock-Test
5
Devops
Git
3
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
jenkins
Exam4
Exam4
devops / jenkins
• 5 questions
Question 1 of 5
What is a build artifact in Jenkins?
A.
A Jenkins plugin dependency
B.
A file or set of files produced by a build job (e.g., JAR, WAR, binary)
C.
A build failure report
D.
A source code commit
Question 2 of 5
What does the `archiveArtifacts` step do in a Jenkinsfile?
A.
Deletes old build output files to free disk space
B.
Saves specified build outputs so they can be downloaded or used by downstream jobs
C.
Archives the Jenkinsfile itself in the build record
D.
Creates a Docker image from the build output
Question 3 of 5
What do the `stash` and `unstash` steps do in a Jenkins Pipeline?
A.
Store and retrieve Docker images between pipeline runs
B.
Pass files between stages or agents within the same pipeline run
C.
Cache npm packages to speed up builds
D.
Archive and restore JUnit test results
Question 4 of 5
How can you trigger a Jenkins build on a time-based schedule?
A.
By setting environment variables in the Jenkinsfile
B.
Using a cron expression in the `triggers { cron(...) }` block
C.
Webhooks are the only supported trigger mechanism
D.
By using a parameterized build with a date parameter
Question 5 of 5
What is Jenkins Configuration as Code (JCasC)?
A.
A plugin for running pipelines as configuration files
B.
A plugin that allows the Jenkins controller to be configured via YAML files
C.
A Groovy scripting console feature
D.
A Docker-based Jenkins deployment tool
← Back
Submit Answers ✓