SAA-C03 ยท Durability, automation and observability
Infrastructure as code and immutable infrastructure
CloudFormation stacks, golden AMIs, replacing instead of patching servers and blue/green deployments to keep infrastructure consistent.
Key points
- CloudFormation: template deployed as a stack; identical, rebuildable environments.
- Change sets: preview what an update adds, modifies, replaces, deletes.
- Drift detection: reports outside changes (DRIFTED or IN_SYNC), does not fix them.
- Immutable infrastructure: never patch running servers; bake a golden AMI (EC2 Image Builder), launch fresh, retire old.
- Blue/green: new version beside old, shift traffic; rollback is switching back.
Practice questions
Which CloudFormation feature lets you preview whether a stack update will replace or delete resources before anything changes?
- Drift detection
- Change sets
- Stack policies
- StackSets
Show answer
Answer: B. Change sets
A change set compares the submitted template or parameters with the running stack and lists the adds, modifications and replacements; nothing changes until you execute it. Drift detection compares the stack with reality, stack policies block updates, and StackSets deploy to many accounts.
Which are benefits of a blue/green deployment compared with updating servers in place?
- Rollback is a quick switch of traffic back to the old environment
- The new version can be validated before it receives production traffic
- It needs no extra capacity during the deployment
- It removes the need for automated tests
- It migrates database schemas without any planning
Show answer
Answer: A. Rollback is a quick switch of traffic back to the old environment, B. The new version can be validated before it receives production traffic
Blue/green keeps the old environment running, so rollback is a traffic switch, and the new environment can be tested before it takes production traffic. It temporarily needs capacity for both environments, and it does not remove the need for tests or make database schema changes automatic.
When CloudFormation drift detection finds a resource that was changed manually, it automatically reverts the resource to match the template.
Show answer
Answer: False
False. Drift detection only reports the differences (for example MODIFIED or DELETED resources and NOT_EQUAL properties). You must correct the resource yourself or update the template.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
