DVA-C02 Domain 4—Troubleshooting and Optimization
Explore troubleshooting techniques and optimization strategies for AWS Lambda functions and microservices architectures. Understand how to efficiently identify errors using CloudWatch Logs Insights, configure SNS message filtering to reduce unnecessary processing, analyze API Gateway latency issues, and improve Lambda function performance by adjusting memory settings. Gain practical knowledge to enhance application reliability and performance on AWS.
We'll cover the following...
Question 16
A developer is investigating an intermittent error in a production AWS Lambda function. The function processes thousands of requests per minute, making it difficult to find specific error messages in the standard CloudWatch Logs stream. The developer needs to identify the top five most frequent error messages across all invocations from the last 24 hours.
Which solution should the developer use to achieve this with the least operational overhead?
A. Use AWS X-Ray to visualize the service map and identify nodes with high error rates.
B. Run a query in Amazon CloudWatch Logs Insights using the stats and count commands.
C. Export the log groups to Amazon S3 and run a search using Amazon Athena.
D. Stream the logs to an Amazon OpenSearch Service cluster and use Dashboards to visualize the results.