
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company wants to analyze and troubleshoot Access Denied errors and Unauthorized errors that are related to IAM permissions. The company has AWS CloudTrail turned on.
Which solution will meet these requirements with the LEAST effort?
A
Use AWS Glue and write custom scripts to query CloudTrail logs for the errors.
B
Use AWS Batch and write custom scripts to query CloudTrail logs for the errors.
C
Search CloudTrail logs with Amazon Athena queries to identify the errors.
D
Search CloudTrail logs with Amazon QuickSight. Create a dashboard to identify the errors.
Explanation:
Correct Answer: C - Search CloudTrail logs with Amazon Athena queries to identify the errors.
Option A (AWS Glue):
Option B (AWS Batch):
Option D (Amazon QuickSight):
SELECT *
FROM cloudtrail_logs
WHERE errorcode IN ('AccessDenied', 'Unauthorized')
AND eventtime >= '2024-01-01'
SELECT *
FROM cloudtrail_logs
WHERE errorcode IN ('AccessDenied', 'Unauthorized')
AND eventtime >= '2024-01-01'
This solution provides the quickest, most straightforward way to analyze IAM permission errors with minimal setup and maintenance overhead.