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.

  1. Most asked A rollback after a release made the outage worse because the database had already been migrated. How do you design releases so rollbacks are always safe?

    Make every schema change backward compatible with the previous code version, using expand and contract: add new structures first (both versions work), switch code over, and drop old structures only…

  2. Most asked Pods keep restarting with OOMKilled under load. How do you investigate and fix it?

    Confirm with kubectl describe (reason OOMKilled, exit code 137), compare memory working set with the limit, and check how the runtime sizes its heap. Usually the heap is fixed above the container…

  3. Most asked Every deployment produces a burst of 502s. What do you check?

    Readiness probes (new pods getting traffic before they're ready), graceful shutdown (does the app receive and handle SIGTERM: exec-form CMD, draining in-flight requests), the gap between SIGTERM and…

  4. Most asked Your ecommerce site runs 30 microservices on Kubernetes. After a deployment, customers start getting HTTP 503 errors. How do you investigate and resolve it?

    Treat it as an incident: confirm scope from the edge inward, correlate with the deployment, and roll back early if the new release is the likely cause. A 503 from an ingress usually means the…

  5. Most asked Your Kubernetes-based ecommerce site goes down during peak traffic. Walk through your first 15 minutes.

    Minutes 0-5: acknowledge, declare an incident, open a channel and assign an incident commander, and confirm impact from user-facing signals. Minutes 5-10: check what changed (deploys, config,…

  6. Most asked Response time rose from 200 ms to 5 seconds, but CPU and memory look normal. How do you troubleshoot it with APM tools such as Datadog or AppDynamics?

    Normal CPU and memory with high latency means the service is mostly waiting: on a database, another service, a lock, a connection pool, DNS or a thread pool. APM traces show exactly where: open slow…

  7. Most asked A production API credential was committed to Git. What do you do immediately, and how do you stop it happening again?

    Treat it as compromised from the moment it was pushed: revoke or rotate the credential first, then check the provider's logs for misuse, and only then clean the repository. Removing the commit isn't…

  8. Most asked Your CI pipeline takes 45 minutes. How would you speed it up?

    Measure where time goes, then: cache dependencies and Docker layers, run independent jobs in parallel and split test suites across runners, run only what changed (affected-project detection in…

  9. Most asked A production deployment failed halfway and the site is partially broken. What do you do?

    Mitigate first: stop the rollout and roll back to the last known good version (or forward with a known fix if rollback is unsafe), communicate status, and confirm recovery with metrics. Then…

  10. Most asked Your on-call gets hundreds of pages a week. How do you fix the alerting?

    Measure pages and their actionability, then page only on user-facing symptoms with SLO burn-rate alerts, demote cause-based alerts (CPU, restarts) to dashboards or tickets, require a runbook for…

  11. Most asked A release worked in staging but failed in production. How do you prevent that class of problem?

    Reduce unintended differences: promote the same artifact, define all environments from the same infrastructure code and manifests with small explicit overlays, keep dependency versions and feature…

  12. After a release, checkout becomes slow. How do you use traces, JVM metrics, connection pool metrics and database monitoring to find the cause?

    Start from a slow checkout trace and find the span that grew, then check the resource behind it. If time is spent waiting for a database connection, the pool is exhausted; if it's in the query, look…

  13. Two engineers ran Terraform against production at the same time. One run failed and left the infrastructure half-changed. How do you recover safely?

    Freeze further changes, then establish the truth: what the state file says, what actually exists, and which run changed what. Restore or reconcile the state (refresh-only plan, state backups or…

  14. A deployment succeeds in Jenkins, but the application fails on Kubernetes. How do you tell whether the problem is the pipeline, the infrastructure, the configuration or the application?

    "Pipeline succeeded" usually only means the manifest was applied. Check what actually rolled out (image tag and config that reached the cluster), then whether pods start and become ready, then the…

  15. Your Java service throws 'connection pool exhausted' errors. How do you investigate?

    Pool exhaustion means connections are checked out faster than they're returned. Look at pool metrics (active, idle, pending, wait time), find what holds connections too long (slow queries, long…

  16. How do you keep dependencies up to date safely across many repositories?

    Automate update pull requests with Renovate or Dependabot, group low-risk updates, let CI tests and scanners validate them, auto-merge trusted patch updates with good test coverage, and review major…

  17. Nodes are running out of disk space. What are the usual causes and fixes?

    Unbounded container logs (Docker json-file without max-size), log files written inside containers, debug log levels left on, and accumulating images and build caches. Fix with stdout logging and…

Was this page helpful?

Report a mistake