AWS Certified Solutions Architect Associate SAA-C03 Practice Question
An application is hosted in an Amazon EC2 instance which does not have direct Internet access. The instance needs to pull software updates from public repositories but should not accept inbound connections from external sources. As a solutions architect, what is the most secure way to configure Internet connectivity to meet these requirements?
Attach an Internet Gateway (IGW) and route internet traffic directly to the instance.
Configure an endpoint to connect the instance to the Internet without using a public IP address.
Assign a public IP address to the instance and modify the security group to allow outbound Internet traffic.
Set up a NAT Gateway (NGW) and update the route table to direct internet traffic through it.