nerdexam
Amazon

DVA-C02 · Question #308

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…

The correct answer is A. Modify the CloudFormation stack to set the deletion policy to Retain for the Parameter Store. Option A is correct because setting DeletionPolicy: Retain on the AWS::SSM::Parameter resource tells CloudFormation to preserve the parameter and its current value instead of deleting and recreating it during stack updates - this ensures that any runtime value changes made by…

Submitted by noor.lb· Mar 5, 2026Deployment

Question

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?

Options

  • AModify the CloudFormation stack to set the deletion policy to Retain for the Parameter Store
  • BCreate an Amazon DynamoDB table as a resource in the CloudFormation stack to hold
  • CCreate an Amazon RDS DB instance as a resource in the CloudFormation stack. Create a table
  • DModify the CloudFormation stack policy to deny updates on Parameter Store parameters.

How the community answered

(36 responses)
  • A
    72% (26)
  • B
    17% (6)
  • C
    3% (1)
  • D
    8% (3)

Explanation

Option A is correct because setting DeletionPolicy: Retain on the AWS::SSM::Parameter resource tells CloudFormation to preserve the parameter and its current value instead of deleting and recreating it during stack updates - this ensures that any runtime value changes made by the application survive future deployments with zero application code changes.

Option B is wrong because migrating configuration storage to DynamoDB requires rewriting the application to read from a new data source, which is significant development effort and defeats the "least effort" requirement.

Option C is wrong for the same reason as B, but worse - using RDS as a config store is massively over-engineered and even more development work than DynamoDB.

Option D is wrong because a stack policy that denies updates on SSM parameters would block CloudFormation from making any changes to those parameters (including intentional ones), but it does not prevent CloudFormation from resetting values - it would actually cause the stack update to fail entirely.

Memory tip: Think of DeletionPolicy: Retain as telling CloudFormation "hands off - don't touch this resource during updates or teardown." Whenever you see a scenario where a resource's state changes at runtime and needs to survive CloudFormation updates, Retain is your lowest-effort protection.

Topics

#CloudFormation#Systems Manager Parameter Store#Deployment Strategy#Resource Management

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice