Phone: Off: 9121901251
Web : www.mist.edu.in
E Mail: [email protected]
MOTHER TERESA INSTITUTE OF SCIENCE AND TECHNOLOGY
AUTONOMOUS
SANKETIKA NAGAR, KOTHURU (V), SATHUPALLY – 507303, KHAMMAM Dist.,
TELANGANA
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
Name of the Subject: DEVOPS Year & Sem: III-I
Name of the Faculty: Mr.D.Naveen A.Y: 2024-25
S. no Answer the following Question CO BT
1 What is the need for source code control in a DevOps 4 Understand
environment, and how has source code management
evolved over time?
2 Explain the concept of shared authentication in source code 4 Understand
management systems. How does it contribute to DevOps
practices?
3 Describe the differences between various Git server 5 Understand
implementations and their respective use cases. Include
hosted Git servers and their advantages.
4 What is Gerrit, and how does it facilitate collaboration in a 5 Analyze
DevOps workflow? How is it different from other Git-based
systems?
5 In the context of DevOps, explain the role of Jenkins as a 5 Remember
build server. What are its key features, and how do Jenkins
plugins enhance its functionality?
6 What is the importance of managing build dependencies in 5 Understand
Jenkins, and how can you ensure proper build dependency
resolution using Jenkins pipelines?
7 Discuss the concept of infrastructure as code (IaC) in 6 Remember
DevOps. How does it relate to build servers and automation
tools like Jenkins?
8 What are the main types of testing in DevOps, and how do 6 Analyze
automated testing tools like Selenium improve testing
efficiency?
9 Explain Test-Driven Development (TDD) and REPL- 6 Analyze
driven development. How do these practices contribute to
quality assurance in DevOps?
10 Describe the role of deployment tools such as Puppet, 6 Apply
Ansible, Chef, and Salt Stack in DevOps. How do these
tools manage and automate system deployment?
Multiple-Choice Questions (MCQs)
1. What is the primary purpose of source code control in DevOps?
o A) To manage the deployment process
o B) To track and manage changes to source code
o C) To create virtual environments
o D) To manage production servers
Answer: B) To track and manage changes to source code
2. Which of the following is an example of a hosted Git server?
o A) Jenkins
o B) GitHub
o C) Docker
o D) Ansible
Answer: B) GitHub
3. Which version control system is commonly used for managing source code in DevOps
environments?
o A) SVN
o B) Git
o C) Mercurial
o D) CVS
Answer: B) Git
4. Which of the following tools is NOT typically used for continuous integration and
build automation in DevOps?
o A) Jenkins
o B) Ansible
o C) Docker
o D) Maven
Answer: B) Ansible
5. Which of the following is an advantage of using Docker in a DevOps pipeline?
o A) It provides automated testing capabilities.
o B) It helps in version control.
o C) It enables environment consistency across development, testing, and production.
o D) It is a deployment tool.
Answer: C) It enables environment consistency across development, testing, and
production.
6. What is the primary function of Jenkins in a DevOps pipeline?
o A) Source code versioning
o B) Configuration management
o C) Build automation
o D) Virtual machine provisioning
Answer: C) Build automation
7. What does the 'pull request' model facilitate in DevOps?
o A) Continuous testing
o B) Code review and collaboration
o C) Virtual machine creation
o D) Automated deployment
Answer: B) Code review and collaboration
8. Which of the following is an example of a configuration management tool in DevOps?
o A) Git
o B) Puppet
o C) Jenkins
o D) Docker
Answer: B) Puppet
9. Which of the following is a popular tool for test automation in web applications?
o A) Selenium
o B) Maven
o C) Chef
o D) GitLab
Answer: A) Selenium
10. What is the main benefit of Test-Driven Development (TDD) in DevOps?
o A) Faster deployment
o B) Increased code quality and fewer bugs
o C) Simplified testing infrastructure
o D) Automated code review
Answer: B) Increased code quality and fewer bugs
11. Which of the following is a feature of Ansible?
o A) It requires agent installation on the target machine.
o B) It uses a push-based model for configuration management.
o C) It is a source code management tool.
o D) It is a build automation tool.
Answer: B) It uses a push-based model for configuration management.
12. Which Jenkins feature allows you to break down complex build processes into smaller,
manageable tasks?
o A) Jenkins Pipeline
o B) Jenkins Plugins
o C) Jenkins Slaves
o D) Jenkins Job Chaining
Answer: A) Jenkins Pipeline
13. Which of the following describes "Infrastructure as Code" (IaC)?
o A) Writing code to automate testing processes
o B) Managing infrastructure using configuration files and automation tools
o C) Writing manual scripts for provisioning servers
o D) Deploying applications to the cloud
Answer: B) Managing infrastructure using configuration files and automation tools
14. Which of the following tools is specifically designed for containerization in DevOps?
o A) Puppet
o B) Docker
o C) Jenkins
o D) Ansible
Answer: B) Docker
15. What is the main purpose of using build slaves in Jenkins?
o A) To trigger build jobs
o B) To manage dependencies
o C) To distribute and scale build jobs across multiple machines
o D) To review code changes
Answer: C) To distribute and scale build jobs across multiple machines
16. Which of the following is a key feature of GitLab?
o A) Continuous integration
o B) Container orchestration
o C) Configuration management
o D) Virtual machine provisioning
Answer: A) Continuous integration
17. What does 'job chaining' in Jenkins allow you to do?
o A) Trigger multiple builds simultaneously
o B) Create new pipelines for deployment
o C) Execute a series of jobs in a defined sequence
o D) Automatically test code
Answer: C) Execute a series of jobs in a defined sequence
18. Which of the following testing types is often used to validate the interaction between
various backend services?
o A) Unit Testing
o B) Integration Testing
o C) Regression Testing
o D) Load Testing
Answer: B) Integration Testing
19. Which of the following is a major advantage of using Docker in a DevOps pipeline?
o A) It simplifies database management
o B) It enables isolation of applications and dependencies
o C) It automates testing of web applications
o D) It provides code versioning and change management
Answer: B) It enables isolation of applications and dependencies
20. What is the purpose of using the 'trigger' feature in Jenkins?
o A) To manage build dependencies
o B) To schedule jobs based on specific events or conditions
o C) To store the build logs
o D) To scale the Jenkins instance
Answer: B) To schedule jobs based on specific events or conditions
Fill-in-the-Blank Questions
1. Source code management systems like Git allow developers to track and manage
________.
o Answer: changes to source code
2. A common hosted Git service is ________.
o Answer: GitHub
3. ______ is a tool used for continuous integration and build automation in DevOps
pipelines.
o Answer: Jenkins
4. A ________ is a process that facilitates the review and merging of code in Git-based
workflows.
o Answer: pull request
5. The primary purpose of ________ is to automate the management of server
configurations and infrastructure.
o Answer: Ansible
6. In DevOps, the ________ model uses configuration management tools to push
configurations to target machines.
o Answer: push-based
7. The ________ is a Jenkins feature that enables defining and managing complex build
and deployment pipelines.
o Answer: Jenkins Pipeline
8. An example of a configuration management tool that follows an agent-based model is
________.
o Answer: Puppet
9. Test-Driven Development (TDD) ensures that code is written with ________ from the
start.
o Answer: test cases
10. ______ is an open-source tool used for automating browser interactions and is widely
used in web application testing.
o Answer: Selenium
11. In DevOps, ________ refers to managing infrastructure using configuration files and
automation tools instead of manual processes.
o Answer: Infrastructure as Code (IaC)
12. In Jenkins, ________ are machines that assist in distributing and scaling build jobs
across multiple machines.
o Answer: build slaves
13. A key advantage of using ________ in DevOps is ensuring consistency between
development, testing, and production environments.
o Answer: Docker
14. A popular tool for managing infrastructure that uses declarative configuration files is
________.
o Answer: Puppet
15. The ________ phase in Jenkins build pipelines involves executing jobs in a specific
order based on dependencies.
o Answer: build order
16. In a DevOps pipeline, the ________ tool is used to automate application deployment to
various environments.
o Answer: Chef
17. The primary benefit of using ________ is to automate infrastructure provisioning and
configuration across multiple environments.
o Answer: Ansible
18. ________ is a popular tool for automating application deployment in a containerized
environment.
o Answer: Docker
19. The ________ tool is used to automate and streamline the deployment of infrastructure
using code.
o Answer: Terraform
20. Test-driven development (TDD) ensures that the development process is focused on
creating ________.
o Answer: reliable and maintainable code