ANS-C01 · Question #254
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…
The correct answer is D. Create an AWS Config rule for the route table by using the no-unrestricted-route-to-igw managed. To detect and alert when a default route to an Internet Gateway is added to an application subnet's route table with the least effort, an AWS Config managed rule should be used.
Question
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?
Options
- ACreate an AWS Lambda function that reads the routes in the route table and sends an email
- BCreate an AWS Lambda function that will be invoked by an Amazon EC2 CreateRoute API call.
- CCreate AWS Config rules for the route table by using the internet-gateway-authorized-vpc-only
- DCreate an AWS Config rule for the route table by using the no-unrestricted-route-to-igw managed
How the community answered
(46 responses)- A2% (1)
- B7% (3)
- C4% (2)
- D87% (40)
Why each option
To detect and alert when a default route to an Internet Gateway is added to an application subnet's route table with the least effort, an AWS Config managed rule should be used.
Creating a custom AWS Lambda function to periodically read route tables requires significant development and maintenance effort compared to a managed AWS Config rule.
An AWS Lambda function invoked by an `EC2 CreateRoute` API call would only detect new route creation, but configuring it to specifically filter for default routes to an IGW and manage alerts requires custom logic and more effort than a managed rule.
The `internet-gateway-authorized-vpc-only` AWS Config managed rule checks if internet gateways are only attached to authorized VPCs, which is not the specific requirement of monitoring for default routes to an IGW in a route table.
The AWS Config managed rule `no-unrestricted-route-to-igw` specifically monitors route tables for routes to an Internet Gateway with a destination of 0.0.0.0/0, making it the perfect and least-effort solution to detect this specific configuration change and trigger notifications.
Concept tested: AWS Config Managed Rules for Network Monitoring
Source: https://docs.aws.amazon.com/config/latest/developerguide/no-unrestricted-route-to-igw.html
Community Discussion
No community discussion yet for this question.