passdrill
AWS SAA-C03 · S3 & Storage · Card 043/044 medium

A company routes all of its EC2 traffic to a particular S3 bucket through one specific gateway VPC endpoint and wants to deny every request to that bucket that does not arrive through that exact endpoint, including requests made from the AWS Management Console or from outside the VPC entirely. Which bucket policy element achieves this?

  1. A Deny statement using a StringNotEquals condition on the aws:SourceVpce key, matching everything except that endpoint's ID
  2. An Allow statement naming the VPC endpoint's ARN as the policy Principal
  3. An S3 Object Lock configuration referencing the VPC endpoint ID
  4. A CORS rule restricting AllowedOrigins to the VPC endpoint's DNS name
Next card → Shuffle