SOA-C02 Question 12
Select 3A company is troubleshooting an issue where specific API calls made to an AWS service are failing intermittently. The SysOps Administrator needs to identify the root cause by analyzing logs of the API activity. Which actions should the SysOps Administrator take to achieve this?
- A
Enable AWS CloudTrail to log API activity and download the logs for analysis.
- B
Use Amazon CloudWatch Logs Insights to query logs stored in CloudWatch Logs.
- C
Enable detailed monitoring in Amazon CloudWatch for the specific AWS service.
- D
Use the CloudTrail Event History to filter and analyze the API activity.
- E
Configure AWS Config to track resource changes and analyze the logs.
Show answer and explanation
Correct answers: A, B, D
Explanation
To troubleshoot API activity, AWS CloudTrail should be used to log and analyze API calls. CloudTrail logs can be exported to S3 or queried using CloudWatch Logs Insights if they are stored in CloudWatch Logs. Additionally, the CloudTrail Event History offers a quick way to analyze recent API activities. Detailed monitoring and AWS Config do not provide API activity logs, making them unsuitable for this scenario.
- A. Correct.
Correct: AWS CloudTrail is specifically designed to log API activity. Enabling CloudTrail and downloading the logs provide detailed information about API calls, including request and response data.
- B. Correct.
Correct: Amazon CloudWatch Logs Insights allows you to query and analyze logs, including CloudTrail logs if they are stored in CloudWatch Logs. This can help identify issues more efficiently.
- C. Incorrect.
Incorrect: While enabling detailed monitoring in CloudWatch provides additional metrics, it does not capture API activity or logs for troubleshooting API-related issues.
- D. Correct.
Correct: The CloudTrail Event History provides a quick way to view and filter recent API activity directly from the CloudTrail console, making it useful for identifying issues.
- E. Incorrect.
Incorrect: AWS Config tracks resource changes and compliance but does not provide API activity logs. It is not relevant for troubleshooting API call issues.