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

A company's security engineer is designing an isolation procedure for Amazon EC2 instances as part of an incident response plan. The security engineer needs to isolate a target instance to block any traffic to and from the target instance, except for traffic from the company's forensics team. Each of the company's EC2 instances has its own dedicated security group. The EC2 instances are deployed in subnets of a VPC. A subnet can contain multiple instances.
The security engineer is testing the procedure for EC2 isolation and opens an SSH session to the target instance. The procedure starts to simulate access to the target instance by an attacker. The security engineer removes the existing security group rules and adds security group rules to give the forensics team access to the target instance on port 22.
After these changes, the security engineer notices that the SSH connection is still active and usable. When the security engineer runs a ping command to the public IP address of the target instance, the ping command is blocked.
What should the security engineer do to isolate the target instance?

Answer options

Correct answer: B

Explanation

Option B is correct because removing the port 22 security group rule entirely prevents any standard SSH connections, terminating existing sessions and blocking new ones. Using AWS Systems Manager Session Manager allows the forensics team to securely access the instance via IAM policies without requiring any open inbound ports. Option C is incorrect because applying a deny-all Network ACL at the subnet level would affect all other instances in that subnet and block the forensics team's access as well.