Easy1 markMultiple Choice
Domain 2.3: Security ControlsSecrets ManagerSecurityRDS

AWS SAP-C02 · Question 31 · Domain 2.3: Security Controls

A company is building a new application using AWS CDK. The application requires a database password to connect to Amazon RDS. The security team mandates that the password must be automatically rotated every 30 days without any application downtime. Which solution meets these requirements?

Answer options:

A.

Store the password in AWS Systems Manager Parameter Store as a SecureString. Use EventBridge to trigger a Lambda function for rotation.

B.

Store the password in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function.

C.

Store the password in AWS KMS and set the key rotation policy to 30 days.

D.

Hardcode the password in the CDK code and use a CI/CD pipeline to redeploy every 30 days.

How to approach this question

Identify the service specifically designed for database credential rotation.

Full Answer

B.Store the password in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function.✓ Correct
Store the password in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function.
AWS Secrets Manager is specifically designed to manage, retrieve, and automatically rotate database credentials. It provides built-in integration with Amazon RDS and uses Lambda functions to safely rotate the password without causing application downtime.

Common mistakes

Confusing KMS key rotation with database password rotation.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 4

75 questions · hints · full answers · grading

More questions from this exam