exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 253 discussion

A SysOps administrator configures an Amazon S3 gateway endpoint in a VPC. The private subnets inside the VPC do not have outbound internet access. User logs in to an Amazon EC2 instance in one of the private subnets and cannot upload a file to an Amazon S3 bucket in the same AWS Region.

Which solution will solve this problem?

  • A. Update the EC2 instance role policy to include s3:PutObject access to the target S3 bucket.
  • B. Update the EC2 security group to allow outbound traffic to 0.0.0.0/0 for port 80.
  • C. Update the EC2 subnet route table to include the S3 prefix list destination routes to the S3 gateway endpoint.
  • D. Update the S3 bucket policy to allow s3:PutObject access from the private subnet CIDR block.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Christina666
Highly Voted 1 year, 9 months ago
Selected Answer: C
https://repost.aws/knowledge-center/connect-s3-vpc-endpoint#:~:text=An%20outbound%20rule%20allowing%20traffic%20to%20the%20ID%20of%20the%20prefix%20list%20associated%20with%20the%20gateway%20VPC%20endpoint.
upvoted 5 times
...
csG13
Highly Voted 2 years, 1 month ago
Selected Answer: C
It’s C - subnet route table must have an entry pointing to the VPC gateway prefix.
upvoted 5 times
...
numark
Most Recent 4 months, 4 weeks ago
Selected Answer: C
WNhay Not D>>While this could be part of a broader solution to ensure that the S3 bucket accepts uploads from the instances in the private subnet, this step alone does not solve the connectivity issue. The EC2 instance must be able to reach the S3 bucket, which is a matter of network configuration, not bucket policy.
upvoted 1 times
...
VerRi
9 months, 1 week ago
Selected Answer: C
It should be C
upvoted 2 times
...
bae0fd3
9 months, 2 weeks ago
Selected Answer: C
C makes the most sense here.
upvoted 2 times
...
Student013657
10 months, 3 weeks ago
Selected Answer: C
When an Amazon S3 gateway endpoint is configured in a VPC, the private subnets within the VPC need to have their route tables updated to route the S3 traffic to the gateway endpoint, instead of the internet. Without the appropriate route table updates, the EC2 instance in the private subnet will not be able to communicate with the S3 bucket, even if the instance has the necessary S3 permissions. Option A is incorrect because the issue is not related to the IAM role permissions, but rather the routing configuration. Option B is incorrect because allowing outbound traffic to 0.0.0.0/0 on port 80 is not necessary to solve this problem. The issue is with the routing to the S3 gateway endpoint, not the internet access. Option D is incorrect because the S3 bucket policy is not the issue here. The problem is with the routing, not the permissions on the S3 bucket.
upvoted 2 times
...
noircesar25
11 months, 2 weeks ago
Why Option C is Essential: Directing Traffic to S3: Without the correct route in the subnet’s route table, the instance cannot send traffic to S3 because it doesn’t know that it should use the gateway endpoint. Using the Gateway Endpoint: The S3 gateway endpoint enables access to S3 without internet. For this to work, the route table must have a route for the S3 prefix list pointing to the endpoint. Why Option D Alone is Insufficient: Access Control vs. Network Path: S3 Bucket Policy: Controls who (or what) can access the bucket and perform specific actions (e.g., s3:PutObject). While necessary for access control, it does not configure the network path needed for the EC2 instance to reach S3. Network Configuration: Ensures that there is a valid route for the traffic from the EC2 instance to S3.
upvoted 1 times
...
pekalyok
11 months, 3 weeks ago
Selected Answer: C
To resolve the issue where a user cannot upload a file to an Amazon S3 bucket from an Amazon EC2 instance in a private subnet without outbound internet access, even with an S3 gateway endpoint configured, you should: C. Update the EC2 subnet route table to include the S3 prefix list destination routes to the S3 gateway endpoint. The primary step needed here is to ensure that the route table associated with the private subnet where the EC2 instance resides correctly routes S3 traffic to the S3 gateway endpoint, enabling secure, private connectivity to S3.
upvoted 2 times
...
Koshi202
1 year ago
Selected Answer: C
WHY NOT A or D. the issue is related to network connectivity, not permissions.
upvoted 3 times
tgv
1 year ago
not necessarily. the question says the user cannot upload. the first thing I would check is obviously the bucket policy. being in a private subnet and using a S3 endpoint doesn't rely much on the network connectivity, does it?
upvoted 2 times
...
...
March2023
1 year, 1 month ago
Selected Answer: C
The answer is C: Each subnet route table must have a route that sends traffic destined for the service to the gateway endpoint using the prefix list for the service https://docs.aws.amazon.com/vpc/latest/privatelink/gateway-endpoints.html
upvoted 2 times
...
TareDHakim
1 year, 3 months ago
Selected Answer: A
A - you need access to allow upload Put object. why not D ? well this is a potential cause, however, when you create S3 Gateway Endpoint you can associate your subnets and that creates a route automatically. https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html#create-gateway-endpoint-s3:~:text=For%20Route%20tables%2C%20select%20the%20route%20tables%20to%20be%20used%20by%20the%20endpoint.%20We%20automatically%20add%20a%20route%20that%20points%20traffic%20destined%20for%20the%20service%20to%20the%20endpoint%20network%20interface. Why not C ? Once traffic is routed via the S3 Gateway endpoint, then the private subnet CIDR is irrelevant.
upvoted 2 times
...
konieczny69
1 year, 4 months ago
Why not A? Its actually A and C.
upvoted 1 times
...
Hudescu
1 year, 4 months ago
Selected Answer: D
When you create a gateway endpoint, you select the VPC route tables for the subnets that you enable. The following route is automatically added to each route table that you select. The destination is a prefix list for the service owned by AWS and the target is the gateway endpoint.
upvoted 3 times
...
DeaconStJohn
1 year, 5 months ago
Selected Answer: D
I tackled a similar issue in work this week and I still couldn't confidently answer this. I click-ops a dummy network my findings: routes are by default, VPC -> local prefix list would apply to a SG. Endpoint policy by default allows absolutely everything. By default an s3 bucket has no policy.
upvoted 3 times
...
callspace
1 year, 6 months ago
Selected Answer: D
In the question As the SysOps admin already configures an Amazon S3 gateway endpoint in a VPC then Updating the EC2 subnet route table to include the S3 prefix list destination routes to the S3 gateway endpoint is not required. So just Update the S3 bucket policy to allow s3:PutObject access from the private subnet CIDR block.
upvoted 3 times
...
TwinSpark
1 year, 7 months ago
Selected Answer: D
"For Route tables, select the route tables to be used by the endpoint. We automatically add a route that points traffic destined for the service to the endpoint network interface." https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html#associate-route-tables-s3 So route should be already enable by default, Change need to bedone in s3 bucket policy
upvoted 4 times
...
jipark
1 year, 8 months ago
Selected Answer: D
why not C : route cannot solve issue (security or policy grant needed)
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago