SCS-C03 practice question 1 of 15

A security engineer has designed a VPC to segment private traffic from public traffic. The VPC includes two Availability Zones. Each Availability…

Full set: 227 questions
A security engineer has designed a VPC to segment private traffic from public traffic. The VPC includes two Availability Zones. Each Availability Zone contains one public subnet and one private subnet. Three route tables exist: one for the public subnets and one for each private subnet. The security engineer discovers that all four subnets are routing traffic through the internet gateway that is attached to the VPC. Which combination of steps should the security engineer take to remediate this scenario? (Select TWO.)
Answer options
A: Verify that a NAT gateway has been provisioned in the public subnet in each Availability Zone. Correct answer
B: Verify that a NAT gateway has been provisioned in the private subnet in each Availability Zone.
C: Modify the route tables for the public subnets to add a local route to the VPC CIDR range.
D: Modify the route tables for the private subnets to route 0.0.0.0/0 to the NAT gateway in the public subnet of the same Availability Zone. Correct answer
E: Modify the route tables for the private subnets to route 0.0.0.0/0 to the internet gateway.
Correct Answer:
A. Verify that a NAT gateway has been provisioned in the public subnet in each Availability Zone.; D. Modify the route tables for the private subnets to route 0.0.0.0/0 to the NAT gateway in the public subnet of the same Availability Zone.
Explanation

To properly segment traffic, private subnets must not have a direct route to the internet. Instead, they should route outbound internet traffic through a NAT gateway located in a public subnet. For high availability, a NAT gateway should be provisioned in each Availability Zone's public subnet (A). The route tables associated with the private subnets must then be modified to direct all internet-bound traffic (0.0.0.0/0) to the NAT gateway in their respective Availability Zone (D).

Why Incorrect

B. NAT gateways must be placed in a public subnet to have a route to the internet gateway; placing them in a private subnet would render them non-functional.
C. The local route for the VPC CIDR is automatically added to all route tables and cannot be modified. This option is not a valid action.
E. Routing 0.0.0.0/0 from a private subnet to the internet gateway is the definition of a public subnet and is the exact misconfiguration that needs to be corrected.

References

1. AWS Documentation. (2024). NAT gateways. Amazon VPC User Guide. Retrieved from https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html (See section "NAT gateway basics" which states, "You must also specify a public subnet in which to create the NAT gateway.").

2. AWS Documentation. (2024). Example: VPC with servers in private subnets and NAT. Amazon VPC User Guide. Retrieved from https://docs.aws.amazon.com/vpc/latest/userguide/VPCScenario2.html (This guide details the correct configuration, including creating a NAT gateway in the public subnet and updating the private subnet's route table to point 0.0.0.0/0 to the NAT gateway).

3. AWS Documentation. (2024). Route tables for your VPC. Amazon VPC User Guide. Retrieved from https://docs.aws.amazon.com/vpc/latest/userguide/VPCRouteTables.html (See section "Route table basics" which explains the purpose of the local route and routes to gateways).

Scroll to Top