InterviewStack.io LogoInterviewStack.io

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?

HardSystem Design
36 practiced

You are moving a production environment from local state to a remote backend shared by the team. What design choices would you make around locking, access control, and failure recovery so concurrent work does not corrupt the environment?

MediumTechnical
21 practiced

You need one module to create a resource only when a feature flag is enabled, and also create one related object per item in a caller-provided list. How would you keep that configuration maintainable as the list grows or changes order over time?

EasyTechnical
26 practiced

Your application module needs to attach to a VPC and subnets that were created by a separate team. How would you consume that existing infrastructure in Terraform, and what would you check to make sure the module fails loudly if the network layout is not what you expect?

HardTechnical
20 practiced

Before a production apply, what review and automation guardrails would you put around the Terraform workflow so an engineer can catch unexpected destroys or replacements before they reach users?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.