A healthcare provider is designing a data ingestion pipeline to collect real-time health metrics from patient monitoring devices. Each device transmits a JSON payload every to a public endpoint. The provider needs to ingest these payloads, transform them into Apache Parquet format, and save them to Amazon S3. The data must be queryable in Amazon Athena within of generation. Additionally, the chronological order of records sent by each device must be maintained during ingestion to ensure clinical analysis accuracy. The architecture must scale dynamically to handle peak traffic with minimal management overhead. Which architecture meets these requirements?
- AUse Amazon Kinesis Data Streams (KDS) configured with provisioned shards to ingest the data, and set up Amazon Kinesis Data Firehose as the destination to convert the format to Apache Parquet before writing to Amazon S3.
- Use Amazon Kinesis Data Firehose (Amazon Data Firehose) to ingest the stream. Configure Firehose to perform inline format conversion to Apache Parquet using an AWS Glue Data Catalog schema, and deliver the files to Amazon S3 with a buffer interval of .Answer
- CUse a standard Amazon SQS queue to ingest the payloads, and trigger an AWS Lambda function to batch and transform the payloads to Apache Parquet format before writing them to Amazon S3.
- DUse Amazon Kinesis Data Streams (KDS) configured with provisioned shards to ingest the data, and use an AWS Glue streaming ETL job to transform and write the data to Amazon S3 in Apache Parquet format.
Answer
The correct architecture uses Amazon Kinesis Data Firehose to ingest the data, performs format conversion to Apache Parquet using AWS Glue, and buffers the data for 120 seconds before writing to Amazon S3.
The ingestion architecture using Amazon Kinesis Data Firehose (Amazon Data Firehose) with AWS Glue inline format conversion is the most operationally efficient. Amazon Data Firehose is a fully managed, serverless service that automatically scales to handle incoming throughput without shard provisioning. It natively integrates with the AWS Glue Data Catalog to perform real-time format conversion from JSON to Apache Parquet before writing to Amazon S3. A buffer interval of ensures that the files are delivered to S3 within the requirement. Furthermore, Firehose preserves the ingestion order of incoming records.
Step-by-Step Solution
Key Concept
Serverless streaming ingestion and inline format conversion using Amazon Kinesis Data Firehose and AWS Glue.
Estimated Time:2m 0s