AWS Certified Developer – Associate (DVA-C02) — Question 362
A company has a web application that is hosted on AWS. The application is behind an Amazon CloudFront distribution. A developer needs a dashboard to monitor error rates and anomalies of the CloudFront distribution as frequently as possible.
Which combination of steps should the developer take to meet these requirements? (Choose two.)
Answer options
- A. Stream the CloudFront distribution logs to an Amazon S3 bucket. Detect anomalies and error rates by using Amazon Athena.
- B. Enable real-time logs on the CloudFront distribution. Create a data stream in Amazon Kinesis Data Streams.
- C. Set up Amazon Kinesis Data Streams to send the logs to Amazon OpenSearch Service by using an AWS Lambda function. Make a dashboard in OpenSearch Dashboards.
- D. Stream the CloudFront distribution logs to Amazon Kinesis Data Firehose.
- E. Set up Amazon Kinesis Data Firehose to send the logs to AWS CloudTrail. Create CloudTrail metrics, alarms, and dashboards.
Correct answer: B, C
Explanation
To achieve near real-time monitoring of CloudFront, enabling real-time logs is required, which natively integrates with Amazon Kinesis Data Streams. Using an AWS Lambda function to process these streams and load them into Amazon OpenSearch Service allows for instant analysis and visualization via OpenSearch Dashboards. Standard S3 logs have delivery delays of up to several hours, which does not meet the requirement for maximum frequency, and CloudTrail is intended for API auditing rather than application traffic analysis.