Interview Q&A · questions with model answers
DevOps Fundamentals Interview Questions
Part of the study plan for: DevOps Engineer
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 infrastructure as code
Declare infra in versioned code for repeatability.
-
Most asked DevOps tooling: explain Kubernetes Pod.
Smallest deployable unit; one or more containers sharing network/volumes.
-
Most asked DevOps tooling: explain Terraform state.
Tracks real resources; remote state + locking for teams.
-
Most asked DevOps tooling: explain blue/green & canary.
Traffic shifting strategies to reduce release risk.
-
Most asked Security in DevOps: secrets management?
Vault/SM/KMS; never commit secrets; rotate regularly.
-
DevOps tooling: explain Dockerfile best practices.
Multi-stage builds, small base images, non-root user, layer caching.
-
DevOps tooling: explain Service / Ingress.
Service exposes pods; Ingress HTTP routing into cluster.
-
DevOps tooling: explain Terraform plan/apply.
Preview then mutate infra; review plans in CI.
-
DevOps tooling: explain Jenkins / GitHub Actions.
CI orchestration running pipelines as code.
-
Security in DevOps: DevSecOps?
Integrate security scanning and policies into pipelines.
-
Security in DevOps: least privilege IAM?
Minimal permissions for pipelines and runtimes.
-
shift left
Move testing/security earlier in the pipeline.
-
GitOps
Desired state in Git; controllers reconcile clusters to that state.
-
blameless postmortems
Focus on systemic fixes after incidents, not individuals.
-
DORA metrics
Deployment frequency, lead time, change fail rate, MTTR.
-
DevOps tooling: explain ConfigMap / Secret.
Inject config; Secrets for sensitive data (still encrypt/manage carefully).
-
DevOps tooling: explain HPA.
Horizontal Pod Autoscaler scales replicas on metrics.
-
DevOps tooling: explain artifact repositories.
Store versioned builds (Nexus/Artifactory/ECR/GHCR).
-
DevOps tooling: explain Prometheus / Grafana.
Metrics scrape + dashboards/alerts.
-
DevOps tooling: explain OpenTelemetry.
Vendor-neutral traces/metrics/logs instrumentation.
-
DevOps tooling: explain feature flags.
Decouple deploy from release; progressive delivery.
-
Security in DevOps: image scanning?
CVE scan containers before deploy.
-
Security in DevOps: network policies?
Limit pod-to-pod traffic in Kubernetes.
-
Security in DevOps: supply chain attacks?
Pin versions, verify signatures, lockfiles, trusted bases.
-
toil
Manual repetitive work that should be automated (SRE term).
-
DevOps tooling: explain Ansible.
Agentless config management via SSH/WinRM.
-
DevOps tooling: explain ELK / OpenSearch.
Centralized log aggregation and search.
-
DevOps tooling: explain Helm.
Kubernetes package manager for templated charts.
-
DevOps tooling: explain service mesh.
mTLS, traffic shaping, observability between services (Istio/Linkerd).
-
Security in DevOps: SBOM?
Software bill of materials for supply-chain visibility.
-
Security in DevOps: policy as code?
OPA/Conftest/Kyverno enforce cluster/infra rules.