ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 364 - SOA-C02 discussion

Report
Export

An AWS Cloud Formation 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 Cloud Format ton stack is deleted

How can this be achieved in a reliable and efficient way?

A.
Write a script to continue backing up the RDS instance every live minutes.
Answers
A.
Write a script to continue backing up the RDS instance every live minutes.
B.
Create an AWS Lambda function to take a snapshot of the RDS instance, and manually invoke the function before deleting the stack.
Answers
B.
Create an AWS Lambda function to take a snapshot of the RDS instance, and manually invoke the function before deleting the stack.
C.
Use the Snapshot Deletion Policy in the Cloud Formation template definition of the RDS instance.
Answers
C.
Use the Snapshot Deletion Policy in the Cloud Formation template definition of the RDS instance.
D.
Create a new CloudFormallon template to perform backups of the RDS instance, and run this template before deleting the stack.
Answers
D.
Create a new CloudFormallon template to perform backups of the RDS instance, and run this template before deleting the stack.
Suggested answer: C

Explanation:

Snapshot Deletion Policy:

The Snapshot Deletion Policy ensures that a snapshot is created when an RDS instance is deleted as part of a CloudFormation stack deletion.

Steps:

Update your CloudFormation template to include the DeletionPolicy attribute for the RDS instance resource.

Example template snippet:

Resources:

MyDBInstance:

Type: AWS::RDS::DBInstance

Properties:

# DB instance properties

DeletionPolicy: Snapshot

This configuration retains a snapshot of the RDS instance data when the stack is deleted.

Reference: AWS CloudFormation DeletionPolicy

asked 16/09/2024
Jose ESPINOZA
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first