Courseiva

DEA-C01 Data Security and Governance Practice Question

A company needs to share a dataset stored in an S3 bucket with a partner account. The dataset contains sensitive information, so the company wants to ensure that the partner account can only access the data using a specific VPC endpoint in the partner's account. Which S3 bucket policy condition key should be used?

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

✓

aws:SourceVpce

The aws:SourceVpce condition key restricts access to a specific VPC endpoint, ensuring the partner can only access the data through that endpoint. Option A is wrong because aws:SourceVpc restricts to a VPC, not a VPC endpoint. Option B is wrong because aws:SourceArn restricts to a resource ARN, not a network endpoint. Option C is wrong because aws:SourceIp restricts to an IP address, which does not meet the requirement.

Answer analysis

Option-by-option breakdown

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

  • ✗

    aws:SourceVpc

    Why it's wrong here

    aws:SourceVpc matches the VPC ID, which is only populated for requests through a VPC endpoint in the bucket owner's account, not the partner's. It is tempting because it sounds endpoint-specific, but the partner's endpoint requires aws:SourceVpce to pin the exact endpoint.

  • ✗

    aws:SourceArn

    Why it's wrong here

    aws:SourceArn identifies the ARN of the originating resource, not the network path, so it cannot restrict access to a specific VPC endpoint. It is tempting because it genuinely scopes cross-account access to a named source resource, which is the right control when you must limit which bucket or service is invoking a role.

  • ✗

    aws:SourceIp

    Why it's wrong here

    aws:SourceIp matches the caller's IP address, which for VPC endpoint traffic is the endpoint's private address, not a stable identifier the partner controls. It is tempting for restricting access to known networks, but aws:SourceVpce names the specific endpoint and is the correct condition here.

  • ✓

    aws:SourceVpce

    Why this is correct

    The `aws:SourceVpce` condition key restricts access to requests arriving through a named VPC endpoint, satisfying the requirement that the partner reach the bucket only via their specific endpoint. Because it evaluates the endpoint ID itself, requests from any other endpoint or the public internet are denied, even if the partner's IAM permissions allow S3 access.

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

One of 1,321 original DEA-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DEA-C01 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 DEA-C01 exam.