nerdexam
Amazon

SOA-C02 · Question #51

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. With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the…

Submitted by chen.hong· Mar 30, 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 execute
  • 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

(66 responses)
  • A
    8% (5)
  • B
    3% (2)
  • C
    76% (50)
  • D
    14% (9)

Explanation

With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by

Topics

#CloudFormation deletion policy#RDS snapshot retention#stack lifecycle#data persistence

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice