GCIH Securing Credentials and Data in Cloud Practice Question
A GCIH responder is investigating a compromised AWS account where an EC2 instance's IAM role credentials were stolen from the instance metadata service. The attacker used those temporary credentials from an external IP address to download sensitive objects from an S3 bucket. Which AWS service or mechanism would have provided the earliest detection of this specific anomalous behavior?
⚠ Common exam trap
The trap here is assuming that CloudTrail data events alone will alert on stolen credentials, when in fact they only log API calls and require manual analysis to detect the anomaly.
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
✓
Amazon GuardDuty with findings for unauthorized access to IAM credentials
GuardDuty analyzes CloudTrail management events to identify when EC2 instance role credentials are used from an external IP address. This specific finding type, UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration, triggers because GuardDuty correlates the credential usage with the originating IP and flags it as anomalous. CloudTrail data events alone only log the API calls without assessing whether the source is expected, while Trusted Advisor and Macie focus on configuration and data classification respectively.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Amazon GuardDuty with findings for unauthorized access to IAM credentials
Why this is correct
GuardDuty continuously monitors CloudTrail management events, VPC Flow Logs, and DNS logs to detect anomalous behavior. It has specific finding types such as UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration that trigger when EC2 instance role credentials are used from an external IP address. This provides the earliest automated detection of this exact scenario because it correlates credential usage with network origin.
- ✗
AWS CloudTrail data events for S3 object-level operations
Why it's wrong here
CloudTrail data events log S3 object-level API calls such as GetObject, but they do not inherently detect that the call originated from an external IP or that the credentials were stolen. They provide raw audit records, not anomaly detection. Without additional analysis or GuardDuty, this would not provide the earliest detection of the stolen credentials being used from an external IP.
- ✗
Amazon Macie sensitive data discovery jobs on the S3 bucket
Why it's wrong here
Macie uses machine learning to discover and classify sensitive data in S3, but it does not monitor API activity or credential usage patterns. It would not detect that stolen EC2 role credentials were used from an external IP to access objects. Macie is focused on data classification and privacy, not on anomalous access detection, so it would not provide earliest detection of this behavior.
- ✗
AWS Trusted Advisor security checks for S3 bucket permissions
Why it's wrong here
Trusted Advisor inspects S3 bucket policies and ACLs for public access, but it does not monitor API calls or credential usage. It would not detect that an EC2 instance role's temporary credentials were used from an external IP to download objects. Trusted Advisor is a configuration assessment tool, not a runtime threat detection service, so it would not provide earliest detection.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
About these practice questions
One of 322 original GCIH practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official GIAC exam blueprint
This GCIH practice question is part of Courseiva's free GIAC 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 GCIH exam.