nerdexam
Amazon

SOA-C03 · Question #40

An AWS CloudFormation template creates an Amazon RDS instance. This template is used to build up development environments as needed and then delete the stack when the environment is no longer…

The correct answer is C. Use the Snapshot Deletion Policy in the CloudFormation template definition of the RDS instance. AWS CloudFormation supports the DeletionPolicy attribute to control what happens to a resource when a stack is deleted. For Amazon RDS DB instances, setting DeletionPolicy: Snapshot instructs CloudFormation to retain a final DB snapshot automatically at stack deletion. CloudOps…

Submitted by mike_84· Mar 5, 2026Deployment, provisioning, and automation

Question

An AWS CloudFormation template creates an Amazon RDS instance. This template is used to build up development environments as needed and then delete the stack when the environment is no longer required. The RDS-persisted data must be retained for further use, even after the CloudFormation stack is deleted. How can this be achieved in a reliable and efficient way?

Options

  • AWrite a script to continue backing up the RDS instance every five minutes.
  • BCreate an AWS Lambda function to take a snapshot of the RDS instance, and manually invoke
  • CUse the Snapshot Deletion Policy in the CloudFormation template definition of the RDS instance.
  • DCreate a new CloudFormation template to perform backups of the RDS instance, and run this

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    13% (3)
  • C
    75% (18)
  • D
    8% (2)

Explanation

AWS CloudFormation supports the DeletionPolicy attribute to control what happens to a resource when a stack is deleted. For Amazon RDS DB instances, setting DeletionPolicy: Snapshot instructs CloudFormation to retain a final DB snapshot automatically at stack deletion. CloudOps best practice recommends using this native mechanism for data retention and auditability, avoiding manual scripts or out-of-band processes. Options A, B, and D introduce operational overhead and potential human error. With DeletionPolicy set to Snapshot, the environment can be repeatedly created and torn down while preserving data states for later restoration with minimal manual steps. This aligns with IaC principles--declarative, repeatable, and reliable--and supports efficient lifecycle management of ephemeral development stacks.

Topics

#CloudFormation#deletion policy#RDS snapshot#stack lifecycle

Community Discussion

No community discussion yet for this question.

Full SOA-C03 Practice