A company runs an application in us-east-1 behind an ALB that receives HTTPS requests from vending machines worldwide. They plan to use AWS Global Accelerator and program the accelerator's static IPs into the vending machines so the application is reachable only through the accelerator, not directly via the internet-facing ALB URL. Which configuration will enforce access only through the accelerator?
Choose an answer
Tap an option to check your answer.
Correct answer: Place the ALB in private subnets in the VPC. Attach an internet gateway but do not add routes in the subnet route tables that point to the internet gateway. Configure the Global Accelerator with endpoint groups that include the ALB endpoint. Set the ALB's security group to allow inbound traffic only from the internet on the ALB listener port..
Why this is the answer
The correct option ensures the ALB is not directly internet-accessible while still allowing Global Accelerator to reach it. Placing the ALB in private subnets, without route table entries to an Internet Gateway, prevents direct internet access. Global Accelerator, however, uses AWS's internal network to reach endpoints, bypassing the need for public routing to the ALB. The security group allowing inbound traffic "from the internet" on the ALB listener port is a standard configuration for ALBs that are targets of Global Accelerator; Global Accelerator's edge locations act as the source of this "internet" traffic from the ALB's perspective. The first incorrect option is missing the critical detail about route tables, which is essential for preventing direct internet access to the private subnet. The second incorrect option places the ALB in public subnets, making it directly internet-accessible and defeating the purpose. The third incorrect option incorrectly states that an Internet Gateway is attached and routes are added to private subnets, which would make them public. It also incorrectly restricts the security group to only accelerator IPs, which are dynamic and difficult to manage.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed