A security monitoring firm is designing an ingestion pipeline for smart security cameras. The cameras generate a combined peak of motion detection events per second, with each event payload being a JSON object. The company requires that events from each camera be processed in the exact order they are generated to maintain a chronological timeline. The data must be transformed into Apache Parquet format and stored in Amazon S3 for ad-hoc querying via Amazon Athena. The ingestion latency from event generation to storage in Amazon S3 must be less than minutes, and the solution should minimize operational management. Which architecture meets these requirements?
- Ingest the data into an Amazon Kinesis Data Stream configured with On-Demand capacity, using the camera ID as the partition key. Configure Amazon Data Firehose to consume the data from the stream, convert the format to Apache Parquet using the AWS Glue Schema Registry, and write the output to Amazon S3 with a buffer interval of 300 seconds.Cevap
- BIngest the data into an Amazon SQS Standard queue, using the camera ID as the message group ID. Configure an AWS Glue ETL job running every 5 minutes to read messages from the queue, convert them to Apache Parquet format, and write the output to Amazon S3.
- CIngest the data into an Amazon Kinesis Data Stream provisioned with 8 shards, using the camera ID as the partition key. Configure Amazon Data Firehose to consume from the stream, convert the JSON payloads to Apache Parquet using AWS Glue, and write to Amazon S3 with a buffer interval of 300 seconds.
- DIngest the data into an Amazon Kinesis Data Stream configured with On-Demand capacity, using the camera ID as the partition key. Deploy a fleet of AWS Lambda functions running continuously to pool the stream, buffer the records in memory for 5 minutes to perform Parquet transformation, and upload the results to Amazon S3.
Cevap
Ingest the data into an Amazon Kinesis Data Stream configured with On-Demand capacity, using the camera ID as the partition key, and use Amazon Data Firehose to perform format conversion and delivery to Amazon S3 with a 300-second buffer interval.
The correct architecture uses Amazon Kinesis Data Streams with On-Demand capacity to ingest high-velocity data. Using the camera ID as the partition key ensures that all events for a given camera are mapped to the same shard, which guarantees in-order delivery. Amazon Data Firehose integrates directly with Kinesis Data Streams, scales automatically, performs native JSON-to-Parquet conversion using the AWS Glue Schema Registry, and writes to Amazon S3 within the 5-minute latency requirement, minimizing both operational overhead and infrastructure management.
Adım Adım Çözüm
Anahtar Kavram
High-performing real-time data ingestion pipelines must dynamically scale to meet peak throughput while satisfying operational simplicity and strict message ordering constraints by using Amazon Kinesis Data Streams with partition keys coupled with Amazon Data Firehose for format transformation.