Exams / SOA-C03 / CloudFormation and the AWS CDK / Question 1
SOA-C03 practice question: CloudFormation and the AWS CDK (1 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.
A public library manages its catalog database, an Amazon RDS DB instance, with AWS CloudFormation. A developer has updated the template to change the DB instance identifier and the storage type. Before anything is applied to production, the operations team wants to see exactly which resources CloudFormation will modify and whether any will be replaced. What should a CloudOps engineer do?
Choose one answer.
- AA. Run drift detection on the stack and review which resources CloudFormation reports as modified.
- BB. Create a change set from the new template and check the Replacement value for each change.
- CC. Validate the new template with the ValidateTemplate API and review the list of resources it returns.
- DD. Apply a stack policy that denies all updates, run the update, and read the errors for each blocked resource.
Show the answer and explanation
Answer: B
Explanation
Change sets let you preview a stack update. CloudFormation compares the proposed template with the current stack and lists each change, including whether a resource will be replaced, as happens when a DB instance identifier changes. Nothing is applied until the change set is executed.
Study
Keep practicing
Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.