🔥 3-day streak
AWS Certified Developer - Associate56 / 150
Question 56 of 150

A developer is building an order-tracking service backed by a DynamoDB table named Orders. The table uses OrderId as the partition key. A new requirement asks the application to efficiently retrieve all orders belonging to a specific CustomerId, and CustomerId is not part of the table's primary key. The team wants to avoid full table scans and minimize query latency. What is the MOST appropriate way to support this access pattern?

Reviewed for accuracy · Report an issueNext question