DevOps Engineer · interview questions

DevOps Engineer interview questions: hands-on

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

Docker Core 1

  1. Most asked Write a production Dockerfile for a Python web app: small, non-root and cache-friendly.

Kubernetes Core 1

  1. Most asked Write a Kubernetes Deployment and Service for a web API with probes, resource requests and a rolling update strategy.

Terraform Core 1

  1. Write a reusable Terraform module for a private, encrypted S3 bucket, and show how it's used.

Ansible Core 1

  1. Most asked Write an Ansible playbook that installs Nginx, deploys its configuration, enables the service and restarts it only when the configuration changes.

Linux Core 1

  1. Most asked Write a script that alerts when disk usage passes a threshold.

GitHub Actions Fundamentals Core 1

  1. Most asked Write a GitHub Actions workflow that tests, builds and pushes a Docker image, and deploys only from main.

Site Reliability Engineering Recommended 1

  1. Most asked Write Prometheus alerting rules for an SLO of 99.9% successful requests using multi-window burn rates.

Cloud Engineer Recommended 1

  1. Write a least-privilege IAM policy that lets an application read and write objects under one prefix of a bucket.

Was this page helpful?

Report a mistake