AWS Certified Sysops Administrator Associate · Free Practice Question Medium

Question 40

A SysOps administrator needs to scrutinize historical errors in the Amazon CloudWatch logs of 10 AWS Lambda functions. The logs, which are in JSON format, are stored in Amazon S3. Even though the errors may not always present in the same field, they all commence with an identical string prefix.

What's the most operationally efficient strategy to analyze the log files?

  • A

    Use AWS CloudTrail to analyze the logs for the specific string prefix.

  • B

    Set up Amazon GuardDuty to analyze and find the errors in the logs.

  • C

    Use Amazon Athena to query the logs in S3 directly using standard SQL.

  • D

    Download the logs from S3 and use local text editors for log analysis.

Reveal correct answer

Correct answer: C

Explanation

Amazon Athena allows querying data directly on S3 using SQL without the need for a separate analytics platform. This makes it suitable for scanning through logs for specific error patterns.

CORRECT: "Use Amazon Athena to query the logs in S3 directly using standard SQL" is the correct answer (as explained above.)

INCORRECT: "Use AWS CloudTrail to analyze the logs for the specific string prefix" is incorrect.

AWS CloudTrail primarily tracks API usage across your AWS infrastructure. It's not designed for parsing application logs.

INCORRECT: "Download the logs from S3 and use local text editors for log analysis" is incorrect.

This is not operationally efficient considering the potential volume of logs and the inefficiency of manually scanning through them.

INCORRECT: "Set up Amazon GuardDuty to analyze and find the errors in the logs" is incorrect.

Amazon GuardDuty is a threat detection service. It's not designed for parsing application logs for specific error strings.

References:

https://aws.amazon.com/athena/

Save time with our AWS cheat sheets:

https://digitalcloud.training/amazon-athena/

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need