AWS Certified Solutions Architect – Professional — Question 721

A company had a third-party audit of its AWS environment. The auditor identified secrets in developer documentation and found secrets that were hardcoded into AWS CloudFormation templates throughout the environment. The auditor also identified security groups that allowed inbound traffic from the internet and outbound traffic to all destinations on the internet.

A solutions architect must design a solution that will encrypt all secrets and rotate the secrets every 90 days. Additionally, the solutions architect must configure the security groups to prevent resources from being accessible from the internet.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

AWS Secrets Manager is designed to securely store secrets, support automatic rotation (such as every 90 days), and integrate with AWS CloudFormation via dynamic references. AWS Firewall Manager can monitor and remediate security groups by removing noncompliant rules that allow open internet access (0.0.0.0/0). Options C and D are incorrect because security groups only support allow rules and cannot be configured with explicit deny rules, while Systems Manager Parameter Store does not natively support automated secrets rotation.