Practice free →
HomeAWS Developer Associatecloudcomputingawsdevsecurity › An S3 bucket policy grants `s3:GetObject` only w…

An S3 bucket policy grants `s3:GetObject` only when the request includes a specific VPC endpoint condition. What does this restriction accomplish?

APrevents the AWS root account from ever reading the bucket
BAllows reads only via the configured VPC endpoint, blocking access from the public internet or other VPCs
CReduces the storage cost of the bucket by 50%
DForces all reads to occur on Sundays only
Answer & Solution
Correct answer: B. Allows reads only via the configured VPC endpoint, blocking access from the public internet or other VPCs
Conditioning on `aws:SourceVpce` confines reads to traffic flowing through that VPC endpoint — useful for keeping data on the AWS private network. The other options misstate IAM or pricing.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions