An application running in ECS Fargate behind an ALB stores database credentials inside the application. The company wants to store credentials more securely and enable periodic rotation with minimal operations effort. Which solution best meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Move credentials to AWS Secrets Manager, encrypt them with an AWS KMS key, enable secret rotation, and grant the ECS Fargate tasks IAM permissions to retrieve secrets from Secrets Manager..
Why this is the answer
AWS Secrets Manager is the most suitable service for securely storing and rotating database credentials. It integrates with AWS KMS for encryption, automatically rotates secrets, and allows fine-grained access control via IAM roles, ensuring only authorized ECS Fargate tasks can retrieve credentials. Incorrect options: Storing secrets in Amazon RDS parameter groups is not designed for application-level secret management and rotation. AWS Systems Manager Parameter Store can store secrets but lacks the built-in automatic rotation capabilities that Secrets Manager offers, requiring more operational effort for rotation. Storing credentials as ECS Fargate environment variables is insecure and does not provide encryption or automatic rotation, failing to meet the security and operational requirements.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed