AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 194

A company's organization in AWS Organizations has a single OU. The company runs Amazon EC2 instances in the OU accounts. The company needs to limit the use of each EC2 instance’s credentials to the specific EC2 instance that the credential is assigned to. A DevOps engineer must configure security for the EC2 instances.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer, B, effectively ensures that the source VPC and private IP of the EC2 instance are consistently validated against the context of the request, which aligns with limiting credentials to their respective instances. Options A and C introduce unnecessary complexity or incorrect conditions, while D applies the SCP too broadly by affecting all accounts instead of just the OU.