Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Advanced Networking - Specialty ANS-C01 All Questions

View all questions & answers for the AWS Certified Advanced Networking - Specialty ANS-C01 exam

Exam AWS Certified Advanced Networking - Specialty ANS-C01 topic 1 question 19 discussion

A network engineer must develop an AWS CloudFormation template that can create a virtual private gateway, a customer gateway, a VPN connection, and static routes in a route table. During testing of the template, the network engineer notes that the CloudFormation template has encountered an error and is rolling back.
What should the network engineer do to resolve the error?

  • A. Change the order of resource creation in the CloudFormation template.
  • B. Add the DependsOn attribute to the resource declaration for the virtual private gateway. Specify the route table entry resource.
  • C. Add a wait condition in the template to wait for the creation of the virtual private gateway.
  • D. Add the DependsOn attribute to the resource declaration for the route table entry. Specify the virtual private gateway resource.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
devopsbro
Highly Voted 1 year, 8 months ago
D - Correct. Route table route entry can't reference the VPG if it is not available.
upvoted 12 times
...
Untamables
Highly Voted 1 year, 7 months ago
Selected Answer: D
D Reading all options, It seems that there is a problem of the run order for creating resources. According to the below AWS document, you must configure your route table to include the routes used by your Site-to-Site VPN connection and point them to your virtual private gateway. https://docs.aws.amazon.com/vpn/latest/s2svpn/SetUpVPNConnections.html That means you must create the virtual private gateway before creating the route table. AWS CloudFormation does not support configuring detailed run order of creating resources. However, when you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html
upvoted 9 times
...
Spaurito
Most Recent 2 weeks, 1 day ago
B - The stack should provision something like this VPGW -> CGW -> VPN -> RTs
upvoted 1 times
Spaurito
1 week, 1 day ago
Revisited - could be A but option D is correct https://docs.aws.amazon.com/vpn/latest/s2svpn/SetUpVPNConnections.html
upvoted 1 times
...
...
Spaurito
3 weeks ago
D -You can't add routes unless the route table is created first.
upvoted 1 times
...
Raphaello
7 months, 3 weeks ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
patanjali
8 months, 3 weeks ago
Selected Answer: D
You will DependsOn attribute is used in an AWS CloudFormation template. So, A and C cannot be answers. Option B is wrong because you will make route table change after you finish creating VPN tunnel. Hence, Option D is correct
upvoted 2 times
...
vikasj1in
9 months, 2 weeks ago
Selected Answer: D
The DependsOn attribute is used in an AWS CloudFormation template to specify the order of resource creation. When you specify a resource in the DependsOn attribute of another resource, AWS CloudFormation creates the specified resource first before creating the resource with the DependsOn attribute. In this case, the error might be occurring because the CloudFormation template is attempting to create the route table entry before the virtual private gateway is created. By adding the DependsOn attribute to the resource declaration for the route table entry and specifying the virtual private gateway resource, you ensure that the virtual private gateway is created before the route table entry. Option B is incorrect because adding DependsOn to the route table entry for the virtual private gateway is more appropriate than specifying the route table entry for the virtual private gateway.
upvoted 1 times
...
Marfee400704
9 months, 2 weeks ago
I think that it's correct answer is D according to SPOTO products.
upvoted 1 times
...
marfee
9 months, 3 weeks ago
I think that it's correcty answer is D.
upvoted 1 times
...
Arad
1 year, 1 month ago
Selected Answer: D
VGW must be created before RTB getting updated.
upvoted 1 times
...
Certified101
1 year, 4 months ago
Selected Answer: D
Option B suggests adding a "DependsOn" attribute to the VGW resource declaration with the route table entry as the dependency. However, this would mean that the VGW wouldn't be created until after the route table entry, which isn't possible because the route table entry points to the VGW. On the other hand, option D suggests adding a "DependsOn" attribute to the route table entry resource declaration with the VGW as the dependency. This means the route table entry wouldn't be created until after the VGW, which is the correct order of operations. Therefore, D is the correct answer because the route table entry should depend on the VGW, not the other way around.
upvoted 1 times
...
[Removed]
1 year, 4 months ago
Selected Answer: B
B. The network engineer should add the DependsOn attribute to the resource declaration for the virtual private gateway and specify the route table entry resource. This ensures that the route table entry resource is created before the virtual private gateway is created. D is correct because Adding the DependsOn attribute to the resource declaration for the route table entry and specifying the virtual private gateway resource will not resolve the error. This is because the route table entry resource is dependent on the virtual private gateway resource and not the other way around. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html
upvoted 1 times
...
dyaz208
1 year, 5 months ago
Selected Answer: B
I think B is correct. "When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute." https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html
upvoted 1 times
dyaz208
1 year, 5 months ago
Sorry. D is correct.
upvoted 1 times
...
...
takecoffe
1 year, 6 months ago
Selected Answer: B
Adding the DependsOn attribute to the resource declaration for the route table entry (option D) would not resolve the error because the issue lies with the creation of the virtual private gateway, not the route table entry.
upvoted 2 times
...
ITgeek
1 year, 7 months ago
Selected Answer: B
Answer is B
upvoted 1 times
...
ohcan
1 year, 8 months ago
Selected Answer: D
D. The resource that takes more time to be created is the VPG, and there rest depends on it
upvoted 2 times
...
Mandar
1 year, 8 months ago
Answer is B) If you create a route that references a transit gateway in the same template where you create the transit gateway, you must declare a dependency on the transit gateway attachment. The route table cannot use the transit gateway until it has successfully attached to the VPC. Add a DependsOn Attribute in the AWS::EC2::Route resource to explicitly declare a dependency on the AWS::EC2::TransitGatewayAttachment resource. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html
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 ...