0% found this document useful (0 votes)
4 views10 pages

Jenkins CI/CD Tools and Concepts Guide

Dev

Uploaded by

ganeshdarling766
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views10 pages

Jenkins CI/CD Tools and Concepts Guide

Dev

Uploaded by

ganeshdarling766
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. Which of the following tools is most commonly used for Continuous Integration (CI)?

A) Docker
B) Jenkins
C) GitHub
D) Ansible
✅ Answer: B) Jenkins

2. In Jenkins, build jobs can be automatically triggered by —


A) Code compilation
B) Manual approval only
C) Source code changes or time schedules
D) None of the above
✅ Answer: C) Source code changes or time schedules

3. What is the main purpose of a build slave (agent) in Jenkins?


A) To store build history
B) To execute builds on distributed machines
C) To configure Jenkins plugins
D) To write Groovy scripts
✅ Answer: B) To execute builds on distributed machines

4. Which of the following is not a build phase in a typical CI/CD pipeline?


A) Compilation
B) Testing
C) Deployment
D) Debugging manually by developers
✅ Answer: D) Debugging manually by developers

5. “Infrastructure as Code (IaC)” refers to —


A) Writing application code in infrastructure languages
B) Managing infrastructure through automated code scripts
C) Manual server configuration
D) Cloud storage setup only
✅ Answer: B) Managing infrastructure through automated code scripts

6. Jenkins uses __________ to extend its functionality.


A) Modules
B) Libraries
C) Plugins
D) Frameworks
✅ Answer: C) Plugins

7. The main directory where Jenkins stores all job data and configuration is called
__________.
A) JENKINS_HOME
B) BUILD_HOME
C) ROOT_DIR
D) CONFIG_PATH
✅ Answer: A) JENKINS_HOME

8. The process of automatically compiling, testing, and integrating code changes is known as
__________.
A) Code Review
B) Continuous Integration
C) Manual Testing
D) Software Modeling
✅ Answer: B) Continuous Integration

9. Tools like Ansible, Puppet, and Terraform are used to implement __________.
A) Data Analytics
B) Infrastructure as Code
C) Continuous Monitoring
D) Unit Testing
✅ Answer: B) Infrastructure as Code

10. In Jenkins, a sequence of connected build jobs is called a __________.


A) Workflow
B) Build Chain
C) Build Pipeline
D) Script Block
✅ Answer: C) Build Pipeline

11. Which tool is used to analyze code quality in a Jenkins pipeline?


A) SonarQube
B) Terraform
C) Docker
D) Ansible
✅ Answer: A) SonarQube
12. What is the main role of the Jenkins master (host server)?
A) Execute builds only
B) Schedule jobs and manage build slaves
C) Store source code
D) Run test scripts manually
✅ Answer: B) Schedule jobs and manage build slaves

13. Which file defines pipeline stages in Jenkins?


A) Jenkinsfile
B) [Link]
C) [Link]
D) [Link]
✅ Answer: A) Jenkinsfile

14. Jenkins is written in —


A) C
B) Java
C) Python
D) Go
✅ Answer: B) Java

15. Which plugin helps Jenkins connect with Git repositories?


A) Git Plugin
B) Docker Plugin
C) Maven Plugin
D) Pipeline Plugin
✅ Answer: A) Git Plugin

16. Which phase comes first in a build process?


A) Testing
B) Compilation
C) Packaging
D) Deployment
✅ Answer: B) Compilation

17. Which of the following is an alternative to Jenkins?


A) Chrome
B) CircleCI
C) Eclipse
D) MySQL
✅ Answer: B) CircleCI

18. Which of the following best describes Jenkins?


A) A programming language
B) A continuous integration and build automation server
C) A database management system
D) A version control tool
✅ Answer: B) A continuous integration and build automation server

19. Which Jenkins feature allows chaining multiple jobs together into a workflow?
A) SCM polling
B) Pipelines
C) Build triggers
D) File system layout
✅ Answer: B) Pipelines

20. Which tool is commonly used with Jenkins to manage build dependencies in Java
projects?
A) SonarQube
B) Maven
C) Docker
D) GitHub
✅ Answer: B) Maven

21. Infrastructure as Code in Jenkins refers to —


A) Writing code in Jenkins console
B) Defining servers and environments using scripts/tools like Ansible or Terraform
C) Storing Jenkins logs in code format
D) Using Jenkins without plugins
✅ Answer: B) Defining servers and environments using scripts/tools like Ansible or
Terraform

22. Jenkins can trigger builds automatically using ________ from GitHub or GitLab.
A) Webhooks
B) Pipelines
C) Agents
D) Quality Reports
✅ Answer: A) Webhooks

23. Selenium is mainly used for ______ testing.


A) Security
B) Web automation
C) Database
D) Manual
✅ Answer: B) Web automation

24. Which testing ensures individual units of code work correctly?


A) Integration
B) Unit
C) System
D) Regression
✅ Answer: B) Unit

25. Writing tests before writing code is called —


A) TDD
B) BDD
C) FDD
D) RDD
✅ Answer: A) TDD

26. REPL stands for —


A) Read Evaluate Print Loop
B) Run Execute Program Logic
C) Repeat Execute Print Loop
D) Run Edit Print Log
✅ Answer: A) Read Evaluate Print Loop

27. Which of the following is a JavaScript testing framework?


A) JUnit
B) Jest
C) Pytest
D) NUnit
✅ Answer: B) Jest
28. Which tool is agentless and uses YAML playbooks?
A) Chef
B) Puppet
C) Ansible
D) SaltStack
✅ Answer: C) Ansible

29. Puppet master communicates with —


A) Agents
B) Containers
C) Nodes
D) Clusters
✅ Answer: A) Agents

30. Docker is used for —


A) Virtualization
B) Configuration
C) Containerization
D) Encryption
✅ Answer: C) Containerization

31. Which testing verifies interaction between modules?


A) Unit
B) Integration
C) System
D) Acceptance
✅ Answer: B) Integration

32. Chef uses configuration files called —


A) Playbooks
B) Recipes
C) Manifests
D) Modules
✅ Answer: B) Recipes

33. Selenium WebDriver is used for automating ________ applications.


A) desktop
B) mobile
C) web
D) API
✅ Answer: C) web

34. Ansible playbooks are written in ________ format.


A) JSON
B) XML
C) YAML
D) INI
✅ Answer: C) YAML

35. Puppet follows a ________ and ________ architecture.


A) client, server
B) master, agent
C) node, manager
D) source, target
✅ Answer: B) master, agent

36. Which Jenkins plugin is used to build and deploy Docker images?
A) Docker Pipeline Plugin
B) Git Plugin
C) Maven Plugin
D) SonarQube Plugin
✅ Answer: A) Docker Pipeline Plugin

37. Which command is used to start a Docker container?


A) docker build
B) docker start
C) docker run
D) docker exec
✅ Answer: C) docker run

38. Continuous Delivery ensures that —


A) Code is manually merged
B) Every change is automatically deployed to production
C) Code changes are always ready for deployment
D) Builds are only tested locally
✅ Answer: C) Code changes are always ready for deployment
39. Which of the following testing types focuses on checking the flow between integrated
components?
A) Unit Testing
B) Integration Testing
C) Smoke Testing
D) Acceptance Testing
✅ Answer: B) Integration Testing

40. Jenkins pipelines can be written using —


A) Groovy
B) Python
C) Java
D) Bash
✅ Answer: A) Groovy

41. Which of the following is a configuration management tool?


A) Jenkins
B) Docker
C) Ansible
D) JMeter
✅ Answer: C) Ansible

42. What does the command docker ps do?


A) Lists all Docker images
B) Lists running containers
C) Stops all containers
D) Deletes all containers
✅ Answer: B) Lists running containers

43. Which of the following tools is primarily used for container orchestration?
A) Jenkins
B) Kubernetes
C) Terraform
D) GitHub Actions
✅ Answer: B) Kubernetes

44. In Selenium, which method is used to navigate to a web page?


A) [Link]()
B) [Link]()
C) [Link]()
D) [Link]()
✅ Answer: C) [Link]()

45. Which Jenkins feature enables defining complex workflows as code?


A) Jenkinsfile
B) Build Trigger
C) Post-build Action
D) Console Output
✅ Answer: A) Jenkinsfile

46. What is the purpose of the [Link] file?


A) To define multi-container Docker applications
B) To store container logs
C) To build Docker images
D) To configure Docker Hub credentials
✅ Answer: A) To define multi-container Docker applications

47. Which of the following is not a benefit of Continuous Integration?


A) Early detection of bugs
B) Automated testing
C) Slower deployment cycles
D) Frequent code integration
✅ Answer: C) Slower deployment cycles

48. In Ansible, a collection of related tasks is known as a —


A) Role
B) Module
C) Inventory
D) Host
✅ Answer: A) Role

49. Which DevOps tool helps automate provisioning and infrastructure management?
A) Terraform
B) JMeter
C) Postman
D) Selenium
✅ Answer: A) Terraform
50. What is the default port for Jenkins web interface?
A) 80
B) 8080
C) 443
D) 22
✅ Answer: B) 8080

You might also like