Investigate the exposed key with IAM Access Analyzer and deactivate it to stop further use
Short answer
AB Use IAM Access Analyzer to investigate the exposed key's usage and deactivate the key to stop further use.
Question
Key Takeaways
Deactivating the key (B) is the direct 'prevent additional usage' control. IAM Access Analyzer (A) can analyze access-key usage to show what the key touched and who used it, supporting the 'identify unauthorized usage' half. GuardDuty (C) cannot block a key, and simply creating a new key (D) or a credential report (E) does not stop or fully trace the leak. A and B are the pair.
An IAM access key was leaked in a public repo. To both find out whether it was misused and stop misuse, deactivate the exposed key immediately (prevents any further use) and use IAM Access Analyzer to analyze the key's access—identifying which resources it reached and which principal used it for forensic follow-up. A credential report (E) only shows last-login, not resource-level usage.
Common mistake: Relying on a credential report (E)—it shows password/key last-used, not which resources the key accessed, so it under-delivers on 'identify unauthorized usage.' Thinking GuardDuty (C) can block the key—GuardDuty detects, it does not revoke credentials. Creating a new key (D) does not contain the old one.
Expert Analysis
Why the Answer Is Correct
Deactivating the exposed access key (B) immediately prevents any additional use of the leaked credential. IAM Access Analyzer (A) can analyze the key's access activity to determine which resources the exposed credentials reached and which principal used them, fulfilling the investigation requirement. Together they cover both mandates.
Why the Other Options Are Wrong
C (GuardDuty rule) can alert on suspicious activity but cannot block a key from being used. D (create a new key) does nothing to neutralize the exposed one. E (credential report) reports last-used time, not the resource-level usage needed to confirm unauthorized access. A and B are the correct combination.
Community Comment Notes
Community voted A,B (100), with the top comment (likes=9) stating B prevents further use and A supports forensics on the exposed credential. A minority suggested B,E, but the majority confirmed A,B as the pair that both identifies misuse and stops it.
Official Reference
- https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer.html
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html
These links open the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer AB. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 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 7
-
f3f9bfe 👍 9Security Engineer must identified whether unauthorized usage of the exposed credential has occurred and prevent any additional usage of the exposed credential. The Answers are A and B
-
aescudero51 👍 1My answer is A & B A. Use AWS Identity and Access Management Access Analyzer to determine which resources the exposed credentials accessed and who used them. This will help identify if any unauthorized activity occurred while the credentials were exposed. B. Deactivate the exposed IAM access key from the user's IAM account. This will immediately prevent any further use of the compromised credentials.
-
phmeeeee 👍 1To immediately stop the expored the credential. B - prevent any additional usage of the exposed credential. A - use for forensics the exposed credential.
-
sema2232 👍 3B, E correct
-
danish1234 👍 3A and E
Show 2 more comments
-
Zek 👍 2A, B look Ok to me
-
7c84836 👍 1why A over E?
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.