AWS Certified Security – Specialty (SCS-C02) — Question 33

A company's public Application Load Balancer (ALB) recently experienced a DDoS attack. To mitigate this issue, the company deployed Amazon CloudFront in front of the ALB so that users would not directly access the Amazon EC2 instances behind the ALB.
The company discovers that some traffic is still coming directly into the ALB and is still being handled by the EC2 instances.
Which combination of steps should the company take to ensure that the EC2 instances will receive traffic only from CloudFront? (Choose two.)

Answer options

Correct answer: B, C

Explanation

The correct actions are B and C. By configuring CloudFront to add a custom HTTP header, the ALB can then be set to only process requests that include this header, effectively preventing direct access to the EC2 instances. Options A, D, and E do not directly restrict access to the ALB from non-CloudFront traffic, making them ineffective for this purpose.