DAS-C01 · Question #101
A medical company has a system with sensor devices that read metrics and send them in real time to an Amazon Kinesis data stream. The Kinesis data stream has multiple shards. The company needs to…
The correct answer is D. Use an Amazon Kinesis Data Analytics application to read from the Kinesis data stream and. To calculate the per-second average of a numeric metric from a Kinesis data stream and trigger an SNS alarm within 30 seconds when thresholds are crossed, an Amazon Kinesis Data Analytics application should be used.
Question
A medical company has a system with sensor devices that read metrics and send them in real time to an Amazon Kinesis data stream. The Kinesis data stream has multiple shards. The company needs to calculate the average value of a numeric metric every second and set an alarm for whenever the value is above one threshold or below another threshold. The alarm must be sent to Amazon Simple Notification Service (Amazon SNS) in less than 30 seconds. Which architecture meets these requirements?
Options
- AUse an Amazon Kinesis Data Firehose delivery stream to read the data from the Kinesis data
- BUse an AWS Lambda function to read from the Kinesis data stream to calculate the average per
- CUse an Amazon Kinesis Data Firehose deliver stream to read the data from the Kinesis data
- DUse an Amazon Kinesis Data Analytics application to read from the Kinesis data stream and
How the community answered
(30 responses)- A13% (4)
- B7% (2)
- C3% (1)
- D77% (23)
Why each option
To calculate the per-second average of a numeric metric from a Kinesis data stream and trigger an SNS alarm within 30 seconds when thresholds are crossed, an Amazon Kinesis Data Analytics application should be used.
Amazon Kinesis Data Firehose is designed for delivering streaming data to various destinations, not for performing complex real-time aggregations or analytics within the stream itself.
While an AWS Lambda function can read from Kinesis, implementing reliable per-second average calculations across multiple shards, managing state, and ensuring timely alarming within 30 seconds across variable data volumes is complex and less efficient than using Kinesis Data Analytics.
Amazon Kinesis Data Firehose is designed for delivering streaming data to various destinations, not for performing complex real-time aggregations or analytics within the stream itself.
Amazon Kinesis Data Analytics is purpose-built for real-time stream processing, allowing continuous ingestion from a Kinesis Data Stream, performing windowed aggregations like calculating average values every second, and outputting these results to Amazon CloudWatch for metric monitoring and alarm triggering via Amazon SNS, all within the specified latency requirements.
Concept tested: Real-time stream processing and alerting with Kinesis Data Analytics
Source: https://docs.aws.amazon.com/kinesisanalytics/latest/dg/how-it-works.html
Topics
Community Discussion
No community discussion yet for this question.