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

A public subnet contains two Amazon EC2 instances. The subnet has a custom network ACL. A security engineer is designing a solution to improve the subnet security.

The solution must allow outbound traffic to an internet service that uses TLS through port 443. The solution also must deny inbound traffic that is destined for MySQL port 3306.

Which network ACL rule set meets these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because it explicitly denies inbound traffic on MySQL port 3306 while allowing a broader range of outbound traffic that includes TLS on port 443. Options A and C do not appropriately deny MySQL traffic and would allow unwanted inbound connections, while option D fails to permit the necessary outbound traffic for the internet service.