>DevOps Interview KB

Practical Interview Questions — All Categories

131 questions across 30 categories

Hands-on, command-driven questions testing whether you can actually operate these tools, not just discuss them.

How would you measure whether a self-service CI/CD platform is actually succeeding, beyond just "teams are using it"?

AdvancedCI/CD7 min

Your team has copy-pasted the same VPC Terraform configuration into six different repositories. Design a module structure and versioning strategy to fix that.

IntermediateTerraform10 min

Converting a resource block from count to for_each caused Terraform to want to destroy and recreate every instance — why, and how do you migrate safely?

AdvancedTerraform7 min

A production database was created manually through the AWS console years ago — how would you bring it under Terraform management without recreating it?

IntermediateTerraform7 min

How would you deploy the same Terraform resource type to multiple AWS regions within a single configuration, using provider aliases?

IntermediateTerraform6 min

How would you make it structurally difficult for someone to accidentally run terraform destroy against a production state?

IntermediateTerraform6 min

How does Terraform's create_before_destroy interact with resources that have unique naming constraints, like a fixed identifier?

AdvancedTerraform7 min

A Kubernetes manifest repeats the same resource limits block across 8 containers. A teammate suggests using YAML anchors to avoid the duplication. How do anchors actually work, and what's the catch?

IntermediateYAML6 min

A single Kubernetes manifest file defines a Deployment and a Service, separated by '---'. How does a parser actually handle this, and what mistakes commonly happen with multi-document YAML?

IntermediateYAMLKubernetes6 min

A typo in a Helm values.yaml file (a misspelled key) was silently ignored, and the deployment used a wrong default instead of failing. How would you catch this class of mistake before it reaches production?

IntermediateYAML6 min

How would ruamel.yaml configured for YAML 1.2 handle the same enabled: no example differently from PyYAML's default loader?

IntermediateYAMLPython6 min