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.
C. Wrong: Template validation checks syntax and returns parameters and capabilities. It does not compare the template with the running stack or report replacements.
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.
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 →