Which AWS service provides an automated way to detect that an EC2 instance in a public subnet has been compromised and is communicating with an known malicious command-and-control server?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Amazon GuardDuty

GuardDuty is a threat detection service that analyzes VPC Flow Logs, CloudTrail, and DNS logs to identify suspicious or malicious activity....

📋Part of AWS Certified Solutions Architect – Professional (SAP-C02) · AWS Certification Practice
Real Exam ScenarioAWS IAM

Which AWS service provides an automated way to detect that an EC2 instance in a public subnet has been compromised and is communicating with an known malicious command-and-control server?

✓ Correct Answer & ExplanationAWS IAM

Correct Answer

Amazon GuardDuty

Why This Answer Is Correct

GuardDuty is a threat detection service that analyzes VPC Flow Logs, CloudTrail, and DNS logs to identify suspicious or malicious activity.

📚 What This Question Tests

This question evaluates your knowledge of AWS IAM — a core concept tested in AWS Certified Solutions Architect – Professional (SAP-C02). Understanding AWS IAM is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.