SeniorSenior (6–10 yrs)AWSAzureHashiCorpAmazonMicrosoft
Infrastructure as Code Mentality
Why prefer Infrastructure as Code (Terraform/CloudFormation/Bicep) over click-ops in cloud consoles for production?
Answers use simple, clear English.
Quick interview answer
IaC makes changes reviewable, repeatable, and recoverable. Drift is detectable; environments can be cloned. Click-ops does not scale across teams and creates snowflake accounts.
Detailed answer
IaC makes changes reviewable, repeatable, and recoverable. Drift is detectable; environments can be cloned. Click-ops does not scale across teams and creates snowflake accounts. Pair IaC with policy-as-code and least-privilege CI roles.
Real example & use case
PR adds an S3 bucket with encryption required; Atlantis/Terraform plan runs in CI before apply.
Pros & cons
Pros: auditability. Cons: learning curve; state file locking/security must be handled.
#iac#devops