Medium1 markMultiple Choice
Domain 2.3: Security ControlsSecrets ManagerCloudFormationSecurity

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

A company is deploying a new application using AWS CloudFormation. They need to ensure that sensitive parameters, such as database passwords, are not hardcoded in the templates and are rotated automatically every 30 days. Which THREE actions should they take? (Select THREE)

Answer options:

A.

Store the passwords in AWS Systems Manager Parameter Store as SecureString.

B.

Store the passwords in AWS Secrets Manager.

C.

Use CloudFormation parameters with NoEcho set to true to pass passwords during stack creation.

D.

Configure an AWS Lambda function to handle the rotation logic for Secrets Manager.

E.

Hardcode the passwords in a private S3 bucket and reference them in CloudFormation.

F.

Use dynamic references in the CloudFormation template to retrieve the secrets from Secrets Manager.

G.

Use AWS KMS to rotate the passwords.

How to approach this question

Identify the service for secret rotation and how CloudFormation integrates with it.

Full Answer

B,D,F
AWS Secrets Manager handles secret storage and automated rotation (via Lambda). CloudFormation uses dynamic references to securely fetch these secrets during stack deployment without exposing them.

Common mistakes

Choosing Parameter Store, which lacks native automated rotation capabilities.

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

75 questions · hints · full answers · grading

More questions from this exam