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

A security engineer receives a notice about suspicious activity from a Linux-based Amazon EC2 instance that uses Amazon Elastic Block Store (Amazon EBS)-based storage. The instance is making connections to known malicious addresses.

The instance is in a development account within a VPC that is in the us-east-1 Region. The VPC contains an internet gateway and has a subnet in us-east-1a and us-east-1b. Each subnet is associate with a route table that uses the internet gateway as a default route. Each subnet also uses the default network ACL. The suspicious EC2 instance runs within the us-east-1b subnet. During an initial investigation, a security engineer discovers that the suspicious instance is the only instance that runs in the subnet.

Which response will immediately mitigate the attack and help investigate the root cause?

Answer options

Correct answer: B

Explanation

The correct answer is B because it immediately blocks all outbound traffic from the suspicious instance, preventing further malicious connections while allowing diagnostic investigation from a separate instance. Option A does not effectively isolate the instance, C involves terminating the instance which can lead to data loss, and D does not control all network traffic effectively as it relies on AWS WAF, which may not be the immediate solution for EC2 instances.