Q2 — AWS DOP-C02 Ch.3

Question 2 of 100 | ← Chapter 3

A company runs multiple applications in the same AWS account. The applications send logs to Amazon CloudWatch. A data analytics team needs to collect performance metrics and custom metrics from the applications. The analytics team needs to transform the metric data first and then store it in an Amazon S3 bucket. The analytics team wants automatic collection of any new metrics added to CloudWatch namespaces. Which solution meets these requirements with the least operational overhead?

Correct Answer: B. Configure a CloudWatch Metrics Stream to include all metrics and deliver them to an Amazon Kinesis Data Firehose delivery stream. Configure the Firehose delivery stream to invoke an AWS Lambda function to transform the data. Configure the delivery stream to send the transformed data to the S3 bucket.

Explanation

This question involves integration of Amazon CloudWatch Metrics Streams, Amazon Kinesis Data Firehose, and AWS Lambda. According to AWS documentation, CloudWatch Metrics Streams enable continuous, real-time export of metrics data from CloudWatch to other services. Configuring the metrics stream to include all metrics ensures that any newly added metrics to namespaces are automatically included without manual intervention. Amazon Kinesis Data Firehose combined with Lambda can automatically transform data formats and write results to S3. Option B achieves full automation with a single configuration, covering both existing and future metrics, satisfying the minimal operational overhead requirement. Option A does not explicitly specify inclusion of all metrics; Option C conflates log filters with metrics streams; Option D processes logs rather than metrics data.