What is AWS CloudFormation?
Answer: CloudFormation is AWS's native infrastructure-as-code service. You describe resources in a YAML or JSON template and it creates, updates and deletes them as a stack, resolving dependencies, tracking state, and rolling back automatically on failure.
Why interviewers ask this: Automatic rollback on failed create or update is a genuine advantage over some alternatives — a failed update returns the stack to its previous state without you intervening. The trade-off versus Terraform is multi-cloud support and ecosystem, which is the standard follow-up.
