A logistics company is designing a real-time package tracking dashboard. The tracking system must ingest millions of package coordinates daily from IoT sensors. The database must support high-volume write throughput and deliver single-digit millisecond latency for read queries. A solutions architect needs to design a high-performing database architecture that avoids read and write bottlenecks during peak operation hours.
Which combination of configurations will achieve this objective? (Select TWO.)
- Use Amazon DynamoDB with a composite primary key consisting of a high-cardinality Package ID as the partition key and a timestamp as the sort key.Answer
- Enable Amazon DynamoDB Accelerator (DAX) to cache read queries for the package status updates.Answer
- CUse Amazon DynamoDB with a partition key set to the shipping date formatted as YYYY-MM-DD.
- DDeploy Amazon RDS for PostgreSQL and configure read replicas to automatically handle write failovers during traffic surges.
- EConfigure Amazon DynamoDB in Provisioned Capacity Mode with static Write Capacity Units (WCUs) to absorb sudden, unpredictable load spikes.
Answer
Use Amazon DynamoDB with a composite primary key consisting of a high-cardinality Package ID as the partition key and a timestamp as the sort key, and enable Amazon DynamoDB Accelerator (DAX) to cache read queries for the package status updates.
The correct approach uses Amazon DynamoDB with a high-cardinality Package ID partition key and a timestamp sort key to distribute writes evenly across partitions and prevent write bottlenecks. It also leverages Amazon DynamoDB Accelerator (DAX) to cache read queries, reducing response times to microseconds for frequently requested package tracking updates.
Step-by-Step Solution
Key Concept
Designing partition keys with high cardinality and using in-memory caching to optimize NoSQL database performance under heavy read/write workloads.