AWS Certified Security – Specialty — Question 236

A company deployed an Amazon EC2 instance to a VPC on AWS. A recent alert indicates that the EC2 instance is receiving a suspicious number of requests over an open TCP port from an external source. The TCP port remains open for long periods of time.
The company's security team needs to stop all activity to this port from the external source to ensure that the EC2 instance is not being compromised. The application must remain available to other users.
Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because modifying the network ACL allows for a specific Deny rule to block traffic from the external source on that port while maintaining overall access for other users. Option B incorrectly suggests removing the port from the security group, which could impact other legitimate traffic. Option C is invalid since security groups do not support Deny rules, and D would unnecessarily block all traffic from the EC2 instance, which is not the desired outcome.