Jenkins MCQs with answers Page - 9

Here, you will find a collection of MCQ questions on Jenkins. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

S

Satya • 3.38K Points
Extraordinary

Q. Which of the following best describes Jenkins' plugin architecture?

  • (A) Modular and extensible
  • (B) Rigid and fixed
  • (C) Open only to Jenkins core team
  • (D) Only supports official plugins

A

Admin • 833.24K Points
Coach

Q. What is the main purpose of using the 'agent none' directive in a Jenkins pipeline?

  • (A) To run all stages in parallel
  • (B) To disable all agents
  • (C) To define agents for individual stages
  • (D) To skip the pipeline execution

A

Admin • 833.24K Points
Coach

Q. What does the 'echo' step do in Jenkins pipelines?

  • (A) Logs messages to the system log
  • (B) Sends notifications
  • (C) Prints messages to the console output
  • (D) Triggers new builds

A

Admin • 833.24K Points
Coach

Q. Which section in a declarative Jenkinsfile is used for defining environment variables?

  • (A) stages
  • (B) options
  • (C) environment
  • (D) steps

A

Admin • 833.24K Points
Coach

Q. Which Jenkins feature allows you to define reusable pipeline code?

  • (A) Pipeline Libraries
  • (B) Freestyle Jobs
  • (C) Build Parameters
  • (D) Triggers

A

Admin • 833.24K Points
Coach

Q. What is a downstream job in Jenkins?

  • (A) A job that is triggered by another job
  • (B) A failed job
  • (C) A backup job
  • (D) A manual job

A

Admin • 833.24K Points
Coach

Q. What type of executor does a Jenkins master have by default?

  • (A) None
  • (B) Two
  • (C) One
  • (D) Unlimited

A

Admin • 833.24K Points
Coach

Q. How do you pass parameters into a Jenkins pipeline?

  • (A) Using the parameters block in the Jenkinsfile
  • (B) By setting environment variables
  • (C) By modifying Jenkins core files
  • (D) By editing the pipeline log

A

Admin • 833.24K Points
Coach

Q. What does the 'timeout' directive in a pipeline stage do?

  • (A) Pauses a job for a fixed time
  • (B) Cancels the job if it takes longer than specified time
  • (C) Reboots Jenkins after the timeout
  • (D) Clears the workspace

A

Admin • 833.24K Points
Coach

Q. Which file contains global Jenkins configuration?

  • (A) config.xml
  • (B) jenkinsfile
  • (C) build.gradle
  • (D) settings.json