AWS Solutions Architect · Design Secure Architectures · easy

An application running on Amazon ECS Fargate connects to an Amazon Aurora PostgreSQL cluster. Compliance rules require the database password to rotate automatically every 30 days without redeploying containers. Which solution meets these requirements?

Published · Last updated · checked before publication — how we verify questions

Options

  • AStore the credentials in AWS Secrets Manager with automatic 30-day rotation enabled and fetch them at runtimeCorrect answer
  • BStore the password in AWS Systems Manager Parameter Store standard parameters and enable 30-day key rotation
  • CEncrypt the database password with an AWS KMS customer-managed key and enable automatic annual key rotation
  • DPass the encrypted password through the ECS task definition environment block and refresh tasks monthly

Answer: A. Store the credentials in AWS Secrets Manager with automatic 30-day rotation enabled and fetch them at runtime

AWS Secrets Manager natively supports scheduled Lambda-backed rotation for Amazon Aurora credentials and lets applications fetch the current secret value at runtime. Parameter Store standard parameters do not provide native automatic credential rotation, KMS encrypts keys rather than rotating database passwords, and environment variables baked into task definitions require task redeployment.

Why the other options are wrong

  • B. Store the password in AWS Systems Manager Parameter Store standard parameters and enable 30-day key rotation — Systems Manager Parameter Store does not natively rotate database credentials on a schedule without custom automation.
  • C. Encrypt the database password with an AWS KMS customer-managed key and enable automatic annual key rotation — KMS key rotation rotates the backing cryptographic key material annually, not the database user password every 30 days.
  • D. Pass the encrypted password through the ECS task definition environment block and refresh tasks monthly — Updating task definitions and restarting containers violates the requirement to rotate credentials without redeploying tasks.

All Design Secure Architectures questions and the topic overview →

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.