DVA-C02 · Question #676
A developer needs to query application logs that capture events from a serverless application. AWS Lambda functions handle most of the application logic. The developer must query the 20 most recent…
The correct answer is C. Use the Amazon CloudWatch logs that are automatically captured for the Lambda functions. Amazon CloudWatch Logs automatically captures Lambda function logs with minimal setup. CloudWatch Logs Insights provides a managed, serverless way to query logs quickly using commands like sort and limit, minimizing operational overhead compared to setting up S3, Athena, or…
Question
A developer needs to query application logs that capture events from a serverless application. AWS Lambda functions handle most of the application logic. The developer must query the 20 most recent events. Which solution will meet these requirements with the LEAST operational overhead?
Options
- AConfigure the Lambda functions to send the logs to an Amazon S3 bucket. Use Amazon Athena
- BUse the AWS CloudTrail logs that are automatically captured for the Lambda functions and stored
- CUse the Amazon CloudWatch logs that are automatically captured for the Lambda functions.
- DConfigure the Lambda functions to send the logs to an Amazon Redshift cluster. Connect to the
How the community answered
(43 responses)- A2% (1)
- B2% (1)
- C91% (39)
- D5% (2)
Explanation
Amazon CloudWatch Logs automatically captures Lambda function logs with minimal setup. CloudWatch Logs Insights provides a managed, serverless way to query logs quickly using commands like sort and limit, minimizing operational overhead compared to setting up S3, Athena, or Redshift.
Community Discussion
No community discussion yet for this question.