AWS Certified Security – Specialty (SCS-C03) — Question 38

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 denies inbound traffic on TCP port 3306 while allowing a broad range of outbound traffic, including the necessary outbound traffic on port 443. Options A and D incorrectly allow inbound traffic on port 443, which does not align with the requirement. Option C allows inbound traffic on a broad range, which could include undesirable connections.