Devops | Solved Past Papers & Mcqs | Pakquiz

Search MCQs, Papers, Topics

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.

Loading MCQs...
AI easy

Question 1: What is a "pull request" (PR) in Git-based workflows?

A pull request (PR) is a mechanism in GitHub/GitLab/Bitbucket for proposing changes from one branch to another. It enables code review, discussion, and automated testing before changes are merged into the main branch.

Pull Request Github Code Review Git Devops
AI hard

Question 2: 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.

Trunk Based Development Version Control Devops Git Branching
AI easy

Question 3: 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.

Staging Environment Deployment Devops Testing Environments
AI medium

Question 4: Which AWS service is used for managed Kubernetes?

AWS EKS (Elastic Kubernetes Service) is Amazon's fully managed Kubernetes service. It handles the Kubernetes control plane, making it easier to run Kubernetes workloads without managing the underlying infrastructure.

Aws Eks Kubernetes Aws Managed Kubernetes Devops
AI easy

Question 5: 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.

Grep Linux Command Line Text Search Devops
AI hard

Question 6: 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.

Git Rebase Git Merge Git Version Control Branching
AI hard

Question 7: What does "continuous delivery" differ from "continuous deployment"?

In continuous delivery, code is always in a deployable state, but deployment to production requires a manual trigger. Continuous deployment goes further by automatically deploying every passing change to production without human intervention.

Continuous Delivery Continuous Deployment Ci Cd Devops Release Management
AI easy

Question 8: 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.

Iaas Cloud Computing Devops Virtualization Infrastructure
AI easy

Question 9: 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.

Docker Build Docker Dockerfile Container Image Devops
AI medium

Question 10: 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.

Elk Stack Elasticsearch Logstash Kibana Devops

Showing 1 to 10 of 110 results