PrepAway - Latest Free Exam Questions & Answers

How should you prevent this from occurring in the future?

Your application uses CloudFormation to orchestrate your application’s resources. During your testing phase before the
application went live, your Amazon RDS instance type was changed and caused the instance to be re-created, resulting
In the loss of test data. How should you prevent this from occurring in the future?

PrepAway - Latest Free Exam Questions & Answers

A.
Within the AWS CloudFormation parameter with which users can select the Amazon RDS instance type, set AllowedValues to only
contain the current instance type.

B.
Use an AWS CloudFormation stack policy to deny updates to the instance. Only allow UpdateStack permission to IAM principals that
are denied SetStackPolicy.

C.
In the AWS CloudFormation template, set the AWS::RDS::DBInstance’s DBlnstanceClass property to be read-only.

D.
Subscribe to the AWS CloudFormation notification “BeforeResourceUpdate,” and call CancelStackUpdate if the resource identified is
the Amazon RDS instance.

E.
In the AWS CloudFormation template, set the DeletionPolicy of the AWS::RDS::DBInstance’s DeletionPolicy property to “Retain.”

9 Comments on “How should you prevent this from occurring in the future?

    1. James says:

      Agree. The question is regarding using the CloudFormation in version-control as a re-useable tool in updates that include replacing instance types and retiring unwanted instances.




      0



      0
  1. bcw says:

    https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html?shortFooter=true

    “your Amazon RDS instance type was changed and caused the instance to be re-created” – the type was changed in the CloudFormation template, but this will only cause the existing instance to change if the stack is updated. Deleting the stack may delete instances, but will regardless if the type is changed. Changing the type only matters for updates. ‘DeletionPolicy’ is only about deleting a stack, not updating it.

    The answer is B.




    0



    3

Leave a Reply

Your email address will not be published. Required fields are marked *