Interview Q&A · questions with model answers
DevOps Engineer Interview Questions
Part of the study plan for: DevOps Engineer · Site Reliability Engineer (SRE)
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked What are DORA metrics, and how would you use them without gaming them?
The DORA metrics measure software delivery performance: deployment frequency, lead time for changes, change failure rate, and time to restore service (with recent research adding measures such as…
-
Most asked What does 'build once, deploy many' mean, and why does it matter?
The same build artifact (a container image digest, a JAR, a package) is promoted unchanged from test to staging to production; only configuration differs per environment. You never rebuild for…
-
Most asked What is platform engineering, and how does it relate to DevOps?
Platform engineering builds an internal developer platform: self-service, paved-road tooling (service templates, CI/CD, environments, observability, secrets, infrastructure modules) operated as a…
-
What are ephemeral (preview) environments, and what are their trade-offs?
An ephemeral environment is a short-lived, full deployment of the application created automatically for a pull request or branch, so reviewers, QA and product can test changes in isolation, and…
-
What are the security risks of self-hosted CI runners, and how do you mitigate them?
A self-hosted runner executes arbitrary code from workflows. On a persistent machine, a malicious or compromised job can steal credentials, tamper with later builds, or move laterally into the…
-
What is configuration management with Ansible, and where does it still fit?
Ansible applies desired configuration to machines through idempotent tasks organised in playbooks and roles, connecting over SSH (agentless). It installs packages, manages files and services, and…
-
What does 'shift left' on security mean in practice?
Move security checks earlier in the development lifecycle where fixes are cheaper: threat modelling during design, secure defaults in templates, pre-commit and CI checks (secret scanning, SAST,…
-
What does `set -euo pipefail` do in a bash script, and what are its pitfalls?
-e exits on a failing command, -u errors on unset variables and -o pipefail makes a pipeline fail if any command in it fails. Pitfalls: -e is ignored in some contexts (conditions, commands chained…
-
What is real-user monitoring, and how do tools like Akamai mPulse help an ecommerce team?
Real-user monitoring (RUM) measures performance and errors from real visitors' browsers or apps: page load times, Core Web Vitals, JavaScript errors, broken down by page, device, country and…
-
What is an artifact repository, and how do you manage it?
An artifact repository (Artifactory, Nexus, GitHub Packages, cloud registries such as ECR and Artifact Registry) stores build outputs (container images, packages, binaries) and proxies external…
-
What is chaos engineering's place in a DevOps practice?
It validates that resilience features actually work by deliberately injecting failures (killing instances, adding latency, breaking dependencies) in controlled experiments, starting small and in…