Jenkins MCQs with answers Page - 7

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 • 2.41K Points
Master

Q. How does Jenkins support role-based access control?

  • (A) Through Jenkinsfile
  • (B) By configuring environment variables
  • (C) With Role Strategy Plugin
  • (D) By enabling developer mode

S

Satya • 2.41K Points
Master

Q. Which of the following best describes Jenkins freestyle project?

  • (A) A visual pipeline editor
  • (B) A basic job type allowing custom build steps
  • (C) A job for plugin management
  • (D) A job only used for testing

S

Satya • 2.41K Points
Master

Q. What is the key benefit of Jenkins pipelines over freestyle jobs?

  • (A) Better UI
  • (B) No need for agents
  • (C) Code-defined, version-controllable automation
  • (D) Faster installation

S

Satya • 2.41K Points
Master

Q. Which of the following is TRUE about Jenkins master node?

  • (A) It is used only for UI access
  • (B) It manages job scheduling and dispatches builds to agents
  • (C) It builds all jobs itself
  • (D) It cannot be secured

S

Satya • 2.41K Points
Master

Q. What is 'quiet down' in Jenkins?

  • (A) Disables all jobs permanently
  • (B) Prevents new builds from starting
  • (C) Shuts down Jenkins
  • (D) Restarts Jenkins immediately

S

Satya • 2.41K Points
Master

Q. Which environment variable in Jenkins contains the workspace path?

  • (A) JENKINS_PATH
  • (B) BUILD_PATH
  • (C) WORKSPACE
  • (D) JOB_HOME

S

Satya • 2.41K Points
Master

Q. What is the purpose of the 'catchError' block in Jenkins pipelines?

  • (A) To catch syntax errors
  • (B) To retry failed builds
  • (C) To handle build errors gracefully without failing the pipeline
  • (D) To log debug information

S

Satya • 2.41K Points
Master

Q. What does the `params` object represent in a Jenkinsfile?

  • (A) Current build logs
  • (B) Pipeline agent settings
  • (C) User-supplied parameters
  • (D) Credentials only

S

Satya • 2.41K Points
Master

Q. How can Jenkins be updated to the latest version?

  • (A) Through the plugin manager
  • (B) Using CLI only
  • (C) From the dashboard under 'Manage Jenkins'
  • (D) It updates automatically

S

Satya • 2.41K Points
Master

Q. What is the default build retention policy in Jenkins?

  • (A) Keep all builds
  • (B) Delete builds older than 30 days
  • (C) Keep last 10 builds
  • (D) User defined