A data ingestion service writes events to a Kinesis Data Stream. Downstream processors must read in order per customerId, and you want scaling that adapts to shard count changes without losing ordering guarantees. What configuration best meets these requirements?
Answer
Set the stream to on-demand mode, ensure partition keys are always derived from customerId, and use the Enhanced Fan-Out consumer to scale
Explanation
Ordering is preserved within a shard for records sharing the same partition key. Using customerId as the partition key keeps per-customer ordering while Enhanced Fan-Out supports parallel scaling for consumers.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A system uses Amazon RDS Multi-AZ with a read replica for reporting. During peak hours, write latency rises, but read traffic remains stable. The database administrator asks you to implement automatic failover to reduce disruption, while maintaining read capacity. Which move best addresses this request?
View question →
You must design an AWS Storage solution where applications need low-latency access to frequently-read objects in multiple regions, while keeping durability and lifecycle cost controls. Which approach is most suitable?
View question →
You need to run an API that performs stateful workflows where each step may take up to 15 minutes. Some steps involve calling external services with retries and timeouts. Which AWS service integration pattern best fits while minimizing operational overhead?
View question →
A company must run a compute workload that can tolerate interruptions and requires massive parallelism. The workload must handle variable capacity and should prioritize cost efficiency while still completing within a maintenance window. What is the best strategy?
View question →
You are designing a VPC for a multi-tier app. The ALB must be reachable only from the corporate network, but ECS tasks need outbound internet for software updates. Which design provides least privilege while meeting requirements?
View question →
A workload stores user uploads in S3 and must enforce: (1) only HTTPS requests, (2) encryption at rest using SSE-S3, and (3) preventing access from any source VPC endpoint bypass. Which combination is most appropriate?
View question →