AWS Certified Advanced Networking – Specialty (ANS-C01) — Question 18

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?

Answer options

Correct answer: D

Explanation

The correct answer is D because the route table entry must depend on the successful creation of the virtual private gateway, ensuring that the gateway exists before the route is established. Options A and C do not address the dependency issue, while option B incorrectly suggests specifying the route table entry as a dependency of the virtual private gateway, which is not necessary.