AWS Developer DVA-C02 · Security · easy
A healthcare microservice connects to an Amazon RDS for MySQL database. Compliance requires that the database master password be automatically rotated every 30 days without any manual developer intervention or application redeployment. Which AWS service natively stores the database credentials and executes an automated Lambda rotation schedule integrated with Amazon RDS?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: C. AWS Secrets Manager with native automatic RDS credential rotation enabled
AWS Secrets Manager is the service built for this requirement. It stores database credentials encrypted with AWS KMS and can rotate them on a schedule, such as every 30 days. For Amazon RDS engines including MySQL, rotation is native: Secrets Manager deploys an AWS-provided rotation Lambda function that connects to the database, changes the password, and updates the secret through staged versions. The application retrieves the secret at runtime with the GetSecretValue API call, so it always receives the current password without code changes or redeployment. That satisfies the 'no manual intervention' and 'no redeployment' constraints in the question. The common trap is picking Systems Manager Parameter Store because it also holds configuration and can use SecureString encryption. However, Parameter Store has no built-in rotation mechanism for database passwords, so you would have to build and schedule that logic yourself. For the exam, remember that automatic rotation of database credentials points to Secrets Manager.
Why the other options are wrong
- A. AWS Systems Manager Parameter Store Standard tier with plaintext string parameters — Parameter Store Standard tier can hold plaintext String parameters or encrypted SecureString parameters, but it has no native rotation feature for RDS passwords. Rotation would need custom code and scheduling, and a plaintext String parameter gives no protection for a credential.
- B. Hardcoding the password inside a CloudFormation Outputs value — CloudFormation Outputs publish values from a stack and are visible in the console and API to anyone who can describe the stack. Hardcoding a password there exposes it, and it does nothing to rotate the RDS master password.
- D. Amazon S3 Object Lock in Compliance mode storing an immutable static .env file — S3 Object Lock in Compliance mode makes object versions immutable (write-once-read-many) for a retention period. That is the opposite of rotating a credential, and storing a static .env file does not change the RDS password or integrate with RDS.
More Security questions
- A central platform security team allows application developers to create their own IAM execution roles for AWS Lambda…
- A mobile fitness app needs: (1) a managed user directory supporting sign-up, sign-in, MFA, and social login (Sign in…
- A regulated enterprise stores files in an Amazon S3 bucket encrypted with an AWS KMS Customer Managed Key (SSE-KMS)…
- A developer needs to encrypt a 50 MB sensitive PDF file locally on an application server before uploading it to an…
- An AWS Lambda function in Account A (111122223333) needs to read objects from an Amazon S3 bucket in Account B…
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.