AWS Certified Advanced Networking – Specialty (ANS-C01) — Question 2

A company has developed an application on AWS that will track inventory levels of vending machines and initiate the restocking process automatically. The company plans to integrate this application with vending machines and deploy the vending machines in several markets around the world. The application resides in a VPC in the us-east-1 Region. The application consists of an Amazon Elastic Container Service (Amazon ECS) cluster behind an Application Load Balancer (ALB). The communication from the vending machines to the application happens over HTTPS.
The company is planning to use an AWS Global Accelerator accelerator and configure static IP addresses of the accelerator in the vending machines for application endpoint access. The application must be accessible only through the accelerator and not through a direct connection over the internet to the ALB endpoint.
Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because it places the ALB in a private subnet while ensuring that the application can only be accessed via the Global Accelerator. This configuration prevents direct internet access to the ALB, fulfilling the requirement. Other options either expose the ALB to the internet directly or do not correctly configure the ALB’s placement and security group settings, which could allow unintended access.