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 297 discussion

A company has deployed an application on Amazon EC2 instances in a single VPC. The company has placed the EC2 instances in a private subnet in the VPC.

The EC2 instances need access to Amazon S3 buckets that are in the same AWS Region as the EC2 instances. A SysOps administrator must provide the EC2 instances with access to the S3 buckets without requiring any changes to the EC2 instances or the application. The EC2 instances must not have access to the internet.

Which solution will meet these requirements?

  • A. Create an S3 gateway endpoint that uses the default gateway endpoint policy. Associate the private subnet with the gateway endpoint.
  • B. Create an S3 interface endpoint. Associate the EC2 instances with the interface endpoint.
  • C. Configure a NAT gateway. Associate the private subnet with the NAT gateway.
  • D. Configure a proxy EC2 instance. Update the private subnet route tables to route traffic through the proxy EC2 instance. Configure the proxy to route all S3 requests to the target S3 bucket.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
noahsark
Highly Voted 11 months, 3 weeks ago
Selected Answer: A
Create an S3 gateway endpoint that uses the default gateway endpoint policy. Associate the private subnet with the gateway endpoint. Notes: Amazon S3 supports both gateway endpoints and interface endpoints. With a gateway endpoint, you can access Amazon S3 from your VPC, without requiring an internet gateway or NAT device for your VPC, and with no additional cost. However, gateway endpoints do not allow access from on-premises networks, from peered VPCs in other AWS Regions, or through a transit gateway. For those scenarios, you must use an interface endpoint, which is available for an additional cost. https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html Interface endpoints - These endpoints are directly accessible from applications that are on premises over VPN and AWS Direct Connect, or in a different AWS Region over VPC peering. https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html
upvoted 9 times
...
maddyr
Highly Voted 10 months, 3 weeks ago
Selected Answer: A
same s3 region - use gateway endpoint another s3 region - use interface endpoint https://aws.amazon.com/blogs/architecture/choosing-your-vpc-endpoint-strategy-for-amazon-s3/
upvoted 5 times
...
numark
Most Recent 2 days, 7 hours ago
Selected Answer: A
gateway is for inside the VPC and Interface is for Outside the VPC.
upvoted 1 times
...
klayytech
2 months, 2 weeks ago
Selected Answer: A
Gateway Endpoint: Free to use Interface Endpoint: $0.01 per hour per Availability Zone (AZ) with additional charges of $0.01 per GB of data transferred (depending on region) Connectivity: Gateway Endpoint: Limited to access within the same region and VPC. Does not allow access from on-premises networks, peered VPCs in other regions, or through a transit gateway. Interface Endpoint: More flexible, allowing access from your VPC, peered VPCs in other regions, on-premises networks, and through a transit gateway. Use Cases: Gateway Endpoint: Ideal for simple setups within a single region where cost is a major concern. Interface Endpoint: Better suited for complex network architectures, cross-region access, or when you need to connect to other AWS services besides S3.
upvoted 2 times
...
TareDHakim
5 months, 1 week ago
Selected Answer: A
Gateway Endpoint is the right answer. Interface Endpoints offer more connectivity options at much higher cost!
upvoted 2 times
...
r2c3po
5 months, 2 weeks ago
Selected Answer: B
S3 Interface Endpoint (Gateway VPC Endpoint): This allows communication between resources in your VPC and Amazon S3, without relying on internet access. Interface endpoints are powered by AWS PrivateLink and provide a secure connection over the AWS global network. It does not require a NAT gateway or a proxy EC2 instance. Private Subnet Association: By associating the EC2 instances with the interface endpoint, you enable them to communicate with S3 securely without internet access.
upvoted 3 times
...
xile1021
8 months, 1 week ago
Selected Answer: A
A This option, utilizing an S3 gateway endpoint, is designed for secure and private communication between a VPC and S3 over Direct Connect or VPN connections without requiring changes to the instances or applications. It allows EC2 instances in the private subnet to access S3 securely without using the public internet and does not require modifications to the instances or applications. Option B (S3 interface endpoint) is also a valid choice, but it's typically used for private VPC-to-S3 communication within the AWS network. However, it still requires creating an interface endpoint and associating EC2 instances with it.
upvoted 2 times
...
lluukkyy
11 months ago
Selected Answer: A
A makes more sense
upvoted 2 times
...
TQM__9MD
11 months, 2 weeks ago
Selected Answer: B
The solution that meets these requirements is option B. In option B, you would create an S3 interface endpoint and associate the EC2 instance with that interface endpoint. The S3 interface endpoint provides a private connection for accessing the S3 bucket directly from within the VPC. This solution allows the EC2 instance to access the S3 bucket without requiring internet access. Option A suggests using an S3 gateway endpoint with a default gateway endpoint policy. While the gateway endpoint provides a private connection for S3 object operations, it does not provide direct file system-level access from the EC2 instance.
upvoted 2 times
...
jas26says
11 months, 4 weeks ago
Answer is A. Gateway endpoint purpose is to provide access to S3 without giving access to the internet. https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjlmd3xgNP_AhXSSDABHeCrDTwQFnoECBgQAQ&url=https%3A%2F%2Fdocs.aws.amazon.com%2Fvpc%2Flatest%2Fprivatelink%2Fvpc-endpoints-s3.html&usg=AOvVaw0FB63FuHzsLuHYlvNgB-rW&opi=89978449
upvoted 2 times
...
Gomer
1 year ago
Selected Answer: B
I think both A and B could provide EC2 access to S3. However, I found gateway endpoint is only associated with a VPC, not a subnet. The Interface Endpoint is associated with a subnet. Secondly, I don't think the default endpoint policy is sufficient. "ensure that your endpoint policy allows the AWS service or resource to access these buckets using the s3:GetObject action" To me, the answer has to be "B". Its a tough question (at least for me) https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html#types-of-vpc-endpoints-for-s3
upvoted 3 times
eboehm
10 months, 3 weeks ago
While I agree that you are right about the use of the default endpoint policy not being sufficient and kinda is throwing me off as well. I am still going to go with A because it states they want no change to the EC2 instances. A gateway endpoint is done with a route entry
upvoted 2 times
...
...
Nrn143
1 year ago
A The EC2 instances must not have access to the internet, so gateway and point
upvoted 3 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