AWS Certified Security – Specialty (SCS-C02) — Question 286
A company has an organization in AWS Organizations. The organization consists of multiple OUs. The company must prevent IAM principals from outside the organization from accessing the organization’s Amazon S3 buckets. The solution must not affect the existing access that the OUs have to the S3 buckets.
Which solution will meet these requirements?
Answer options
- A. Configure S3 Block Public Access for all S3 buckets.
- B. Configure S3 Block Public Access for all AWS accounts.
- C. Deploy an SCP that includes the “aws:ResourceOrgPaths”: “${aws:PrincipalOrgPaths}” condition.
- D. Deploy an SCP that includes the “aws:ResourceOrgID”: “${aws:PrincipalOrgID}" condition.
Correct answer: D
Explanation
To restrict resource access to within the same AWS Organization, a Service Control Policy (SCP) can be used to compare the resource's organization ID with the principal's organization ID using the "aws:ResourceOrgID": "${aws:PrincipalOrgID}" condition. S3 Block Public Access options only prevent anonymous public access and do not block authenticated external IAM principals. Using aws:PrincipalOrgPaths would restrict access based on specific OU paths rather than the entire organization, potentially disrupting required access across different OUs.