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.

HardSystem Design
21 practiced

Design a drift-detection and remediation system for thousands of cloud resources spread across multiple accounts and regions. How would it decide what to auto-fix versus what needs a human to sign off, and how do you keep the whole thing auditable?

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?

HardTechnical
22 practiced

Even if nobody hardcodes a secret anywhere in your Terraform source, how can a secret still end up sitting in plaintext somewhere you didn't expect, and what would you put in place to protect against that?

HardTechnical
24 practiced

A client runs workloads both on-premises and in the cloud, and you're deciding between imperative scripting and declarative IaC to automate both. Walk through the trade-offs, including idempotency, debugging and observability, vendor lock-in, and team skills, and what you'd actually recommend.

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?

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.