SOA-C03 practice question: CloudFormation and the AWS CDK (3 of 3)
Deployment, Provisioning, and Automation A free question from our original SOA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
B. Right: Correct. A stack policy controls which resources stack updates can change. Denying replacement and deletion of the DB instance blocks accidental changes, while other resources stay updatable. Learn more: Prevent updates to stack resources (opens in a new tab)
C. Wrong: UpdateReplacePolicy decides what happens to the old resource after a replacement, such as keeping it. The replacement still happens, and the application moves to a new, empty DB instance. Learn more: UpdateReplacePolicy attribute (opens in a new tab)
D. Right: Correct. With the Snapshot deletion policy, CloudFormation creates a snapshot of the DB instance before deleting it. The final copy remains after the stack is gone. Learn more: DeletionPolicy attribute (opens in a new tab)
Two different CloudFormation controls cover the two rules. DeletionPolicy decides what happens to a resource when the stack is deleted, and Snapshot keeps a final copy of the database. A stack policy limits what stack updates may do to specific resources. Termination protection, UpdateReplacePolicy and drift detection solve related but different problems.
Want more on CloudFormation and the AWS CDK? The 5 full-length practice sets have 13 more CloudFormation and the AWS CDK questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →