Filter CloudTrail for TerminateInstances and review AssumeRoleWithSAML to identify the federated user
Short answer
B Filter CloudTrail event history for TerminateInstances, then review the AssumeRoleWithSAML call to name the federated user.
Question
Key Takeaways
CloudTrail Event history covers 90 days and is filterable in the console, so a week-old event is in range; the TerminateInstances event shows the assumed role, and the paired AssumeRoleWithSAML event reveals the originating federated identity. S3/Glue/Athena (A/D) and IAM Access Advisor (C) are slower or indirect. Only B is fastest.
The fastest way to find which federated user terminated an EC2 instance a week ago is to filter CloudTrail event history (90-day window) for the TerminateInstances event to get the assumed role, then open the AssumeRoleWithSAML event to read the federated username from the role session name—all from the console without Athena or IAM Access Advisor.
Common mistake: Going to S3 and reading raw CloudTrail logs with Athena (A/D)—works but is slower than the console Event history filter for a 90-day event. Using IAM Access Advisor (C)—it shows last-accessed times, not the specific federated username behind an assumed role.
Expert Analysis
Why the Answer Is Correct
CloudTrail Event history retains 90 days and is directly filterable in the console, so a week-old TerminateInstances event is in range. It identifies the assumed IAM role, and the corresponding AssumeRoleWithSAML event exposes the federated username via the role session name—the fastest path with no querying stack.
Why the Other Options Are Wrong
A and D require reading S3-backed logs via Athena, which is slower than the console filter for an event still inside the 90-day window. C relies on IAM Access Advisor last-accessed times, which do not name the specific federated user behind an assumed role. B is the fastest correct method.
Community Comment Notes
Community voted B (100). Commenters keyed on 'FASTEST' and 'a week ago' being inside the 90-day Event history window, and linked the CloudTrail federated-users doc. B was confirmed.
Official Reference
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-federated-users.html
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
Zek 👍 4B is correct https://aws.amazon.com/blogs/security/how-to-easily-identify-your-federated-users-by-using-aws-cloudtrail/ a public discussion thread on this question
-
jamesf 👍 1 Answered Bkeywords: FASTEST way, a week ago - within 90 days can be filtered on CloudTrail console.
-
FunkyFresco 👍 1 Answered BOption B is the correct answer.
-
Certified101 👍 2 Answered BB is correct
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.