Devops | Solved Past Papers & Mcqs | Pakquiz
Master DevOps concepts with practice MCQs covering every major tool, platform, and principle in the DevOps ecosystem. Topics include CI/CD pipeline design, containerisation with Docker, container orchestration with Kubernetes, configuration management using Ansible and Puppet, infrastructure as code with Terraform, version control with Git, Linux system administration, monitoring with Prometheus and Grafana, cloud platforms (AWS, Azure, GCP), and DevSecOps security practices.
Each question includes a detailed explanation of the correct answer, making this collection ideal for DevOps Engineer interview preparation, technical job tests, university semester exams, and professional certification practice for AWS DevOps, Microsoft Azure DevOps, and similar credentials.
Search MCQs, Papers, Topics
Question 1: What is the ELK Stack used for in DevOps?
The ELK Stack — Elasticsearch, Logstash, and Kibana — is a popular open-source stack for centralized log management. Logstash collects logs, Elasticsearch indexes them, and Kibana provides visualization dashboards.
Question 2: What is the difference between `git rebase` and `git merge`?
git merge combines branches while preserving all commit history, creating a merge commit. git rebase rewrites commits by replaying them on top of another branch, creating a linear history without merge commits.
Question 3: Which DevOps principle focuses on releasing small, frequent changes rather than large infrequent ones?
A core DevOps principle is releasing small, incremental changes frequently rather than large infrequent releases. This reduces risk, makes issues easier to diagnose, and shortens the feedback loop between development and production.
Question 4: What is the purpose of a "staging environment" in software deployment?
A staging environment is a near-identical replica of the production environment used for final testing before a release. It allows teams to validate deployments in a realistic context without affecting live users.
Question 5: What does `docker build` command do?
docker build reads the instructions in a Dockerfile and creates a Docker image layer by layer. The resulting image can then be run as a container or pushed to a registry.
Question 6: Which cloud service model provides virtualized computing infrastructure over the internet?
IaaS (Infrastructure as a Service) provides virtualized computing resources like VMs, storage, and networking over the internet. Examples include AWS EC2, Azure VMs, and Google Compute Engine.
Question 7: What is the purpose of a "health check" in Docker or Kubernetes?
Health checks periodically test whether a container or service is working correctly. If a health check fails, Docker or Kubernetes can automatically restart or replace the unhealthy container to maintain availability.
Question 8: In software development, what is a "hotfix"?
A hotfix is an emergency patch applied directly to a production environment to fix a critical bug or security vulnerability without waiting for the next scheduled release cycle.
Question 9: What is "trunk-based development" in version control?
Trunk-based development is a source control practice where developers integrate small, frequent commits into a single main branch (trunk). It promotes CI, reduces merge conflicts, and is a prerequisite for effective continuous integration.
Question 10: What is the function of the `grep` command in Linux?
grep searches for specified text patterns within files or output streams. It is widely used in DevOps for filtering logs, searching configuration files, and processing command output in shell scripts.
Showing 1 to 10 of 110 results