A health tracking application named FitPulse records real-time heart rate data from millions of user devices. The application writes telemetry records directly to an Amazon DynamoDB table configured with provisioned write capacity. The table uses `DeviceType` (with values such as `Watch`, `Band`, or `Ring`) as the partition key and `Timestamp` as the sort key. During a global fitness event, write activity surges, and the application receives a high volume of `ProvisionedThroughputExceededException` errors. CloudWatch metrics show that the total consumed Write Capacity Units (WCUs) are well below the table's total provisioned WCU limit. Which of the following is the most effective solution to resolve this throttling issue and ensure even write distribution across the partitions?
- AModify the application to retrieve records using parallel Scan operations on the DynamoDB table to bypass partition throughput limits.
- Redesign the partition key schema to use a high-cardinality attribute such as `DeviceId` and, if write volumes for a single device are extremely high, append a random or calculated numeric suffix to the partition key.Cevap
- CIncrease the visibility timeout of the Amazon SQS queue that buffers incoming writes to hours to allow the DynamoDB table more time to process the backlog.
- DHardcode the IAM User's access key and secret access key in the application's SDK client initialization code to reduce credential retrieval latency during write surges.