AWS Certified Data Engineer Associate DEA-C01 Practice Question
An organization runs an Amazon EMR cluster in a private subnet. The cluster uses a gateway VPC endpoint (vpce-1234) to read and write data in the analytics S3 bucket. Security requires that only the IAM role emrAnalyticsRole attached to the cluster can reach Amazon S3 through the endpoint. Other principals in the VPC must be blocked, without modifying bucket policies. What should a data engineer do to meet these requirements?
Configure a custom policy on gateway endpoint vpce-1234 that allows full S3 access only when aws:PrincipalArn equals arn:aws:iam:::role/emrAnalyticsRole and implicitly denies all other principals.
Attach an inline IAM policy to the emrAnalyticsRole that grants s3:ListBucket and s3:GetObject on the analytics bucket.
Modify the security group of the EMR cluster to allow outbound traffic only to the S3 prefix list and remove that rule from other instances.
Add a bucket policy to the analytics bucket that denies access unless aws:SourceVpce equals vpce-1234.
A VPC endpoint policy is a resource-based IAM policy that governs who can invoke the endpoint. By attaching a custom policy to vpce-1234 that allows S3 actions only when the request's aws:PrincipalArn matches arn:aws:iam:::role/emrAnalyticsRole, the engineer enforces least privilege at the network boundary. Principals whose ARN does not match are denied automatically. An inline policy on the role cannot stop other principals from using the endpoint, a bucket policy change violates the stated constraint, and security-group rules filter network traffic but do not control IAM authorization. Therefore configuring the endpoint policy with an aws:PrincipalArn condition is the only solution that satisfies all requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a VPC endpoint policy?
Open an interactive chat with Bash
How does the aws:PrincipalArn condition work in IAM policies?
Open an interactive chat with Bash
Why can't bucket policies or security group rules meet the requirements in this scenario?
Open an interactive chat with Bash
What is a VPC endpoint policy?
Open an interactive chat with Bash
Why can't an inline IAM policy on emrAnalyticsRole stop other principals from using the endpoint?
Open an interactive chat with Bash
How does the aws:PrincipalArn condition in the endpoint policy work?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Security and Governance
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .