Jenkins MCQs with answers Page - 4

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. What does the 'when' directive in Jenkins pipeline do?

  • (A) Pauses the pipeline
  • (B) Triggers builds conditionally
  • (C) Defines environment variables
  • (D) Runs parallel steps

S

Satya • 2.41K Points
Master

Q. Where are Jenkins logs typically stored?

  • (A) /var/log/jenkins
  • (B) /etc/jenkins/logs
  • (C) /jenkins/logs
  • (D) /usr/share/logs

S

Satya • 2.41K Points
Master

Q. Which of the following allows Jenkins to support infrastructure as code?

  • (A) Jenkinsfile
  • (B) Config.xml
  • (C) Build.xml
  • (D) Logfile.txt

S

Satya • 2.41K Points
Master

Q. Which Jenkins plugin is used for deploying to Kubernetes?

  • (A) Docker Plugin
  • (B) Kubernetes Plugin
  • (C) KubeCtl Plugin
  • (D) Cluster Deployment Plugin

S

Satya • 2.41K Points
Master

Q. What kind of tool is Jenkins?

  • (A) Static code analyzer
  • (B) Monitoring tool
  • (C) Automation server for CI/CD
  • (D) Database server

S

Satya • 2.41K Points
Master

Q. Which protocol does Jenkins primarily use to communicate with agents?

  • (A) FTP
  • (B) SSH
  • (C) HTTP
  • (D) JNLP

S

Satya • 2.41K Points
Master

Q. What is the purpose of the 'checkout scm' command in a Jenkinsfile?

  • (A) Checks for updates
  • (B) Clones the repository configured in the job
  • (C) Deletes workspace
  • (D) Initializes Jenkins environment

S

Satya • 2.41K Points
Master

Q. Which stage is typically the first in a Jenkins pipeline?

  • (A) Test
  • (B) Deploy
  • (C) Build
  • (D) Archive

S

Satya • 2.41K Points
Master

Q. How can Jenkins be extended with additional features?

  • (A) Add-ons
  • (B) Extensions
  • (C) Modules
  • (D) Plugins

S

Satya • 2.41K Points
Master

Q. What does CI mean in Jenkins context?

  • (A) Customer Interface
  • (B) Continuous Integration
  • (C) Critical Infrastructure
  • (D) Code Interpreter