exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 294 discussion

A company's developer has deployed an application in AWS by using AWS CloudFormation. The CloudFormation stack includes parameters in AWS Systems Manager Parameter Store that the application uses as configuration settings. The application can modify the parameter values.

When the developer updated the stack to create additional resources with tags, the developer noted that the parameter values were reset and that the values ignored the latest changes made by the application. The developer needs to change the way the company deploys the CloudFormation stack. The developer also needs to avoid resetting the parameter values outside the stack.

Which solution will meet these requirements with the LEAST development effort?

  • A. Modify the CloudFormation stack to set the deletion policy to Retain for the Parameter Store parameters.
  • B. Create an Amazon DynamoDB table as a resource in the CloudFormation stack to hold configuration data for the application. Migrate the parameters that the application is modifying from Parameter Store to the DynamoDB table.
  • C. Create an Amazon RDS DB instance as a resource in the CloudFormation stack. Create a table in the database for parameter configuration. Migrate the parameters that the application is modifying from Parameter Store to the configuration table.
  • D. Modify the CloudFormation stack policy to deny updates on Parameter Store parameters.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
teban0130
1 week, 1 day ago
Selected Answer: D
La opción de DeletionPolicy: Retain aplica solo para la eliminacion de los recursos, la pregunta habla de la actualización del valor de SSM Parameter, una politica que haga el deny de poder actualizar los valores, permitirá proteger el cloudformation
upvoted 1 times
...
albert_kuo
5 months, 2 weeks ago
Selected Answer: A
Resources: MyAppParameter: Type: "AWS::SSM::Parameter" Properties: Name: "MyAppParameter" Type: "String" Value: "InitialValue" DeletionPolicy: Retain
upvoted 1 times
...
Saurabh04
7 months ago
Selected Answer: B
Option B (Use Amazon DynamoDB for Configuration Data): Create a DynamoDB table as a resource in the CloudFormation stack. Migrate the parameters from Parameter Store to the DynamoDB table. Allows the application to modify parameter values without affecting the stack.
upvoted 1 times
...
Anandesh
8 months ago
Selected Answer: D
There is no evidence from the wording in question that resources have been deleted from outside. Also, resetting the values does not mean factory reset wherein, somebody deleted the resource from outside and recreated it with default values. There is no evidence of that either. So, as per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html#stack-policy-reference I would choose D
upvoted 2 times
BrainFried
7 months, 1 week ago
The stack deletes resources on updates. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html The wording in the question states "The application can modify the parameter values" Given this, it is unlikely that Option D would be suitable. It would prevent the application from making updates to the parameter store, leading to potential errors. Option D is also unsuitable as it as it would mean the parameter store would still be reset for any future stack updates - which is precisely the root cause of the original issue stated in this question. D does not solve the problem here. A does.
upvoted 1 times
...
...
ahadh7621
8 months ago
I don't understand why it would be A. Reading the question again, "The developer "updated the stack to create additional resources with tags...noted that the parameter values were reset". A deletion policy only protects resources when a stack is deleted or "This capability also applies to stack update operations that lead to resources being deleted from stacks." (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) The parameters aren't being deleted but simply overwritten. In this case, to prevent the parameter store values from being overwritten, we can use a stack policy to prevent updates to a stack resource. "You can prevent stack resources from being unintentionally updated or deleted during a stack update by using a stack policy." (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html#stack-policy-intro-example)
upvoted 1 times
...
65703c1
9 months, 4 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
yingying920928
1 year ago
Selected Answer: A
Option A is the most straightforward approach to ensure that the parameters are not deleted or reset to their original values when the stack is deleted or updated. Option D Modifying the stack policy to deny updates on Parameter Store parameters could prevent necessary updates and is not recommended as it could lead to stack update failures.
upvoted 3 times
...
KarBiswa
1 year ago
Selected Answer: A
This solution allows the developer to avoid resetting the parameter values stored in AWS Systems Manager Parameter Store when updating the CloudFormation stack. By setting the deletion policy to Retain for those parameters, CloudFormation will preserve their values during stack updates instead of deleting and recreating them.
upvoted 3 times
...
SerialiDr
1 year ago
Selected Answer: A
A. Modify the CloudFormation stack to set the deletion policy to Retain for the Parameter Store parameters. This solution allows the developer to avoid resetting the parameter values stored in AWS Systems Manager Parameter Store when updating the CloudFormation stack. By setting the deletion policy to Retain for those parameters, CloudFormation will preserve their values during stack updates instead of deleting and recreating them. It changes the way the company deploys the CloudFormation stack by modifying the deletion policy for the relevant parameters. It avoids resetting the parameter values outside the stack, as the values modified by the application will be retained during stack updates.
upvoted 4 times
...
Abdullah22
1 year ago
Selected Answer: D
I am going with D.
upvoted 2 times
...
monishvster
1 year ago
Selected Answer: A
Should be A. As the developer also needs to avoid resetting the parameter values outside the stack.
upvoted 3 times
...
CrescentShared
1 year ago
Selected Answer: D
It is D
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago