A security engineer needs to detect unauthorized API calls originating from an EC2 instance that has an attached IAM role. Which service provides the most granular visibility into the identity and the specific API actions performed?
Trap 1: Enable VPC Flow Logs to monitor all inbound and outbound traffic…
VPC Flow Logs capture IP traffic information but do not log the specific AWS API operations performed by the instance. While useful for network traffic analysis and detecting unauthorized data exfiltration destinations, they lack the granularity to identify the specific IAM identity or the API method invoked during an event.
Trap 2: Deploy AWS GuardDuty to monitor network traffic and DNS queries.
GuardDuty is a threat detection service that analyzes VPC Flow Logs, DNS logs, and CloudTrail events to identify malicious behavior. While it can detect unauthorized API calls, it is a managed detection service; it does not provide the raw, granular log data required for a deep forensic investigation into specific API actions.
Trap 3: Configure AWS Config to record resource configuration changes.
AWS Config focuses on resource state and configuration history rather than runtime API activity. While it can detect when an IAM role's policy changes or when an EC2 instance configuration deviates from a baseline, it does not provide an audit trail of individual API calls made by the role.
- A
Enable VPC Flow Logs to monitor all inbound and outbound traffic patterns.
Why wrong: VPC Flow Logs capture IP traffic information but do not log the specific AWS API operations performed by the instance. While useful for network traffic analysis and detecting unauthorized data exfiltration destinations, they lack the granularity to identify the specific IAM identity or the API method invoked during an event.
- B
Deploy AWS GuardDuty to monitor network traffic and DNS queries.
Why wrong: GuardDuty is a threat detection service that analyzes VPC Flow Logs, DNS logs, and CloudTrail events to identify malicious behavior. While it can detect unauthorized API calls, it is a managed detection service; it does not provide the raw, granular log data required for a deep forensic investigation into specific API actions.
- C
Enable AWS CloudTrail management and data events for the account.
CloudTrail management events track actions like creating roles, while data events track activity within specific resources like S3 objects. This provides the exact identity, source IP, and API action performed by the IAM role attached to the EC2 instance, making it the correct choice for granular API visibility.
- D
Configure AWS Config to record resource configuration changes.
Why wrong: AWS Config focuses on resource state and configuration history rather than runtime API activity. While it can detect when an IAM role's policy changes or when an EC2 instance configuration deviates from a baseline, it does not provide an audit trail of individual API calls made by the role.