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.

EasyTechnical
17 practiced

When would you pull resources out into a reusable module instead of leaving them in the root configuration? Explain what makes a good module boundary, and what you'd call over-modularization.

HardTechnical
22 practiced

An internal module is already used by several teams, and you need to add a new capability without breaking existing consumers. How would you evolve the module, version it, and communicate the change so upgrades stay predictable?

MediumTechnical
18 practiced

You need to roll out an infrastructure-level change, say a new machine image or a load balancer/routing config change, with as close to zero downtime as possible. Walk through a blue-green or canary approach: how traffic gets shifted, what health checks and metrics you'd watch before promoting, and what would make you pull the plug and roll back.

MediumTechnical
31 practiced

A teammate made a change directly in the cloud console, and now terraform plan on that stack shows changes you didn't expect. Walk through how you'd investigate, safely bring things back in line, and stop it from happening again.

MediumTechnical
20 practiced

You're advising a team moving from long-lived servers to baked images. What are the trade-offs against staying with configuration management on mutable servers, especially around patching, hotfixes, debugging, and deployment speed?

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.