How Can You Alert on a Default Route to an Internet Gateway?
A banking company has an application that must connect to specific public IP addresses from a VPC. A network engineer has configured routes in the route table that is associated with the application’s subnet to the required public IP addresses through an internet gateway. The network engineer needs to set up email notifications that will alert the network engineer when a user adds a default route to the application subnet's route table with the internet gateway as a target. Which solution will meet these requirements with the LEAST implementation effort?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests your ability to match an AWS managed Config rule to a specific route-table condition, and the common trap is confusing internet-gateway-authorized-vpc-only (which checks IGW VPC attachment) with no-unrestricted-route-to-igw (which detects unrestricted public routes).
Learn the least-effort way to send email alerts when a user adds a default route (0.0.0.0/0 or ::/0) to a VPC route table with an internet gateway target. Community consensus favors the AWS Config managed rule no-unrestricted-route-to-igw combined with EventBridge and Amazon SNS.
The most common wrong option is C, because it uses AWS Config, EventBridge, and SNS, but the internet-gateway-authorized-vpc-only managed rule checks whether an IGW is attached only to authorized VPCs, not whether the route table contains a default route to the IGW.
Community Discussion (6 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option D uses the AWS managed rule no-unrestricted-route-to-igw, which is purpose-built to detect route-table entries with a destination CIDR of 0.0.0.0/0 or ::/0 to an internet gateway. No custom Lambda code is required, so it has the least implementation effort. The rule’s non-compliance event can be matched by an EventBridge rule and delivered to an SNS topic for email, exactly as required.
Why the Other Options Are Wrong
Options A and B require building and maintaining a Lambda function, adding significant implementation effort and runtime complexity. Option B incorrectly references the EC2 CreateRoute API call and is not a native monitoring solution. Option C uses internet-gateway-authorized-vpc-only, which checks whether an IGW is attached to authorized VPCs, but it does not evaluate route-table entries for unrestricted routes to the IGW.
Community Comment Notes
Most commenters correctly choose D and note that the managed rule greatly reduces operational overhead. One commenter links the official docs for no-unrestricted-route-to-igw but marks answer C, which appears to be a typo or misread. The distinction between the two managed rules (C vs. D) is a key takeaway, and the official documentation clearly defines the rule’s compliance logic.
Official Reference
Exam Strategy
When a question asks for least implementation effort, look for a managed AWS service or managed Config rule that already covers the condition. Remember the exact purpose of the Config managed rules: no-unrestricted-route-to-igw is for default/public routes to an IGW, while internet-gateway-authorized-vpc-only is for IGW attachment to authorized VPCs.
Related Analysis
Practice All ANS-C01 Questions
Access 137 questions with complete answers and detailed explanations.
View Full ANS-C01 Practice Test →