A developer attaches this IAM policy to an IAM user. The user tries to upload an object to the S3 bucket my-bucket from an IP address of 10.0.1.5. What will happen?
The condition restricts to 10.0.0.0/24; 10.0.1.5 is not in that range.
Why this answer
Option D is correct because the condition restricts access to the IP range 10.0.0.0/24. The user's IP 10.0.1.5 is outside that range, so the request will be denied. Option A is wrong because even though the action is allowed, the condition denies it.
Option B is wrong because the condition is evaluated and denies the request. Option C is wrong because the condition is valid.