Asolutions architect creates a VPC that includes two public subnets and two privateSubnets.A corporate security mandate requires the solutions architect to launch allAmazon EC2 instances in a private subnet.However when the solutions architectLaunches an EC2 instance that runs a web server on ports 80 and 443 in a privateSubnet,no external internet traffic can connect to the server.What should the solutionsArchitect do to resolve this issue?
A、Attach the EC2 instance to an Auto Scaling group in a private subnet Ensure that theDNS record for the website resolves to the Auto Scaling group identifier
B、Provision an internet-facing Application Load Balancer(ALB)in a public subnetAdd the EC2 instance to the target group that is associated with the ALB Ensure thatThe DNS record for the website resolves to the ALB
C、Launch a NAT gateway in a private subnet Update the route table for the privateSubnets to add a default route to the NAT gateway Attach a public Elastic IP address toThe NAT gateway
D、Ensure that the security group that is attached to the EC2 instance allows HTTPTraffic on port 80 and HTTPS traffic on port 443 Ensure that the DNS record for theWebsite resolves to the public IP address of the EC2 instance.