DevOps interview questions
200 questions tagged by difficulty. Sign up to unlock full answers and track your weak areas.
- View
Containers vs virtual machines — key differences?
Easy · DevOps, Docker, Fresher
- View
What is Docker and how does it work?
Easy · DevOps, Docker, Fresher
- View
Docker image vs container — what is the difference?
Easy · DevOps, Docker, Fresher
- View
Dockerfile best practices for production?
Medium · DevOps, Docker, Senior
- View
How do Docker image layers affect build and deploy speed?
Medium · DevOps, Docker, Senior
- View
What are multi-stage Docker builds and why use them?
Medium · DevOps, Docker, Senior
- View
CMD vs ENTRYPOINT in Dockerfile?
Medium · DevOps, Docker, Senior
- View
COPY vs ADD in Dockerfile?
Easy · DevOps, Docker, Fresher
- View
Docker volumes vs bind mounts?
Medium · DevOps, Docker, Senior
- View
What is Docker Compose and when do you use it?
Easy · DevOps, Docker, Fresher
- View
Docker networking modes (bridge, host, overlay, none)?
Medium · DevOps, Docker, Senior
- View
Essential docker run flags for backend developers?
Easy · DevOps, Docker, Fresher
- View
Why use .dockerignore and what should it exclude?
Easy · DevOps, Docker, Fresher
- View
Docker container lifecycle states?
Easy · DevOps, Docker, Fresher
- View
What is the OCI spec and how does containerd fit in?
Medium · DevOps, Docker, Senior
- View
Docker vs Podman — key differences?
Medium · DevOps, Docker, Senior
- View
How do you set CPU and memory limits on containers?
Medium · DevOps, Docker, Senior
- View
Container security best practices?
Hard · DevOps, Docker, Staff
- View
What is a container registry and how does image tagging work?
Easy · DevOps, Docker, Fresher
- View
How do you debug a running or failed container?
Medium · DevOps, Docker, Senior
- View
What are distroless and minimal container images?
Medium · DevOps, Docker, Senior
- View
Docker HEALTHCHECK vs Kubernetes probes?
Medium · DevOps, Docker, Senior
- View
What is Docker build context and how do you optimize it?
Medium · DevOps, Docker, Senior
- View
Why run containers as non-root and how do you configure it?
Medium · DevOps, Docker, Senior
- View
Docker Swarm vs Kubernetes — when to use each?
Hard · DevOps, Docker, Staff
- View
Explain Kubernetes architecture (control plane vs worker nodes).
Medium · DevOps, Kubernetes, Senior
- View
What is a Pod and when would you run multiple containers in one Pod?
Easy · DevOps, Kubernetes, Fresher
- View
Deployment vs StatefulSet vs DaemonSet?
Medium · DevOps, Kubernetes, Senior
- View
Kubernetes Service types (ClusterIP, NodePort, LoadBalancer, Ingress)?
Medium · DevOps, Kubernetes, Senior
- View
What is an Ingress and how does it differ from a Service?
Medium · DevOps, Kubernetes, Senior
- View
ConfigMap vs Secret in Kubernetes?
Easy · DevOps, Kubernetes, Fresher
- View
How does Horizontal Pod Autoscaler (HPA) work?
Medium · DevOps, Kubernetes, Senior
- View
Liveness vs readiness vs startup probes?
Easy · DevOps, Kubernetes, Fresher
- View
How do Kubernetes rolling updates work?
Medium · DevOps, Kubernetes, Senior
- View
What is Helm and why use it?
Medium · DevOps, Kubernetes, Senior
- View
What are Kubernetes namespaces and when do you use them?
Easy · DevOps, Kubernetes, Fresher
- View
Labels and selectors in Kubernetes?
Easy · DevOps, Kubernetes, Fresher
- View
Resource requests vs limits in Kubernetes?
Medium · DevOps, Kubernetes, Senior
- View
PersistentVolume (PV) and PersistentVolumeClaim (PVC)?
Medium · DevOps, Kubernetes, Senior
- View
How does RBAC work in Kubernetes?
Medium · DevOps, Kubernetes, Senior
- View
What are Kubernetes NetworkPolicies?
Hard · DevOps, Kubernetes, Staff
- View
Taints, tolerations, and node affinity?
Hard · DevOps, Kubernetes, Staff
- View
What are init containers?
Medium · DevOps, Kubernetes, Senior
- View
Explain the sidecar pattern in Kubernetes.
Medium · DevOps, Kubernetes, Senior
- View
What is a PodDisruptionBudget (PDB)?
Medium · DevOps, Kubernetes, Staff
- View
How does the Cluster Autoscaler work?
Medium · DevOps, Kubernetes, Staff
- View
Jobs vs CronJobs in Kubernetes?
Easy · DevOps, Kubernetes, Fresher
- View
Kustomize vs Helm — when to use each?
Medium · DevOps, Kubernetes, Senior
- View
What is etcd and why is control plane HA important?
Hard · DevOps, Kubernetes, Architect
- View
Essential kubectl commands for troubleshooting?
Medium · DevOps, Kubernetes, Senior
- View
Explain Continuous Integration vs Continuous Delivery vs Continuous Deployment.
Easy · DevOps, CI/CD, Fresher
- View
What stages should a production CI/CD pipeline include?
Medium · DevOps, CI/CD, Senior
- View
Jenkins vs GitHub Actions — comparison?
Medium · DevOps, CI/CD, Senior
- View
Why use an artefact repository (Nexus, Artifactory, ECR)?
Easy · DevOps, CI/CD, Fresher
- View
How do you manage secrets in CI/CD pipelines?
Medium · DevOps, CI/CD, Senior
- View
What are quality gates in a pipeline?
Medium · DevOps, CI/CD, Senior
- View
How do you speed up CI builds with caching?
Easy · DevOps, CI/CD, Fresher
- View
How does CI/CD support canary deployments?
Hard · DevOps, CI/CD, Staff
- View
Git branching strategies for CI/CD (trunk-based, GitHub Flow, GitFlow)?
Medium · DevOps, CI/CD, Senior
- View
What are Git hooks and how are they used in CI/CD?
Easy · DevOps, CI/CD, Fresher
- View
What is pipeline-as-code and why does it matter?
Easy · DevOps, CI/CD, Fresher
- View
GitHub Actions workflow anatomy — key concepts?
Medium · DevOps, CI/CD, Senior
- View
Jenkins declarative pipeline — core structure?
Medium · DevOps, CI/CD, Senior
- View
How does OIDC federation eliminate long-lived cloud credentials in CI?
Hard · DevOps, CI/CD, Architect
- View
How do you promote artefacts across environments (dev → staging → prod)?
Medium · DevOps, CI/CD, Senior
- View
Blue/green deployment — how does it work?
Medium · DevOps, CI/CD, Senior
- View
Rolling deployment vs recreate strategy?
Easy · DevOps, CI/CD, Fresher
- View
How do feature flags support CI/CD and trunk-based development?
Medium · DevOps, CI/CD, Senior
- View
How do you handle database migrations in CI/CD?
Hard · DevOps, CI/CD, Architect
- View
Rollback strategies when deployment fails?
Medium · DevOps, CI/CD, Staff
- View
Semantic versioning (SemVer) in release management?
Easy · DevOps, CI/CD, Fresher
- View
What checks should run on every pull request?
Medium · DevOps, CI/CD, Senior
- View
How do you handle flaky tests in CI/CD?
Medium · DevOps, CI/CD, Senior
- View
What are DORA metrics and why do they matter?
Medium · DevOps, CI/CD, Senior
- View
What is GitOps and how does it relate to CI/CD?
Medium · DevOps, CI/CD, Senior
- View
Maven vs Gradle — when to use each?
Easy · DevOps, Build, Config & Debug, Fresher
- View
Explain the Maven build lifecycle phases.
Easy · DevOps, Build, Config & Debug, Fresher
- View
How does dependency management work (Maven BOM, dependency convergence)?
Medium · DevOps, Build, Config & Debug, Senior
- View
Multi-module Maven/Gradle project structure and build order?
Medium · DevOps, Build, Config & Debug, Senior
- View
12-factor app: how should configuration be handled?
Easy · DevOps, Build, Config & Debug, Fresher
- View
Externalized configuration patterns for microservices?
Medium · DevOps, Build, Config & Debug, Senior
- View
Spring Boot profiles — how do they work?
Easy · DevOps, Build, Config & Debug, Fresher
- View
Spring Boot property source precedence order?
Medium · DevOps, Build, Config & Debug, Senior
- View
Environment variables vs configuration files — trade-offs?
Easy · DevOps, Build, Config & Debug, Fresher
- View
Secrets vs configuration — how do you separate them?
Medium · DevOps, Build, Config & Debug, Senior
- View
What is Spring Cloud Config Server?
Medium · DevOps, Build, Config & Debug, Senior
- View
What is build reproducibility and why does it matter?
Medium · DevOps, Build, Config & Debug, Senior
- View
How do you optimize CI builds in a monorepo?
Hard · DevOps, Build, Config & Debug, Architect
- View
JVM tuning for production containers (heap, GC)?
Hard · DevOps, Build, Config & Debug, Staff
- View
Structured logging and correlation IDs in distributed systems?
Medium · DevOps, Build, Config & Debug, Senior
- View
Log levels and what to log in production?
Easy · DevOps, Build, Config & Debug, Fresher
- View
How do you capture and analyse a thread dump?
Medium · DevOps, Build, Config & Debug, Senior
- View
How do you debug OutOfMemoryError in production?
Hard · DevOps, Build, Config & Debug, Staff
- View
Remote debugging — how to do it safely?
Medium · DevOps, Build, Config & Debug, Senior
- View
Health check endpoints (Spring Boot Actuator)?
Easy · DevOps, Build, Config & Debug, Fresher
- View
How do you debug applications running in containers/Kubernetes?
Medium · DevOps, Build, Config & Debug, Senior
- View
Role of Makefiles and build scripts in DevOps?
Easy · DevOps, Build, Config & Debug, Fresher
- View
Feature flags as a configuration concern?
Medium · DevOps, Build, Config & Debug, Senior
- View
How do you manage configuration across dev, staging, and prod?
Medium · DevOps, Build, Config & Debug, Senior
- View
Debugging distributed systems — tracing and observability?
Hard · DevOps, Build, Config & Debug, Architect
- View
Essential Linux commands every DevOps engineer must know?
Easy · DevOps, Linux & Shell, Fresher
- View
Explain Linux file permissions (rwx) and how they work?
Easy · DevOps, Linux & Shell, Fresher
- View
How do you manage and troubleshoot Linux processes?
Easy · DevOps, Linux & Shell, Fresher
- View
Bash scripting basics for DevOps automation?
Easy · DevOps, Linux & Shell, Fresher
- View
How do you analyse logs on a Linux server during an incident?
Medium · DevOps, Linux & Shell, Senior
- View
How do you troubleshoot 'disk full' errors in production?
Medium · DevOps, Linux & Shell, Senior
- View
Cron jobs vs systemd timers — when to use each?
Medium · DevOps, Linux & Shell, Senior
- View
SSH access management and hardening for servers?
Medium · DevOps, Linux & Shell, Senior
- View
Linux performance tuning — CPU, memory, I/O?
Hard · DevOps, Linux & Shell, Staff
- View
How do Linux namespaces and cgroups relate to containers?
Medium · DevOps, Linux & Shell, Senior
- View
How do you create and manage systemd services?
Medium · DevOps, Linux & Shell, Senior
- View
Inodes, hard links, and symbolic links — explain?
Medium · DevOps, Linux & Shell, Senior
- View
Git fundamentals — staging, commits, remotes, and branches?
Easy · DevOps, Git & Version Control, Fresher
- View
Common Git branching strategies for DevOps teams?
Easy · DevOps, Git & Version Control, Fresher
- View
Git merge vs rebase — when to use each?
Easy · DevOps, Git & Version Control, Fresher
- View
How do you resolve merge conflicts in a CI/CD workflow?
Medium · DevOps, Git & Version Control, Senior
- View
Git hooks — pre-commit, pre-push, and CI integration?
Medium · DevOps, Git & Version Control, Senior
- View
Signed commits and verified tags for supply chain security?
Medium · DevOps, Git & Version Control, Senior
- View
Monorepo vs polyrepo — Git strategies for microservices?
Medium · DevOps, Git & Version Control, Senior
- View
git bisect and cherry-pick for production incidents?
Hard · DevOps, Git & Version Control, Staff
- View
IaaS vs PaaS vs SaaS — explain with DevOps examples?
Easy · DevOps, Cloud DevOps, Fresher
- View
Cloud shared responsibility model for DevOps?
Easy · DevOps, Cloud DevOps, Fresher
- View
AWS CI/CD services — CodePipeline, CodeBuild, CodeDeploy?
Medium · DevOps, Cloud DevOps, Senior
- View
AWS ECS vs EKS — when to choose each for container workloads?
Medium · DevOps, Cloud DevOps, Senior
- View
GCP Cloud Build and Artifact Registry for CI/CD?
Medium · DevOps, Cloud DevOps, Senior
- View
Cloud IAM best practices for DevOps pipelines and operators?
Medium · DevOps, Cloud DevOps, Senior
- View
Multi-account cloud strategy for enterprise DevOps?
Hard · DevOps, Cloud DevOps, Staff
- View
Cloud disaster recovery — RPO, RTO, and backup strategies?
Hard · DevOps, Cloud DevOps, Staff
- View
How does the AWS Well-Architected Framework apply to DevOps?
Hard · DevOps, Cloud DevOps, Architect
- View
Azure DevOps Pipelines — key concepts?
Medium · DevOps, Cloud DevOps, Senior
- View
CI/CD for serverless (Lambda, Cloud Functions)?
Medium · DevOps, Cloud DevOps, Senior
- View
Managed Kubernetes — EKS, GKE, AKS operational differences?
Medium · DevOps, Cloud DevOps, Senior
- View
Using S3/GCS for CI artefacts, static sites, and Terraform state?
Medium · DevOps, Cloud DevOps, Senior
- View
Cloud autoscaling — horizontal vs vertical, predictive scaling?
Medium · DevOps, Cloud DevOps, Senior
- View
AWS Secrets Manager vs Parameter Store vs GCP Secret Manager?
Medium · DevOps, Cloud DevOps, Senior
- View
When to use Lambda vs containers vs EC2 for workloads?
Medium · DevOps, Cloud DevOps, Senior
- View
What is Infrastructure as Code (IaC) and why use it?
Easy · DevOps, Infrastructure as Code, Fresher
- View
Terraform core concepts — providers, resources, state?
Medium · DevOps, Infrastructure as Code, Senior
- View
Terraform remote state and state locking — why critical?
Hard · DevOps, Infrastructure as Code, Staff
- View
Terraform modules — structure and best practices?
Medium · DevOps, Infrastructure as Code, Senior
- View
Ansible vs Terraform — when to use each?
Hard · DevOps, Infrastructure as Code, Staff
- View
Terraform at scale — workspaces, stacks, and blast radius?
Hard · DevOps, Infrastructure as Code, Architect
- View
AWS CloudFormation vs Terraform — comparison?
Medium · DevOps, Infrastructure as Code, Senior
- View
Pulumi and AWS CDK — IaC with real programming languages?
Medium · DevOps, Infrastructure as Code, Senior
- View
Ansible playbooks, roles, and inventory — explain?
Medium · DevOps, Infrastructure as Code, Senior
- View
Immutable vs mutable infrastructure — DevOps perspective?
Medium · DevOps, Infrastructure as Code, Senior
- View
Policy as code for infrastructure — OPA, Sentinel, Checkov?
Hard · DevOps, Infrastructure as Code, Staff
- View
GitOps for infrastructure — repo structure and workflow?
Medium · DevOps, Infrastructure as Code, Senior
- View
What is Site Reliability Engineering (SRE) and how does it differ from DevOps?
Easy · DevOps, SRE & Observability, Fresher
- View
Metrics, logs, and traces — the three pillars of observability?
Easy · DevOps, SRE & Observability, Fresher
- View
Explain SLI, SLO, and SLA with examples?
Medium · DevOps, SRE & Observability, Senior
- View
How do you design SLOs for a production service?
Hard · DevOps, SRE & Observability, Staff
- View
Error budgets — how do they balance reliability and velocity?
Hard · DevOps, SRE & Observability, Architect
- View
Prometheus and Grafana — architecture and alerting?
Medium · DevOps, SRE & Observability, Senior
- View
Incident response workflow for production outages?
Medium · DevOps, SRE & Observability, Senior
- View
Blameless postmortems — structure and culture?
Hard · DevOps, SRE & Observability, Staff
- View
Building sustainable on-call culture?
Hard · DevOps, SRE & Observability, Staff
- View
Chaos engineering — principles and tools?
Hard · DevOps, SRE & Observability, Staff
- View
Capacity planning for cloud-native systems?
Hard · DevOps, SRE & Observability, Staff
- View
What is toil and how do SRE teams reduce it?
Medium · DevOps, SRE & Observability, Staff
- View
OpenTelemetry — unified observability instrumentation?
Medium · DevOps, SRE & Observability, Senior
- View
Incident command system (ICS) for large-scale outages?
Hard · DevOps, SRE & Observability, Architect
- View
DORA metrics — what they measure and how to improve them?
Medium · DevOps, SRE & Observability, Senior
- View
Centralized logging — ELK stack vs Loki vs cloud-native?
Medium · DevOps, SRE & Observability, Senior
- View
How do you reduce alert fatigue across many services?
Medium · DevOps, SRE & Observability, Senior
- View
Synthetic monitoring and health checks — blackbox vs whitebox?
Medium · DevOps, SRE & Observability, Senior
- View
What is DevSecOps and how do you shift security left?
Medium · DevOps, Security & Compliance, Senior
- View
Container image scanning and vulnerability management?
Medium · DevOps, Security & Compliance, Senior
- View
HashiCorp Vault — dynamic secrets and rotation?
Hard · DevOps, Security & Compliance, Staff
- View
Kubernetes security hardening checklist?
Hard · DevOps, Security & Compliance, Staff
- View
Software supply chain security — SLSA, SBOM, signed artefacts?
Hard · DevOps, Security & Compliance, Architect
- View
DevOps considerations for SOC 2 compliance?
Hard · DevOps, Security & Compliance, Staff
- View
Zero trust principles for infrastructure access?
Medium · DevOps, Security & Compliance, Senior
- View
Why must secrets never be committed to Git and how to prevent it?
Easy · DevOps, Security & Compliance, Fresher
- View
WAF and DDoS protection in cloud deployments?
Medium · DevOps, Security & Compliance, Senior
- View
Least privilege IAM and RBAC — practical implementation?
Medium · DevOps, Security & Compliance, Senior
- View
PCI DSS and HIPAA basics for DevOps engineers?
Hard · DevOps, Security & Compliance, Staff
- View
mTLS and service mesh for service-to-service security?
Hard · DevOps, Security & Compliance, Staff
- View
HTTP vs HTTPS — how TLS works in production?
Easy · DevOps, Networking, Fresher
- View
DNS fundamentals for DevOps — records, propagation, troubleshooting?
Easy · DevOps, Networking, Fresher
- View
Load balancers — L4 vs L7, algorithms, health checks?
Medium · DevOps, Networking, Senior
- View
VPC, subnets, and CIDR — cloud networking basics?
Medium · DevOps, Networking, Senior
- View
NAT gateways, firewalls, and egress control?
Medium · DevOps, Networking, Senior
- View
CDN and edge caching for global applications?
Medium · DevOps, Networking, Senior
- View
Container and Kubernetes networking — how pods communicate?
Medium · DevOps, Networking, Senior
- View
Service mesh networking — Istio traffic management?
Hard · DevOps, Networking, Staff
- View
Global load balancing and multi-region traffic routing?
Hard · DevOps, Networking, Architect
- View
Network troubleshooting methodology — "service unreachable"?
Medium · DevOps, Networking, Senior
- View
GitOps with ArgoCD and Flux — how do they work?
Hard · DevOps, Platform & Architecture, Staff
- View
Internal Developer Platform (IDP) — design principles?
Hard · DevOps, Platform & Architecture, Architect
- View
Progressive delivery — canary, feature flags, and A/B at scale?
Hard · DevOps, Platform & Architecture, Staff
- View
Improving DORA metrics organization-wide — Staff/Lead approach?
Hard · DevOps, Platform & Architecture, Staff
- View
Multi-cloud strategy — when is it right vs over-engineering?
Hard · DevOps, Platform & Architecture, Architect
- View
Cloud landing zone design for enterprise DevOps?
Hard · DevOps, Platform & Architecture, Architect
- View
Cell-based architecture for blast radius reduction?
Hard · DevOps, Platform & Architecture, Architect
- View
Leading a DevOps transformation in a traditional organization?
Hard · DevOps, Platform & Architecture, Architect
- View
Build vs buy for DevOps tooling — decision framework?
Hard · DevOps, Platform & Architecture, Architect
- View
Multi-region active-active architecture for DevOps teams?
Hard · DevOps, Platform & Architecture, Architect
- View
Zero trust architecture for cloud-native platforms?
Hard · DevOps, Platform & Architecture, Architect
- View
FinOps at scale — cloud cost governance for platform teams?
Hard · DevOps, Platform & Architecture, Architect