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
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.
More Design Secure Architectures questions
- A security architect wants delegated product engineers to create IAM roles for their microservices inside an AWS…
- A financial company manages forty AWS accounts in AWS Organizations and wants developers to sign in with their…
- A regulated workload in a private subnet with no internet gateway or NAT gateway must call an internal SaaS partner…
- A company operates an Application Load Balancer and an Amazon CloudFront distribution for app.example.com. Security…
- A public REST API hosted on Amazon API Gateway and an Application Load Balancer experiences SQL injection attempts and…
- A compliance officer needs an automated service that uses machine learning and pattern matching to discover personally…
- A security team manages an AWS Organization and must ensure that no principal in any member account—including account…
- A healthcare workload stores regulated objects in an Amazon S3 bucket. Auditors require customer-controlled key…
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.