Q.1 Which of the following best describes DevOps in cloud environments?
A methodology for software development
A combination of development and operations practices
A type of cloud storage service
A programming language
Explanation - DevOps is the combination of development (Dev) and IT operations (Ops) practices aimed at shortening the software development lifecycle and improving collaboration.
Correct answer is: A combination of development and operations practices
Q.2 What is the primary goal of DevOps?
To eliminate the need for developers
To improve collaboration between teams
To build hardware faster
To replace cloud infrastructure
Explanation - The core goal of DevOps is to enhance collaboration between development and operations teams, improving delivery speed and reliability.
Correct answer is: To improve collaboration between teams
Q.3 Which cloud service model is most commonly associated with DevOps practices?
IaaS
PaaS
SaaS
FaaS
Explanation - Platform as a Service (PaaS) offers tools and environments that support continuous development and deployment, which aligns with DevOps.
Correct answer is: PaaS
Q.4 What does CI/CD stand for in DevOps?
Continuous Information/Continuous Data
Continuous Integration/Continuous Deployment
Cloud Infrastructure/Cloud Development
Central Integration/Continuous Debugging
Explanation - CI/CD refers to automating the integration of code and its deployment, a key practice in DevOps pipelines.
Correct answer is: Continuous Integration/Continuous Deployment
Q.5 Which tool is commonly used for continuous integration in DevOps?
GitHub
Jenkins
Docker
Kubernetes
Explanation - Jenkins is a popular open-source automation server that supports continuous integration and delivery in DevOps pipelines.
Correct answer is: Jenkins
Q.6 Which of these is a container orchestration platform widely used in DevOps?
Terraform
Docker
Kubernetes
Ansible
Explanation - Kubernetes is the leading container orchestration system that automates deployment, scaling, and management of containerized apps.
Correct answer is: Kubernetes
Q.7 What role does automation play in DevOps?
It slows down development
It eliminates cloud usage
It helps speed up repetitive tasks
It replaces software testing entirely
Explanation - Automation in DevOps reduces human intervention, speeding up tasks such as deployment, monitoring, and testing.
Correct answer is: It helps speed up repetitive tasks
Q.8 Which version control system is most commonly associated with DevOps?
Subversion (SVN)
Git
Mercurial
CVS
Explanation - Git is the most widely used version control system in DevOps, supporting collaboration and CI/CD pipelines.
Correct answer is: Git
Q.9 Infrastructure as Code (IaC) in DevOps refers to:
Manual setup of infrastructure
Using scripts to manage infrastructure
Hardware configuration by engineers
Data storage optimization
Explanation - IaC allows teams to define and manage infrastructure using code, ensuring consistency and automation.
Correct answer is: Using scripts to manage infrastructure
Q.10 Which tool is commonly used for Infrastructure as Code in cloud DevOps?
Jenkins
Terraform
Kubernetes
GitHub
Explanation - Terraform is a widely used tool for Infrastructure as Code, allowing cloud resources to be provisioned declaratively.
Correct answer is: Terraform
Q.11 In a DevOps pipeline, which phase ensures code quality before deployment?
Continuous Testing
Continuous Deployment
Continuous Integration
Continuous Monitoring
Explanation - Continuous Testing validates code changes through automated tests, ensuring quality before deployment.
Correct answer is: Continuous Testing
Q.12 Which cloud provider offers DevOps tools like CodePipeline and CodeBuild?
Microsoft Azure
Google Cloud
AWS
IBM Cloud
Explanation - AWS offers CodePipeline, CodeBuild, and other tools tailored for DevOps pipelines in the cloud.
Correct answer is: AWS
Q.13 Which DevOps principle focuses on monitoring applications after deployment?
Continuous Integration
Continuous Monitoring
Continuous Planning
Continuous Deployment
Explanation - Continuous Monitoring ensures system health, performance, and reliability after deployment.
Correct answer is: Continuous Monitoring
Q.14 Which DevOps tool is primarily used for containerization?
Jenkins
Docker
Kubernetes
Puppet
Explanation - Docker allows applications to be packaged into containers, making them portable and consistent across environments.
Correct answer is: Docker
Q.15 What is the benefit of microservices in DevOps?
Larger applications with fewer modules
Easier scalability and deployment
Centralized monolithic systems
Reduced need for cloud
Explanation - Microservices allow applications to be broken into smaller, manageable services, improving scalability and deployment.
Correct answer is: Easier scalability and deployment
Q.16 Which of these is an example of a configuration management tool in DevOps?
Ansible
Jenkins
Docker
Git
Explanation - Ansible is a popular configuration management tool used for automating infrastructure provisioning and updates.
Correct answer is: Ansible
Q.17 Blue-Green deployment strategy in DevOps ensures:
Zero-downtime releases
Rollback prevention
Continuous Monitoring
Faster development
Explanation - Blue-Green deployments involve maintaining two environments and switching traffic to ensure zero downtime.
Correct answer is: Zero-downtime releases
Q.18 What is the main benefit of cloud-native DevOps?
Reduced automation
Scalability and flexibility
Manual deployments
On-premise only
Explanation - Cloud-native DevOps leverages cloud features like scalability, flexibility, and automation for faster delivery.
Correct answer is: Scalability and flexibility
Q.19 Which of these is an artifact repository used in DevOps pipelines?
Nexus
Terraform
Ansible
Kubernetes
Explanation - Nexus is a popular artifact repository used to store build artifacts in DevOps pipelines.
Correct answer is: Nexus
Q.20 Which DevOps practice ensures frequent, small code changes are integrated into the main branch?
Continuous Monitoring
Continuous Deployment
Continuous Integration
Continuous Testing
Explanation - Continuous Integration merges small, frequent code changes into the main branch, reducing integration issues.
Correct answer is: Continuous Integration
Q.21 Which scripting language is most commonly used for DevOps automation?
Python
C
Java
PHP
Explanation - Python is widely used in DevOps for automation scripts, infrastructure provisioning, and CI/CD pipelines.
Correct answer is: Python
Q.22 Which principle of DevOps promotes shared ownership and accountability?
Automation
Collaboration
Integration
Monitoring
Explanation - Collaboration in DevOps ensures that both development and operations teams share responsibility for software delivery.
Correct answer is: Collaboration
Q.23 Canary deployment in DevOps means:
Deploying to all users at once
Testing features with a small group first
Rolling back without testing
Skipping testing entirely
Explanation - Canary deployment releases features to a small set of users first to validate before full rollout.
Correct answer is: Testing features with a small group first
Q.24 Which monitoring tool is widely used in DevOps for metrics visualization?
Prometheus + Grafana
Terraform
Docker
Jenkins
Explanation - Prometheus collects monitoring data, and Grafana visualizes it, commonly used in DevOps for observability.
Correct answer is: Prometheus + Grafana
Q.25 What is the advantage of cloud elasticity in DevOps?
Fixed resource allocation
Scaling resources up and down automatically
Static workloads
Eliminating automation needs
Explanation - Cloud elasticity supports DevOps by automatically adjusting resources based on demand, improving efficiency.
Correct answer is: Scaling resources up and down automatically
