exam questions

Exam ANS-C00 All Questions

View all questions & answers for the ANS-C00 exam

Exam ANS-C00 topic 1 question 72 discussion

Exam question from Amazon's ANS-C00
Question #: 72
Topic #: 1
[All ANS-C00 Questions]

An organization is using a VPC endpoint for Amazon S3. When the security group rules for a set of instances were initially configured, access was restricted to allow traffic only to the IP addresses of the Amazon S3 API endpoints in the region from the published JSON file. The application was working properly, but now is logging a growing number of timeouts when connecting with Amazon S3. No internet gateway is configured for the VPC.
Which solution will fix the connectivity failures with the LEAST amount of effort?

  • A. Create a Lambda function to update the security group based on AmazonIPSpaceChanged notifications.
  • B. Update the VPC routing to direct Amazon S3 prefix-list traffic to the VPC endpoint using the route table APIs.
  • C. Update the application server's outbound security group to use the prefix-list for Amazon S3 in the same region.
  • D. Create an additional VPC endpoint for Amazon S3 in the same route table to scale the concurrent connections to Amazon S3.
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
Neil101
Highly Voted 3 years, 9 months ago
'LEAST EFFORT' - Good luck with answer A :) Start coding and sledgehammer to crack a walnut or click, click, click, next, done, take your pick.... 'Modifying Your Security Group - If the VPC security group associated with your instance restricts outbound traffic, you must add a rule to allow traffic destined for the AWS service to leave your instance. To add an outbound rule for a gateway endpoint Open the Amazon VPC console at https://console.aws.amazon.com/vpc/. In the navigation pane, choose Security Groups. Select your VPC security group, choose the Outbound Rules tab, and then choose Edit. Select the type of traffic from the Type list, and enter the port range, if required. For example, if you use your instance to retrieve objects from Amazon S3, choose HTTPS from the Type list. For Destination, start entering pl- to display a list of prefix list IDs and names for the available AWS services. Choose the prefix list ID for the AWS service, or enter it. Choose Save.' https://docs.aws.amazon.com/vpc/latest/userguide/vpce-gateway.html
upvoted 15 times
StelSen
3 years, 8 months ago
Yes. And your Answer is: C
upvoted 2 times
...
...
2cool2touch
Highly Voted 3 years, 9 months ago
Its C. They say that when the SG was made, they looked at the IPs published in the Prefix list at the time. These IPs change hence they recommend never to put IPs manually and use the prefix list instead. Hence, C is the right approach to use the prefix-list so when the IPs change, they will be automatically updated by AWS.
upvoted 11 times
ETET
3 years, 9 months ago
A should be right, after reading this article https://aws.amazon.com/blogs/aws/subscribe-to-aws-public-ip-address-changes-via-amazon-sns/ I was supporting C, but found security group can only use "IP, CIDR and Security Group" as destination, prefix-list is not a option.
upvoted 2 times
guruguru
3 years, 9 months ago
You can just try to modify the security group on your own... I tried it, and can add the prefix-list to the security group. Hence, the answer is C.
upvoted 2 times
...
...
...
Raphaello
Most Recent 1 year, 2 months ago
Selected Answer: C
Between A and C. It was working correctly, but now there is a growing number of timeouts. There must be some changes. C is precise. A implies there were changes.
upvoted 1 times
...
PorkChop1999
1 year, 3 months ago
Selected Answer: C
C is indeed the simplest option.
upvoted 1 times
...
lemist
3 years ago
Selected Answer: C
The default outbound rule allows all outbound traffic. If the security group has more restrictive rules than the default outbound rule, then add one of the following: An outbound rule allowing traffic to the ID of the prefix list associated with the gateway VPC endpoint. An outbound rule with Destination set to the VPC endpoint for Amazon S3.
upvoted 1 times
...
MohamedSherif1
3 years, 1 month ago
C. Update the application server's outbound security group to use the prefix-list for Amazon S3 in the same region.
upvoted 1 times
...
clooudy
3 years, 1 month ago
Selected Answer: C
answer is C
upvoted 2 times
...
kuperi
3 years, 2 months ago
C is correct. Using IP Prefix will solve the problem completely as prefix is automatically updated
upvoted 1 times
...
scottkerker
3 years, 4 months ago
Since the key target is the LEAST amount of work to do, updating the SG with the latest prefix list manually can only fix one time. And the subscription to AWS public address changes via Amazon SNS with a Lambda function to update the SG needs only one-time effort and after this work, the whole progress will be automatic.
upvoted 1 times
otisilva
2 years, 8 months ago
agreed. best answer should be A
upvoted 1 times
...
...
borisgor
3 years, 6 months ago
Selected Answer: A
Least amount of work , updating SG whenever IPs change (C) or via automation doing only once(A). It says it was working fine but recently became , so means IPs may change dynamically again. If you sum all manual jobs on SG update and compares one-time job with lambda , I would say certainly A
upvoted 2 times
...
NSF2
3 years, 8 months ago
A seem to be the answer. Although C appears to be correct, specifying CIDR doesn't make any difference address changes at AWS end as JASON file usually consist of CIDRs along with some specific subnets. You can create a SNS topic to for JASON file update and SNS can trigger lambda to change SGs.
upvoted 1 times
...
Huntkey
3 years, 8 months ago
Just tried. In the SG you can select the pl-68a54001 as a destination for reaching the S3 gateway endpoint service. It is the same pl-68a54001 in the route-table for the endpoint service
upvoted 2 times
...
sairam
3 years, 8 months ago
The question clearly states " No internet gateway is configured for the VPC". This suggests no internet connection,so how lambda update of the SG can happen ? Not sure whether A or C is the right choice
upvoted 1 times
...
jason2009
3 years, 8 months ago
https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html C
upvoted 4 times
...
codebynumbers
3 years, 8 months ago
Answers should be C. Look at section "Modifying your security group" https://docs.aws.amazon.com/vpc/latest/userguide/vpce-gateway.html
upvoted 1 times
...
Justu
3 years, 8 months ago
Correct answer is C: https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html C is LEAST amount of effort. There is S3 gateway endpoint which ip-prefix list can be referenced in SG. Option A can be done, but it's more effort and includes all Amazon public ip addresses changes, not only for S3 Endpoint gateway.
upvoted 1 times
...
asdf99
3 years, 8 months ago
https://aws.amazon.com/blogs/security/how-to-automatically-update-your-security-groups-for-amazon-cloudfront-and-aws-waf-by-using-aws-lambda/ A is the correct one for me
upvoted 1 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 ...