AWS Certified Security – Specialty (SCS-C02) — Question 172

A security engineer needs to run an AWS CloudFormation script. The CloudFormation script builds AWS infrastructure to support a stack that includes web servers and a MySQL database. The stack has been deployed in pre-production environments and is ready for production.

The production script must comply with the principle of least privilege. Additionally, separation of duties must exist between the security engineer’s IAM account and CloudFormation.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it ensures that the CloudFormation script can run with the minimum required permissions through a dedicated IAM role, maintaining the principle of least privilege and separation of duties. Options B and D provide broader permissions than necessary and do not enforce the separation of duties as clearly as option A. Option C does not create a role for the CloudFormation script, making it insufficient for the requirements.