SCS-C03 practice question 15 of 15

A company runs a web application on a fleet of Amazon EC2 instances in an Auto Scaling group. Amazon GuardDuty and AWS Security Hub are enabled. The security engineer needs an automated response to anomalous traffic that follows AWS best practices and minimizes application disruption. Which solution will meet these requirements?

Full set: 227 questions
Answer options
A: Use EventBridge to disable the instance profile access keys.
B: Use EventBridge to invoke a Lambda function that removes the affected instance from the Auto Scaling group and isolates it with a restricted security group. Correct answer
C: Use Security Hub to update the subnet network ACL to block traffic.
D: Send GuardDuty findings to Amazon SNS for email notification.
Correct Answer:
B. Use EventBridge to invoke a Lambda function that removes the affected instance from the Auto Scaling group and isolates it with a restricted security group.
Explanation

This solution follows the AWS best practice of automated event-driven security response. Amazon GuardDuty findings are published to Amazon EventBridge, which can trigger a Lambda function. The Lambda function performs a targeted remediation: it removes the specific, affected EC2 instance from the Auto Scaling group, which prompts the group to launch a healthy replacement, thus minimizing application disruption. The function then isolates the original instance by applying a restrictive security group, preserving it for forensic analysis without risk of further harm.

Why Incorrect

A. Disabling instance profile keys only addresses identity-based threats and does not remove the potentially compromised instance from service or address network anomalies.
C. Security Hub is an aggregation and management service, not a direct remediation tool. Modifying a network ACL affects the entire subnet, potentially disrupting many healthy instances.
D. Sending a notification via Amazon SNS is a notification action, not an automated remediation or response that mitigates the threat.

References

1. AWS Security Blog. (2021). How to build a GuardDuty-orchestrated, automated, and centralized incident response. Retrieved from https://aws.amazon.com/blogs/security/how-to-build-a-guardduty-orchestrated-automated-and-centralized-incident-response/ (This blog post describes the exact pattern of using EventBridge and Lambda for automated remediation).

2. AWS Documentation. (2024). Remediating GuardDuty findings. Amazon GuardDuty User Guide. Retrieved from https://docs.aws.amazon.com/guardduty/latest/ug/guarddutyremediate.html (This page explicitly mentions using Amazon EventBridge and AWS Lambda to define custom, automated remediation actions).

3. AWS Documentation. (2024). Tutorial: Detach an EC2 instance from your Auto Scaling group. Amazon EC2 Auto Scaling User Guide. Retrieved from https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html (This document shows the API action that the Lambda function would use).

Scroll to Top