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

A security engineer is trying to use Amazon EC2 Image Builder to create an image of an EC2 instance. The security engineer has configured the pipeline to send logs to an Amazon S3 bucket. When the security engineer runs the pipeline, the build fails with the following error: "AccessDenied: Access Denied status code: 403".

The security engineer must resolve the error by implementing a solution that complies with best practices for least privilege access.

Which combination of steps will meet these requirements? (Choose two.)

Answer options

Correct answer: B, E

Explanation

The correct answers, B and E, ensure that the EC2 instance has the necessary permissions to execute the image build and write logs to the S3 bucket while adhering to least privilege principles. Options A and C do not address the specific permissions required for the instance profile, and options D does not provide the required permissions to the instance profile itself.