Infrastructure as Code and Automation Questions

Defining, provisioning, and automating infrastructure programmatically. Covers declarative IaC with Terraform and comparable tools like CloudFormation (resource and provider model, state management and remote backends, module design and reuse, workspaces, drift detection, and safe plan/apply workflows), plus the broader automation discipline: provisioning pipelines, golden-image and machine-image building, scripting glue, self-service platforms, and end-to-end environment stand-up. The authoring, lifecycle, and automation of infrastructure code that reduces manual toil across provisioning workflows.

MediumTechnical
20 practiced

A plan in CI suddenly wants to recreate live resources after a colleague applied changes from their workstation. What does that tell you about the state, and how would you debug it before touching production?

MediumTechnical
23 practiced

For a high-criticality service, would you rather have Terraform automatically reconcile drift back to the declared state, or just detect it and alert a human? Why, and what could go wrong with the automatic approach?

EasyTechnical
17 practiced

What is configuration drift, and how would you actually detect it, say for a small team versus a large enterprise with hundreds of accounts?

EasyTechnical
30 practiced

What is Terraform state, and why does Terraform need to keep track of it at all? What would actually break if it didn't exist?

EasyTechnical
35 practiced

Before a Terraform or CloudFormation change ever reaches apply, what automated checks would you want running in the pipeline, and at what stage would each one run? Talk through what kind of mistake each check is actually meant to catch.

Unlock Full Question Bank

Get access to all Infrastructure as Code and Automation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.