An enterprise IoT platform receives telemetry data from connected sensors. The platform experiences highly unpredictable and spiky write traffic that peaks at writes per second, and requires microsecond read response times for active sensor queries. The payload of each sensor includes a sequential timestamp and a device ID. A team wants to implement a database architecture that maximizes throughput and minimizes read latency without introducing hot partitions.
Which database configuration should be implemented to meet these requirements?
- Store the sensor data in Amazon DynamoDB configured with on-demand capacity mode. Design the partition key as a composite value of the device ID and timestamp to distribute the write load, and enable Amazon DynamoDB Accelerator (DAX) to cache read operations.Cevap
- BStore the sensor data in Amazon DynamoDB configured with on-demand capacity mode. Design the partition key using the monotonically increasing timestamp to keep data chronologically sorted, and configure Amazon DynamoDB Accelerator (DAX) to cache read operations.
- CStore the sensor data in Amazon RDS for MySQL. Configure Multi-AZ for high availability, and deploy a Read Replica that serves as the primary automated disaster recovery failover target while handling the read traffic.
- DStore the sensor data in Amazon DynamoDB configured with provisioned capacity mode. Design the partition key as a composite value of the device ID and timestamp, and set a static provisioning value of write capacity units to optimize cost.
Cevap
Storing the sensor data in Amazon DynamoDB configured with on-demand capacity mode, using a composite partition key of device ID and timestamp, and enabling DynamoDB Accelerator (DAX) to cache reads.
The correct design uses Amazon DynamoDB with a composite partition key (device ID and timestamp) to distribute write workloads across partitions, preventing partition hot spots. It leverages on-demand capacity mode to scale dynamically with unpredictable traffic spikes, and integrates Amazon DynamoDB Accelerator (DAX) to achieve microsecond read latency.
Adım Adım Çözüm
Anahtar Kavram
High-performing NoSQL database design with partition key optimization and caching for low-latency operations.