DevOps Engineer Certification Exam — Questions and Answers
Question 1: Which practice ensures that every code change passes automated tests before being merged?
- Continuous Integration (Correct answer)
- Continuous Deployment
- Continuous Monitoring
- Continuous Feedback
Correct answer: Continuous Integration
Continuous Integration requires every code change to trigger an automated build and test run, failing the merge if tests do not pass.
Question 2: Which metric measures how frequently code is deployed to production in a CI/CD context?
- Mean time to recovery (MTTR)
- Lead time for changes
- Change failure rate
- Deployment frequency (Correct answer)
Correct answer: Deployment frequency
Deployment frequency, one of the four DORA metrics, measures how often an organization successfully releases to production.
Question 3: What is a ConfigMap in Kubernetes?
- An object for storing non-sensitive configuration data as key-value pairs (Correct answer)
- A storage volume definition
- An encrypted secrets store
- A network configuration object
Correct answer: An object for storing non-sensitive configuration data as key-value pairs
ConfigMaps decouple configuration from container images, letting you inject environment variables or config files into Pods at runtime.
Question 4: What is an 'error budget' in Site Reliability Engineering (SRE)?
- The permissible amount of unreliability remaining before an SLO is violated (Correct answer)
- The cost allocated for fixing production incidents
- The time budget for on-call engineers to respond to incidents
- The maximum number of errors allowed per minute in production
Correct answer: The permissible amount of unreliability remaining before an SLO is violated
An error budget is 100% minus the SLO — if your SLO is 99.9% availability, your error budget is 0.1% downtime per period.
Question 5: What is an SLA (Service Level Agreement)?
- A deployment frequency goal
- A monitoring alert threshold
- An internal reliability target set by engineering
- A formal contract with customers defining minimum service quality and remedies for failures (Correct answer)
Correct answer: A formal contract with customers defining minimum service quality and remedies for failures
An SLA is a legally binding commitment to customers specifying uptime, performance, and support response standards with financial penalties for breaches.
Question 6: What does CI stand for in the context of DevOps?
- Continuous Infrastructure
- Continuous Integration (Correct answer)
- Continuous Implementation
- Continuous Inspection
Correct answer: Continuous Integration
CI stands for Continuous Integration, the practice of frequently merging code changes into a shared repository with automated builds and tests.
Question 7: What is Ansible primarily used for in a DevOps workflow?
- Provisioning cloud infrastructure through declarative state files
- Configuration management and application deployment using agentless SSH (Correct answer)
- Monitoring infrastructure health and sending alerts
- Orchestrating container workloads across a Kubernetes cluster
Correct answer: Configuration management and application deployment using agentless SSH
Ansible automates configuration management, application deployment, and orchestration using SSH without requiring agents on managed nodes.
Question 8: What is Grafana used for?
- Collecting application logs from distributed services
- Tracing distributed requests across microservices
- Visualizing metrics and logs from data sources like Prometheus in dashboards (Correct answer)
- Running load tests against production systems
Correct answer: Visualizing metrics and logs from data sources like Prometheus in dashboards
Grafana is an open-source visualization and analytics platform that connects to data sources like Prometheus, Elasticsearch, and CloudWatch to create dashboards.
Question 9: What does the `docker exec` command do?
- Starts a new container from an image
- Builds and immediately starts a container
- Runs a command inside an already running container (Correct answer)
- Copies files between the host and a container
Correct answer: Runs a command inside an already running container
`docker exec` executes an additional command inside a running container without stopping it, commonly used to open a shell for debugging.
Question 10: What is a Docker image?
- A virtual machine snapshot for cloud deployments
- A read-only template used to create Docker containers (Correct answer)
- A configuration file that defines container networking
- A running instance of a containerized application
Correct answer: A read-only template used to create Docker containers
A Docker image is a read-only, layered template built from a Dockerfile that serves as the blueprint for creating containers.
Question 11: What is the purpose of `terraform plan`?
- Validates the syntax of Terraform configuration files
- Shows what changes Terraform will make without actually applying them (Correct answer)
- Locks the state file to prevent concurrent modifications
- Initializes the Terraform backend and providers
Correct answer: Shows what changes Terraform will make without actually applying them
`terraform plan` creates an execution plan showing which resources will be created, modified, or destroyed based on current state vs. desired configuration.
Question 12: What is the purpose of Kubernetes resource limits and requests?
- They only apply to memory, not CPU
- Requests are the maximum CPU a Pod can use; limits are the minimum
- Both are required for Pod scheduling only
- Requests reserve compute resources for a Pod; limits cap the maximum it can consume (Correct answer)
Correct answer: Requests reserve compute resources for a Pod; limits cap the maximum it can consume
Resource requests guide the scheduler in placing Pods on nodes with enough capacity, while limits prevent a Pod from consuming more than its allotted resources.
Question 13: What is Infrastructure as Code (IaC)?
- Managing and provisioning infrastructure through machine-readable configuration files (Correct answer)
- Using scripts to manually configure servers after provisioning
- Writing application code that runs on cloud infrastructure
- Documenting infrastructure architecture in code comments
Correct answer: Managing and provisioning infrastructure through machine-readable configuration files
IaC manages infrastructure (networks, VMs, load balancers) through declarative or imperative configuration files that can be version-controlled and automated.
Question 14: Which of the following is the primary goal of Continuous Delivery (CD)?
- Run unit tests on every commit
- Ensure software can be released to production at any time (Correct answer)
- Automatically deploy every commit to production
- Monitor production environments continuously
Correct answer: Ensure software can be released to production at any time
Continuous Delivery ensures the software is always in a deployable state so it can be released to production at any time with a manual approval step.
Question 15: What is a 'rolling deployment'?
- Routing a percentage of traffic to the new version
- Gradually replacing old instances with new ones in batches (Correct answer)
- Deploying and immediately rolling back if errors are detected
- Deploying to two environments simultaneously and comparing results
Correct answer: Gradually replacing old instances with new ones in batches
A rolling deployment incrementally replaces running instances of an application with the new version in batches to minimize downtime.
Question 16: What is AWS CloudFormation?
- A tool for monitoring AWS resource usage and costs
- An AWS service for automating CI/CD pipelines
- An AWS-native IaC service that provisions resources using JSON or YAML templates (Correct answer)
- A cloud storage service for Terraform state files
Correct answer: An AWS-native IaC service that provisions resources using JSON or YAML templates
AWS CloudFormation allows you to model and provision AWS infrastructure resources using declarative JSON or YAML templates called stacks.
Question 17: Which IaC tool uses a declarative language called HCL (HashiCorp Configuration Language)?
- Ansible
- Terraform (Correct answer)
- Puppet
- Chef
Correct answer: Terraform
Terraform uses HCL to describe the desired state of infrastructure; it then creates, updates, or destroys resources to match that declared state.
Question 18: What does a Kubernetes Ingress resource do?
- Manages container image pulls
- Routes external HTTP/HTTPS traffic to internal Services based on rules (Correct answer)
- Controls Pod-to-Pod network policies
- Provides persistent storage to Pods
Correct answer: Routes external HTTP/HTTPS traffic to internal Services based on rules
An Ingress exposes HTTP and HTTPS routes from outside the cluster, routing traffic to Services based on hostname and path rules.
Question 19: What is backpressure in distributed systems?
- Network latency between microservices
- A Kubernetes resource quota
- A mechanism where a downstream service signals upstream services to slow down when it's overwhelmed (Correct answer)
- A database replication lag
Correct answer: A mechanism where a downstream service signals upstream services to slow down when it's overwhelmed
Backpressure prevents cascading overload by letting overwhelmed services reject or slow requests, signaling upstream callers to reduce their send rate.
Question 20: What is a Terraform 'module'?
- A reusable, self-contained package of Terraform configuration that encapsulates resources (Correct answer)
- A plugin that adds provider support to Terraform
- A policy that restricts what Terraform can create
- A remote backend for storing Terraform state
Correct answer: A reusable, self-contained package of Terraform configuration that encapsulates resources
Terraform modules bundle related resources into reusable, parameterized packages that can be shared across projects and teams.
Question 21: What is the role of the Kubernetes control plane?
- Managing the overall cluster state, scheduling, and API requests (Correct answer)
- Monitoring container health and restarting failed Pods
- Running application workloads in containers
- Providing persistent storage for stateful applications
Correct answer: Managing the overall cluster state, scheduling, and API requests
The control plane components (API server, etcd, scheduler, controller manager) make global decisions about the cluster and respond to cluster events.
Question 22: What is AWS Lambda?
- A CI/CD pipeline service
- A serverless compute service that runs code in response to events without managing servers (Correct answer)
- A managed container orchestration service
- A virtual machine scale set
Correct answer: A serverless compute service that runs code in response to events without managing servers
Lambda executes function code triggered by events (API calls, S3 uploads, SQS messages) and automatically scales from zero to thousands of concurrent executions.
Question 23: What is the role of a 'build server' in a CI pipeline?
- To compile source code, run tests, and produce deployable artifacts automatically (Correct answer)
- To host the production application after deployment
- To monitor pipeline execution and alert on failures
- To store source code and manage version control
Correct answer: To compile source code, run tests, and produce deployable artifacts automatically
A build server automates the process of compiling code, running tests, and packaging artifacts whenever changes are pushed to the repository.
Question 24: What is 'policy as code' in a DevOps context?
- Using IaC templates to define IAM policies in cloud environments
- Encoding compliance and security rules as machine-readable code enforced automatically in pipelines (Correct answer)
- Documenting organizational security policies in code comments
- Writing application authorization logic in configuration files
Correct answer: Encoding compliance and security rules as machine-readable code enforced automatically in pipelines
Policy as code tools like OPA (Open Policy Agent) and Sentinel encode governance, security, and compliance rules as code that can be tested and enforced in CI/CD pipelines.
Question 25: What is 'toil' in SRE terminology?
- On-call scheduling
- Manual, repetitive operational work that is automatable, tactical, and scales with service growth (Correct answer)
- Planned maintenance windows
- Post-incident report writing
Correct answer: Manual, repetitive operational work that is automatable, tactical, and scales with service growth
SRE defines toil as work that is manual, repetitive, automatable, tactical, and grows proportionally with service load — teams aim to keep toil below 50% of work time.
Question 26: What is a cloud CDN (Content Delivery Network) used for?
- Managing DNS records
- Storing database backups
- Caching static assets at edge locations close to users to reduce latency (Correct answer)
- Routing internal microservice traffic
Correct answer: Caching static assets at edge locations close to users to reduce latency
A CDN caches static content (images, scripts, HTML) at globally distributed edge nodes, serving requests from the nearest location to minimize latency.
Question 27: What is a load balancer health check?
- A Kubernetes liveness probe
- A periodic test sent to backend instances to determine if they are healthy and should receive traffic (Correct answer)
- A CPU utilization alert
- A network bandwidth monitoring tool
Correct answer: A periodic test sent to backend instances to determine if they are healthy and should receive traffic
Load balancers use health checks (HTTP, TCP, or custom probes) to automatically remove unhealthy instances from the rotation and restore them once they pass checks again.
Question 28: What is a 'canary deployment'?
- Rolling out a new version to a small subset of users before full deployment (Correct answer)
- Deploying to a parallel environment and switching traffic instantly
- Running automated tests in a production-like environment
- Deploying to production only after manual sign-off
Correct answer: Rolling out a new version to a small subset of users before full deployment
A canary deployment gradually routes a small percentage of traffic to the new version to detect issues before rolling out to all users.
Question 29: In a Jenkins pipeline, what file defines the pipeline-as-code configuration?
- ci-config.json
- Jenkinsfile (Correct answer)
- pipeline.yaml
- build.xml
Correct answer: Jenkinsfile
A Jenkinsfile is a text file stored in the repository that defines the Jenkins pipeline using either Declarative or Scripted pipeline syntax.
Question 30: Which Git branching strategy is most commonly associated with CI/CD pipelines?
- Forking workflow
- Git Flow
- Feature branching
- Trunk-based development (Correct answer)
Correct answer: Trunk-based development
Trunk-based development, where all developers commit to a single main branch frequently, best supports CI/CD by reducing merge conflicts and enabling rapid integration.
Question 31: What is 'observability-driven development'?
- Using observability tools to write code
- Building systems with instrumentation and telemetry from the start so they are intrinsically observable (Correct answer)
- Writing unit tests for monitoring code
- Replacing code reviews with log analysis
Correct answer: Building systems with instrumentation and telemetry from the start so they are intrinsically observable
Observability-driven development treats telemetry as a first-class concern, ensuring every feature ships with the metrics, logs, and traces needed to understand its behavior in production.
Question 32: What is a cloud region in AWS/GCP/Azure?
- A virtual private network segment
- A cloud pricing tier
- A geographically distinct data center cluster where cloud services are hosted (Correct answer)
- A load balancing zone
Correct answer: A geographically distinct data center cluster where cloud services are hosted
A cloud region is a physical location containing multiple isolated availability zones, allowing customers to deploy resources close to users and comply with data residency requirements.
Question 33: What is a 'blue-green deployment' strategy?
- Running two identical production environments and switching traffic between them (Correct answer)
- Using blue containers for staging and green containers for production
- Deploying canary builds to test new features
- Deploying to a subset of servers first then rolling out gradually
Correct answer: Running two identical production environments and switching traffic between them
Blue-green deployment maintains two identical production environments where one is live (blue) and the other receives the new deployment (green), then traffic is switched.
Question 34: What does the `terraform destroy` command do?
- Reverts infrastructure to the previous Terraform state
- Removes the Terraform state file from the backend
- Destroys all infrastructure resources managed by the current Terraform state (Correct answer)
- Deletes all .tf configuration files in the current directory
Correct answer: Destroys all infrastructure resources managed by the current Terraform state
`terraform destroy` plans and executes the removal of all resources tracked in the state file, effectively tearing down the managed infrastructure.
Question 35: What is 'configuration drift' in infrastructure management?
- When configuration files conflict across different environments
- When IaC templates gradually become outdated as cloud APIs change
- When the actual state of infrastructure diverges from the declared desired state (Correct answer)
- When infrastructure costs increase unexpectedly over time
Correct answer: When the actual state of infrastructure diverges from the declared desired state
Configuration drift occurs when manual changes, failed applies, or external modifications cause real infrastructure to diverge from what IaC defines.
Question 36: What does P99 latency mean in monitoring?
- The latency measured at the 99% completion point of a deployment
- The average latency across 99% of all production servers
- The maximum acceptable latency defined in the SLA
- The latency value below which 99% of requests fall; the 99th percentile (Correct answer)
Correct answer: The latency value below which 99% of requests fall; the 99th percentile
P99 latency is the 99th percentile — 99% of requests are faster than this value, representing the tail latency experienced by your slowest 1% of users.
Question 37: What is Terraform 'state'?
- The current running status of provisioned VMs
- The desired configuration declared in .tf files
- A file that tracks the current real-world resources managed by Terraform (Correct answer)
- A log of all previous Terraform operations
Correct answer: A file that tracks the current real-world resources managed by Terraform
Terraform state (terraform.tfstate) maps the configuration to real infrastructure resources so Terraform can calculate changes and detect drift.
Question 38: What is request retrying with exponential backoff?
- Retrying failed requests with increasing delays (1s, 2s, 4s) plus jitter to avoid thundering herd (Correct answer)
- Retrying immediately and continuously until success
- A database transaction retry pattern
- A deployment retry mechanism in CI/CD
Correct answer: Retrying failed requests with increasing delays (1s, 2s, 4s) plus jitter to avoid thundering herd
Exponential backoff with jitter spaces out retries to reduce load on a recovering service, preventing all clients from retrying simultaneously and amplifying the problem.
Question 39: What does 'observability' mean beyond traditional monitoring?
- The ability to understand a system's internal state from its external outputs without prior knowledge of failures (Correct answer)
- Collecting logs, metrics, and traces from all production systems
- The degree to which infrastructure is visible to the operations team
- The practice of setting up dashboards and alerts for known failure modes
Correct answer: The ability to understand a system's internal state from its external outputs without prior knowledge of failures
Observability means you can ask arbitrary questions about a system's behavior and get answers from telemetry data, even for failure modes you didn't anticipate.
Question 40: What is 'synthetic monitoring'?
- Collecting metrics from production traffic to analyze real user behavior
- Monitoring infrastructure logs generated by synthetic data generators
- Simulating user interactions with scripted tests to proactively detect issues (Correct answer)
- Running load tests using artificial traffic to benchmark performance
Correct answer: Simulating user interactions with scripted tests to proactively detect issues
Synthetic monitoring uses scripted, automated transactions to continuously probe critical user journeys and APIs, detecting issues before real users encounter them.
Question 41: 3. Which of the following best describes DevOps?
- A methodology
- An automation
- A cultural and professional movement (Correct answer)
- A department
Correct answer: A cultural and professional movement
DevOps is fundamentally a cultural and professional movement, rather than just a toolset or a specific methodology. It advocates for a significant shift in mindset, promoting collaboration, communication, and shared responsibility between development and operations teams. This cultural transformation aims to break down silos and foster an environment of continuous improvement for faster and more reliable software delivery.
Question 42: What does `kubectl rollout undo deployment/myapp` do?
- Rolls back the Deployment to its previous revision (Correct answer)
- Pauses the rollout of the current Deployment
- Scales the Deployment down to zero replicas
- Deletes the current Deployment and recreates it
Correct answer: Rolls back the Deployment to its previous revision
`kubectl rollout undo` reverts a Deployment to the previous ReplicaSet revision, useful for quickly recovering from a bad update.
Question 43: What is distributed tracing?
- Collecting metrics from multiple cloud providers in one place
- Monitoring CPU and memory usage across distributed servers
- Tracking a request's journey across multiple services to diagnose latency and failures (Correct answer)
- Logging all API calls made by a distributed application
Correct answer: Tracking a request's journey across multiple services to diagnose latency and failures
Distributed tracing instruments requests with trace IDs that flow through all microservices, allowing developers to visualize the full request path and identify bottlenecks.
Question 44: What is 'pipeline as code'?
- Writing pipeline logic in a programming language like Python
- Defining CI/CD pipeline configuration in version-controlled files (Correct answer)
- Automating code review processes through pipelines
- Using infrastructure code to provision pipeline servers
Correct answer: Defining CI/CD pipeline configuration in version-controlled files
Pipeline as code means storing pipeline definitions in version-controlled files (like Jenkinsfile or .gitlab-ci.yml) so they are treated like application code.
Question 45: What is a Docker layer?
- A storage partition assigned to each running container
- A network segment connecting containers
- A security boundary between the container and the host OS
- An intermediate read-only filesystem snapshot created by each Dockerfile instruction (Correct answer)
Correct answer: An intermediate read-only filesystem snapshot created by each Dockerfile instruction
Each Dockerfile instruction creates a new read-only layer stacked on top of previous layers; Docker caches layers to speed up subsequent builds.
Question 46: What does `terraform init` do?
- Applies the Terraform configuration to provision resources
- Destroys all infrastructure managed by the configuration
- Initializes a Terraform working directory and downloads provider plugins (Correct answer)
- Creates an execution plan showing infrastructure changes
Correct answer: Initializes a Terraform working directory and downloads provider plugins
`terraform init` initializes the working directory by downloading the required provider plugins and setting up the backend for state storage.
Question 47: What is the purpose of a '.gitignore' file in a DevOps project?
- To specify files and directories Git should not track (Correct answer)
- To list files that should be deleted during deployment
- To define merge conflict resolution rules
- To configure Git hooks for CI/CD pipelines
Correct answer: To specify files and directories Git should not track
'.gitignore' tells Git which files or directories to exclude from version control, such as build artifacts, secrets, or dependencies.
Question 48: What does 'mean time between failures' (MTBF) measure?
- The number of incidents per year
- The average time a system operates without a failure — a measure of reliability (Correct answer)
- The deployment frequency per month
- The average time to fix an incident
Correct answer: The average time a system operates without a failure — a measure of reliability
MTBF measures the average duration between consecutive failures of a system; a higher MTBF indicates a more reliable system.
Question 49: What is Infrastructure as a Service (IaaS)?
- Cloud-provided virtualized compute, storage, and networking that customers configure themselves (Correct answer)
- A container runtime service
- A fully managed application platform
- A SaaS product for infrastructure teams
Correct answer: Cloud-provided virtualized compute, storage, and networking that customers configure themselves
IaaS provides raw compute (VMs), storage, and networking, leaving customers responsible for OS, runtime, and application configuration — e.g., AWS EC2, Azure VMs.
Question 50: What is an SLO (Service Level Objective)?
- A threshold that triggers an alert when a metric exceeds it
- A budget for acceptable downtime over a given period
- A target reliability or performance goal for a service, expressed as a measurable metric (Correct answer)
- A contractual agreement between a provider and customer about service uptime
Correct answer: A target reliability or performance goal for a service, expressed as a measurable metric
An SLO is an internal reliability target (e.g., 99.9% availability) that teams use to guide engineering decisions and prioritize reliability work.
Question 51: What does the DORA metric 'Lead Time for Changes' measure?
- Percentage of deployments causing failures
- Time to recover from a production failure
- Number of deployments per time period
- Time from code commit to running in production (Correct answer)
Correct answer: Time from code commit to running in production
Lead time for changes measures the elapsed time from a code commit to that code running successfully in production.
Question 52: What is 'on-call rotation' in SRE?
- A schedule where team members take turns being the primary responder for production incidents (Correct answer)
- A load testing schedule
- A CI/CD deployment schedule
- A team meeting to review incident reports
Correct answer: A schedule where team members take turns being the primary responder for production incidents
On-call rotation distributes the burden of production incident response across the team, with clearly defined primary and secondary responders and escalation paths.
Question 53: What are the 'three pillars of observability'?
- Alerts, dashboards, and incidents
- Logs, metrics, and traces (Correct answer)
- Monitoring, logging, and auditing
- Uptime, latency, and throughput
Correct answer: Logs, metrics, and traces
The three pillars of observability are logs (event records), metrics (numeric measurements over time), and distributed traces (request flows across services).
Question 54: What is an incident post-mortem?
- A blameless analysis after an incident to understand root causes and prevent recurrence (Correct answer)
- A customer-facing status page update
- A financial impact report for leadership
- A list of engineers involved in an incident
Correct answer: A blameless analysis after an incident to understand root causes and prevent recurrence
A blameless post-mortem focuses on systemic causes rather than individual blame, documenting the timeline, contributing factors, and action items to prevent recurrence.
Question 55: 8. Which of the following is NOT an example of a DevOps collective body of knowledge?
- Public Standards by ISO (Correct answer)
- Publications
- Subject Matter Expertise
- Research
Correct answer: Public Standards by ISO
A collective body of knowledge in DevOps typically refers to the accumulated wisdom, research, publications, and practical expertise shared within the community. This includes academic research, industry publications, and the subject matter expertise of practitioners. Public Standards by ISO, while important for quality and compliance, are formal, external standards rather than a direct component of the organically evolving, community-driven 'collective body of knowledge' specific to DevOps practices and principles.
Question 56: What is the '12-Factor App' methodology?
- A framework with 12 architectural patterns for distributed systems
- A methodology for building scalable, maintainable cloud-native applications across 12 principles (Correct answer)
- A checklist of 12 security requirements for cloud applications
- A 12-step deployment process for containerized microservices
Correct answer: A methodology for building scalable, maintainable cloud-native applications across 12 principles
The 12-Factor App methodology defines 12 principles for building SaaS applications that are scalable, portable, and maintainable, covering topics from codebase to logging.
Question 57: What is 'DevSecOps'?
- A team structure combining dedicated developers, security engineers, and operations staff
- A compliance framework for securing DevOps toolchains
- The integration of security practices and tools throughout the DevOps pipeline (Correct answer)
- An approach to running security operations using DevOps methodologies
Correct answer: The integration of security practices and tools throughout the DevOps pipeline
DevSecOps integrates security as a shared responsibility throughout the entire software development and delivery lifecycle rather than treating it as a final gate.
Question 58: What is the difference between a StatefulSet and a Deployment in Kubernetes?
- StatefulSets do not support rolling updates
- StatefulSets maintain stable Pod identities and ordered scaling, while Deployments treat Pods as interchangeable (Correct answer)
- StatefulSets are only for databases
- Deployments cannot be scaled
Correct answer: StatefulSets maintain stable Pod identities and ordered scaling, while Deployments treat Pods as interchangeable
StatefulSets are designed for stateful applications that need stable hostnames, persistent storage, and ordered Pod lifecycle management.
Question 59: What does MTTR stand for in incident management?
- Maximum Time to Resolve — SLA-defined resolution deadline
- Mean Time to Report — average time to notify stakeholders of an incident
- Mean Time to Recovery — average time to restore service after an incident (Correct answer)
- Mean Time to Respond — average time for on-call to acknowledge an alert
Correct answer: Mean Time to Recovery — average time to restore service after an incident
MTTR (Mean Time to Recovery) measures the average elapsed time between a system failure and full service restoration, indicating incident response effectiveness.
Question 60: What is the purpose of a 'staging environment' in a CI/CD pipeline?
- To store build artifacts before deployment
- To monitor production traffic patterns
- To run unit tests in isolation
- To provide a production-like environment for final testing before release (Correct answer)
Correct answer: To provide a production-like environment for final testing before release
A staging environment mirrors production and is used for final integration testing, UAT, and smoke tests before a release goes live.
Question 61: What is chaos engineering?
- Writing code with intentional bugs
- Deliberately injecting failures into a system to test its resilience and identify weaknesses before they cause incidents (Correct answer)
- Randomly deleting production databases
- Stress testing network bandwidth
Correct answer: Deliberately injecting failures into a system to test its resilience and identify weaknesses before they cause incidents
Chaos engineering (e.g., Netflix's Chaos Monkey) proactively breaks things in controlled ways to discover failure modes and verify that systems handle them gracefully.
Question 62: What is the purpose of a 'dead man's switch' in monitoring?
- A mechanism to automatically shut down failing services
- An alert triggered when a service consumes 100% of its error budget
- A scheduled job that tests whether monitoring systems are working
- An alert that fires when an expected event (like a heartbeat) stops occurring (Correct answer)
Correct answer: An alert that fires when an expected event (like a heartbeat) stops occurring
A dead man's switch (or heartbeat alert) triggers when a periodic expected signal is not received, detecting silent failures like a crashed cron job.
Question 63: What does the .dockerignore file do?
- Lists images that should not be pulled from Docker Hub
- Excludes files and directories from the Docker build context (Correct answer)
- Specifies which containers to ignore during docker ps
- Prevents certain Dockerfile instructions from executing
Correct answer: Excludes files and directories from the Docker build context
The .dockerignore file lists patterns of files to exclude from the build context sent to the Docker daemon, reducing build time and preventing sensitive files from being included.
Question 64: What is the ELK Stack?
- Event-driven Logging with Kafka — a streaming log pipeline
- Elastic, Linkerd, and Kong — a service mesh and API gateway combination
- Event Logger, Load balancer, and Kubernetes — a cloud-native observability stack
- Elasticsearch, Logstash, and Kibana — a log aggregation, search, and visualization stack (Correct answer)
Correct answer: Elasticsearch, Logstash, and Kibana — a log aggregation, search, and visualization stack
The ELK Stack combines Elasticsearch (search/storage), Logstash (log ingestion/transformation), and Kibana (visualization) to build a centralized logging platform.
Question 65: 25. Which of the following is the most difficult challenge for an organization's expansion of DevOps use?
- Technology issues
- Information issues
- People issues (Correct answer)
- Process issues
Correct answer: People issues
While process, information, and technology issues are certainly challenges, 'people issues' are consistently cited as the most difficult aspect of scaling DevOps. This includes resistance to change, lack of collaboration, skill gaps, cultural inertia, and difficulties in shifting mindsets from siloed work to shared responsibility. Technology and processes can be implemented, but changing human behavior and organizational culture requires significant effort and time.
Question 66: What is a feature flag?
- A configuration switch that enables or disables a feature at runtime without deploying new code (Correct answer)
- A Git branch for feature development
- A Kubernetes label for feature Pods
- A CI/CD pipeline stage gate
Correct answer: A configuration switch that enables or disables a feature at runtime without deploying new code
Feature flags (or feature toggles) decouple deployment from release, allowing teams to deploy code to production while keeping it dormant until enabled for specific users or segments.
Question 67: What is a 'feature flag' (feature toggle) in DevOps?
- A configuration switch that enables or disables features at runtime without deploying new code (Correct answer)
- A Kubernetes label used to route traffic to specific Pod versions
- A Git branch naming convention for feature development
- A CI/CD pipeline flag that marks builds ready for production deployment
Correct answer: A configuration switch that enables or disables features at runtime without deploying new code
Feature flags decouple code deployment from feature release, allowing teams to merge code to main, deploy it, and control when users see new features via configuration.
Question 68: What is 'chaos engineering'?
- Using random data to test application edge cases and error handling
- Running disorganized deployments to test team incident response
- Simulating high traffic load to test system scalability
- Deliberately injecting failures into systems to test resilience and uncover weaknesses (Correct answer)
Correct answer: Deliberately injecting failures into systems to test resilience and uncover weaknesses
Chaos engineering proactively injects failures (network latency, instance termination, CPU spikes) in controlled experiments to identify weaknesses before they cause real outages.
Question 69: What is the purpose of a 'pipeline artifact' in CI/CD?
- A log file generated during pipeline execution
- A configuration file that defines pipeline variables
- A built output (binary, JAR, Docker image) produced by one stage and consumed by another (Correct answer)
- A test report generated after running unit tests
Correct answer: A built output (binary, JAR, Docker image) produced by one stage and consumed by another
Pipeline artifacts are built outputs like binaries or container images produced by one stage and passed downstream to subsequent stages such as testing or deployment.
Question 70: What is GitOps?
- A Kubernetes deployment tool
- A CI/CD pipeline hosted on GitHub
- Using Git as the single source of truth for declarative infrastructure and application configuration, with automated sync to the cluster (Correct answer)
- A Git branching strategy for development teams
Correct answer: Using Git as the single source of truth for declarative infrastructure and application configuration, with automated sync to the cluster
In GitOps, all desired state is stored in Git, and operators like Argo CD or Flux continuously reconcile cluster state with the repository, making Git the control plane.
Question 71: What is a Kubernetes Service?
- A background task runner
- A configuration management object
- A stable network endpoint that routes traffic to a set of Pods (Correct answer)
- A Persistent Volume binding
Correct answer: A stable network endpoint that routes traffic to a set of Pods
A Service provides a stable virtual IP and DNS name for a set of Pods, enabling reliable discovery and load balancing.
Question 72: What does 'immutable infrastructure' mean in practice?
- Cloud resources are locked to prevent accidental deletion
- Server AMIs are built once and reused across all environments without changes
- Infrastructure configuration files cannot be modified without version control approval
- Servers are never modified after deployment — changes require replacing with new instances built from updated images (Correct answer)
Correct answer: Servers are never modified after deployment — changes require replacing with new instances built from updated images
Immutable infrastructure means never patching or updating running servers — instead, a new server image is built, deployed, and the old one is terminated.
Question 73: In GitLab CI/CD, what file defines the pipeline configuration?
- Gitlabfile
- pipeline.yml
- .gitlab-ci.yml (Correct answer)
- ci-config.yml
Correct answer: .gitlab-ci.yml
GitLab CI/CD reads its pipeline configuration from a `.gitlab-ci.yml` file stored at the root of the repository.
Question 74: What is a Kubernetes Namespace?
- A node label for scheduling
- A virtual cluster within a Kubernetes cluster for isolating resources (Correct answer)
- A container network interface
- A DNS domain for services
Correct answer: A virtual cluster within a Kubernetes cluster for isolating resources
Namespaces partition a single Kubernetes cluster into logically separate environments, useful for multi-team or multi-environment setups.
Question 75: What is a 'runbook' in incident management?
- A dashboard showing the real-time health of production systems
- A record of all incidents that occurred during a given period
- A documented set of procedures for responding to specific operational events or alerts (Correct answer)
- An automated script that executes remediation steps without human intervention
Correct answer: A documented set of procedures for responding to specific operational events or alerts
A runbook provides step-by-step instructions for handling a specific alert or operational task, reducing response time and cognitive load during incidents.
Question 76: What is a 'sidecar container' pattern in Kubernetes?
- A backup container that starts when the primary container fails
- A container that runs security scans against the main application container
- A lightweight proxy container that manages Pod network traffic
- An additional container in a Pod that provides supporting functionality to the main application container (Correct answer)
Correct answer: An additional container in a Pod that provides supporting functionality to the main application container
The sidecar pattern adds a helper container alongside the main application container in a Pod, extending its functionality (log shipping, proxying, secret injection) without modifying the app.
Question 77: In a CI/CD pipeline, what does 'shift-left testing' mean?
- Delaying tests until after deployment
- Moving testing earlier in the development lifecycle (Correct answer)
- Running tests on the left side of a distributed system
- Prioritizing UI tests over unit tests
Correct answer: Moving testing earlier in the development lifecycle
Shift-left testing means incorporating testing earlier in the software development lifecycle to find and fix defects sooner and at lower cost.
Question 78: What is the difference between mutable and immutable infrastructure?
- Mutable infrastructure uses containers; immutable uses virtual machines
- Mutable infrastructure is managed by IaC; immutable is configured manually
- Mutable infrastructure scales automatically; immutable does not
- Mutable infrastructure is updated in place; immutable infrastructure is replaced entirely for each change (Correct answer)
Correct answer: Mutable infrastructure is updated in place; immutable infrastructure is replaced entirely for each change
Mutable infrastructure is modified after deployment (e.g., patching), while immutable infrastructure is never modified — new images or instances are created and old ones destroyed.
Question 79: What is 'continuous monitoring' in a DevOps context?
- Monitoring only CI/CD pipelines to detect failed builds or deployments
- Automatically collecting, analyzing, and alerting on application and infrastructure metrics throughout the pipeline and production (Correct answer)
- Running manual health checks on production systems at regular intervals
- A practice of scheduling weekly infrastructure reviews with the operations team
Correct answer: Automatically collecting, analyzing, and alerting on application and infrastructure metrics throughout the pipeline and production
Continuous monitoring provides real-time visibility into application performance, security, and infrastructure health across all environments from development through production.
Question 80: What is a 'thundering herd' problem?
- A DDoS attack pattern
- A memory leak in distributed systems
- High CPU usage from parallel builds
- When many clients simultaneously retry or connect after a service recovers, overwhelming it again (Correct answer)
Correct answer: When many clients simultaneously retry or connect after a service recovers, overwhelming it again
A thundering herd occurs when a large number of clients all attempt to reconnect or retry simultaneously, often triggered by a service restart, overwhelming the recovering system.
DevOps Engineer Certification Exam
The DevOps Engineer Certification Exam covers CI/CD pipelines, containerization and Kubernetes, infrastructure as code, monitoring and observability, cloud platform integration, site reliability engineering, Docker, and modern DevOps practices for software delivery teams.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy