Courseiva
Threat Detection and Incident ResponsehardMultiple ChoiceObjective-mapped

SCS-C02 Threat Detection and Incident Response Practice Question

A company runs a web application on an Auto Scaling group of EC2 instances behind an Application Load Balancer. The application stores user session data in an ElastiCache Redis cluster. The security team receives an alert from GuardDuty that one of the EC2 instances is communicating with a known command-and-control (C2) IP address. The instance ID is i-0a1b2c3d4e5f. The security engineer needs to contain the threat immediately while preserving the instance for forensic analysis. Which course of action should the security engineer take?

⚠ Common exam trap

Many candidates choose to terminate the instance (Option C) thinking it is the fastest containment, but they overlook the critical requirement to preserve the instance for forensic analysis, which termination destroys.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Apply a new security group that denies all inbound and outbound traffic to the instance.

Applying a new security group that denies all inbound and outbound traffic immediately stops the C2 communication at the network layer without destroying the instance. This preserves the instance for forensic analysis (e.g., memory dump, disk imaging) while containing the threat. The security group acts as a virtual firewall, and changing it is a non-destructive, reversible action that can be applied directly to the instance even if it is part of an Auto Scaling group.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Apply a new security group that denies all inbound and outbound traffic to the instance.

    Why this is correct

    Applying a new security group that denies all inbound and outbound traffic immediately severs the instance's network path at the hypervisor, cutting off the C2 server connection without killing the process or losing memory artifacts. Because security group changes are applied instantly across the VPC, this containment step is faster than OS-level firewall rules and avoids tipping off the attacker. The instance remains powered on, allowing you to capture a memory dump and disk image for forensic analysis before any restoration or termination.

  • Remove the security group from the Auto Scaling group to isolate the instance.

    Why it's wrong here

    Removing the security group from the Auto Scaling group only alters the launch template or configuration for instances that are launched in the future; it has no effect on already-running instances. The compromised instance retains its current security group attachments, so the C2 communication continues unabated. To isolate the instance, you would need to modify the instance's own security groups directly, not the Auto Scaling group definition.

  • Terminate the EC2 instance immediately to stop the communication.

    Why it's wrong here

    Terminating the EC2 instance immediately stops the C2 traffic but permanently destroys volatile evidence that is critical to securing the environment, such as memory-resident malware, active network connections, and encryption keys. It also removes the ability to perform live response or memory forensics, and the instance cannot be recovered. In incident response, containment should be reversible, and you should first isolate and capture evidence before taking a destructive action like termination.

  • Create an AMI of the instance for forensic analysis and then terminate the instance.

    Why it's wrong here

    Creating an AMI of the instance is a forensic snapshot, but it does not interrupt the active C2 channel while the EBS snapshots and AMI registration are in progress; the attacker can continue to exfiltrate data or delete logs during that time. Additionally, although you can use the 'No Reboot' flag to avoid a reboot, the snapshot process itself takes the disk asynchronously, so the image may include an altered or incomplete state. Only after full isolation would it be safe to create an image and then terminate.

About these practice questions

Courseiva writes every SCS-C02 question from scratch — 376 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SCS-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C02 exam.