AWS Certified Developer – Associate (DVA-C02) — Question 134
A developer needs to store configuration variables for an application. The developer needs to set an expiration date and time for the configuration. The developer wants to receive notifications before the configuration expires.
Which solution will meet these requirements with the LEAST operational overhead?
Answer options
- A. Create a standard parameter in AWS Systems Manager Parameter Store. Set Expiration and ExpirationNotification policy types.
- B. Create a standard parameter in AWS Systems Manager Parameter Store. Create an AWS Lambda function to expire the configuration and to send Amazon Simple Notification Service (Amazon SNS) notifications.
- C. Create an advanced parameter in AWS Systems Manager Parameter Store. Set Expiration and ExpirationNotification policy types.
- D. Create an advanced parameter in AWS Systems Manager Parameter Store. Create an Amazon EC2 instance with a cron job to expire the configuration and to send notifications.
Correct answer: C
Explanation
The correct answer is C because using an advanced parameter in AWS Systems Manager Parameter Store allows you to set both expiration and notification policies with minimal operational overhead. Options A and B involve standard parameters, and while they can work, they do not provide the same functionality as advanced parameters for expiration notifications. Option D requires maintaining an EC2 instance and a cron job, which increases operational overhead compared to using the built-in capabilities of the advanced parameter.