AWS Certified Developer – Associate (DVA-C02) — Question 398

A developer builds a serverless application on AWS by using Amazon API Gateway, AWS Lambda functions, and Amazon Route 53. During testing, the developer notices errors but cannot immediately locate the root cause.

To identify the errors, the developer needs to search all the application's logs.

What should the developer do to meet these requirements with the LEAST operational overhead?

Answer options

Correct answer: D

Explanation

Option D is correct because enabling CloudWatch Logs for Amazon API Gateway and using CloudWatch Logs Insights provides a native, serverless way to search and analyze logs across the application's services with the lowest operational overhead. Option A is incorrect because PutMetricData is for custom metrics rather than log ingestion, and Athena is more complex to set up. Options B and C introduce unnecessary complexity and operational overhead by requiring services like CloudTrail, Kinesis Data Firehose, Amazon S3, and Amazon OpenSearch Service.