Courseiva

SCS-C02 Identity and Access Management Practice Question

A security engineer is reviewing an IAM policy that grants permissions to an IAM user. The policy includes the following statement: { "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::example-bucket/*" }. The engineer wants to ensure that the user can only access objects in the bucket when the request originates from a specific VPC endpoint. Which additional element should the engineer add to the policy?

⚠ Common exam trap

Many candidates confuse network-based conditions like aws:SourceIp with endpoint-specific conditions, when only aws:SourceVpce can precisely limit access to a particular VPC endpoint.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

A condition that checks aws:SourceVpce against the VPC endpoint ID.

The aws:SourceVpce condition key is used to allow or deny access based on the VPC endpoint through which the request is made. By including this condition in the IAM policy, the engineer ensures that only requests routed through the specified VPC endpoint can access the S3 objects. This is a common pattern for restricting access to private network paths.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    A condition that checks aws:RequestedRegion against the region of the VPC endpoint.

    Why it's wrong here

    The aws:RequestedRegion condition restricts access to a specific AWS region, but it does not verify that the request comes through a VPC endpoint. An attacker could still access the bucket from within the same region using the public internet, so this condition does not satisfy the requirement to restrict access to a specific VPC endpoint.

  • ✗

    A condition that checks aws:PrincipalOrgID against the organization ID.

    Why it's wrong here

    The aws:PrincipalOrgID condition restricts access to principals within a specific AWS Organization, but it does not ensure that requests originate from a VPC endpoint. This condition is useful for cross-account access control but does not address the requirement to limit access based on the network path through a VPC endpoint.

  • ✗

    A condition that checks aws:SourceIp against the VPC CIDR range.

    Why it's wrong here

    The aws:SourceIp condition checks the IP address of the requester, but requests through a VPC endpoint use private IP addresses from the VPC. While this could restrict access to the VPC's CIDR, it does not specifically enforce that the request comes through a VPC endpoint, and it may not work reliably with S3 gateway endpoints.

  • ✓

    A condition that checks aws:SourceVpce against the VPC endpoint ID.

    Why this is correct

    The aws:SourceVpce condition key can be used to restrict access to requests that come through a specific VPC endpoint. Adding this condition ensures that the user can only access objects when the request originates from that endpoint, meeting the requirement to limit access to a specific VPC endpoint.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every SCS-C02 question from scratch — 1,205 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This SCS-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C02 exam.