Public vs Private Subnets
Database servers in a private subnet need to download OS updates from the internet but must not be reachable from it. What is the standard setup?
Choose one answer
Give each database server an Elastic IP and block inbound traffic with the network ACL.
Route 0.0.0.0/0 from the private subnet to a NAT gateway that sits in a public subnet.
Add a 0.0.0.0/0 route to the internet gateway in the private subnet's route table and keep the database security group closed.
Create a VPC gateway endpoint for the OS mirror and route 0.0.0.0/0 through it.