Medium1 markMultiple Choice
Domain 2.3: Security ControlsSecuritySecrets ManagerIAM

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

A company is designing a highly secure environment on AWS. They need to store sensitive database credentials. The credentials must be rotated automatically every 30 days. The application running on EC2 needs to retrieve these credentials securely without hardcoding them. Which combination of steps should be taken? (Select TWO)

Answer options:

A.

Store the credentials in AWS Systems Manager Parameter Store as a SecureString.

B.

Store the credentials in AWS Secrets Manager and configure automatic rotation.

C.

Assign an IAM role to the EC2 instance with permissions to read the secret from Secrets Manager.

D.

Store the credentials in an encrypted S3 bucket.

E.

Embed the credentials in the AMI used by the EC2 instances.

F.

Use AWS KMS to rotate the credentials.

How to approach this question

Identify the service for secret rotation and the method for secure access.

Full Answer

Store the credentials in AWS Secrets Manager and configure automatic rotation., Assign an IAM role to the EC2 instance with permissions to read the secret from Secrets Manager.
AWS Secrets Manager is designed specifically for storing and automatically rotating secrets like database credentials. EC2 instances should use IAM roles (instance profiles) to securely retrieve these secrets via the API.

Common mistakes

Choosing Parameter Store, which lacks native automatic rotation capabilities.

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

75 questions · hints · full answers · grading

More questions from this exam