A company runs workloads on hundreds of Amazon EC2 instances. After a recent incident where malware ran until the instance was manually terminated, the company enabled Amazon GuardDuty to detect malware on EC2. The security engineer must automate the response when GuardDuty flags an instance as infected, to mitigate the incident in accordance with the AWS Well-Architected Framework guidance for incident response. Which solution meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Invoke an AWS Lambda function on GuardDuty findings to detach all Amazon EBS volumes from the instance, tag the volumes Infected, and then terminate the instance..
Why this is the answer
The correct solution involves detaching EBS volumes and terminating the instance. This approach isolates the potentially compromised data (on the EBS volumes) for forensic analysis while immediately stopping the malicious activity by terminating the instance. Tagging the volumes as "Infected" aids in tracking and managing the incident. Incorrect options: Removing network adapters or deleting ENIs might stop network communication but leaves the compromised instance running, allowing malware to persist or spread internally. It also doesn't preserve the disk for forensics. Moving the instance to an isolated VPC and applying a deny-all security group is a good containment step but still leaves the compromised instance running, which is not as effective as termination for immediate mitigation and doesn't explicitly preserve the disk for forensics.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed