DBS-C01 Database Security Practice Question
A company is using DynamoDB with a VPC endpoint. They want to restrict access to only requests originating from their VPC. Which policy condition should be used?
⚠ Common exam trap
Many candidates confuse 'aws:SourceVpc' (which restricts by VPC ID but is not supported for VPC endpoint policies) with 'aws:SourceVpce' (the correct key for endpoint-level restrictions), leading them to pick Option D instead of A.
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': 'vpce-12345678'
The 'aws:SourceVpce' condition key allows you to restrict access to requests originating from a specific VPC endpoint (interface endpoint) in your VPC. This ensures that only traffic coming through that VPC endpoint can access the DynamoDB table, providing a network-level security boundary. The condition must reference the exact VPC endpoint ID (e.g., 'vpce-12345678') to enforce this restriction.
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:SourceVpce': 'vpce-12345678'
Why this is correct
This condition ensures requests come only from the specified VPC endpoint.
- ✗
'aws:VpcSourceIp': '10.0.0.0/16'
Why it's wrong here
VpcSourceIp is not a condition key.
- ✗
's3:x-amz-server-side-encryption': 'AES256'
Why it's wrong here
This is S3-specific encryption condition.
- ✗
'aws:SourceVpc': 'vpc-12345678'
Why it's wrong here
'aws:SourceVpc' is not a valid condition key for DynamoDB.
Go deeper
Related to this question
About these practice questions
One of 1,663 original DBS-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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DBS-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 DBS-C01 exam.