Courseiva
Network Security, Compliance and GovernancehardMultiple ChoiceObjective-mapped

ANS-C01 Network Security, Compliance and Governance Practice Question

Network Topology
$ aws ec2 describe-vpc-endpointsvpc-endpoint-ids vpce-12345678Refer to the exhibit.Exhibit (AWS CLI output):"VpcEndpoints": ["VpcEndpointId": "vpce-12345678","VpcEndpointType": "Gateway","ServiceName": "com.amazonaws.us-east-1.s3","VpcId": "vpc-0a1b2c3d4e5f6g7h8","RouteTableIds": ["rtb-12345678"],"PolicyDocument": {"Version": "2012-10-17","Statement": ["Effect": "Allow","Principal": "*","Action": ["s3:GetObject"],"Resource": ["arn:aws:s3:::my-bucket/*"],"Condition": {"StringEquals": {"aws:SourceVpc": "vpc-0a1b2c3d4e5f6g7h8"},"CreationTimestamp": "2023-01-01T00:00:00Z"

A network engineer has created a gateway VPC endpoint for S3 as shown in the exhibit. The endpoint is associated with route table rtb-12345678. An EC2 instance in a subnet that uses route table rtb-12345678 tries to download an object from my-bucket. The request fails with an access denied error. Which change should the engineer make to resolve the issue?

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

Add a route in route table rtb-12345678 that sends traffic to the S3 service via the VPC endpoint.

The endpoint policy requires the aws:SourceVpc condition to match the VPC ID, but the condition key is misspelled or the value is incorrect? Actually, the condition is correct. However, the error is likely because the route table does not have a route to the endpoint. Gateway endpoints require a route in the associated route table that points to the endpoint. Option A is wrong because the endpoint policy already allows s3:GetObject. Option B is wrong because the endpoint is already associated with the route table. Option C is wrong because the bucket policy is not shown; but the issue is likely the route. Option D is correct: add a route to the S3 service in route table rtb-12345678.

Answer analysis

Option-by-option breakdown

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

  • Associate the endpoint with a different route table.

    Why it's wrong here

    The endpoint is already associated with the correct route table; the route table needs a route.

  • Add a bucket policy to my-bucket that allows access from the VPC endpoint.

    Why it's wrong here

    The endpoint policy already allows access; a bucket policy is not required, though it could be used.

  • Modify the endpoint policy to allow all S3 actions.

    Why it's wrong here

    The policy already allows s3:GetObject; the issue is not the action.

  • Add a route in route table rtb-12345678 that sends traffic to the S3 service via the VPC endpoint.

    Why this is correct

    Gateway endpoints require a route in the associated route table with destination the S3 prefix list and target the endpoint ID.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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

Courseiva writes every ANS-C01 question from scratch — 1,621 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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 ANS-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 ANS-C01 exam.