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

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 updating the network ACL allows for a specific Deny statement to be applied to the port and source IPs without affecting other users. Option B would remove access to the port entirely, which could affect legitimate users, while C is incorrect as security groups do not support Deny rules. Option D incorrectly suggests blocking all traffic from the EC2 instance, which would disrupt the application for all users.