Querying by a New Attribute
An existing DynamoDB orders table is keyed by customerId. The team now needs to query orders by status across all customers. What can they add?
orders
customerId
status
Choose one answer
A local secondary index on status, added with an UpdateTable call.
UpdateTable
A global secondary index with status as its partition key.
A scan with a filter expression, which uses an index automatically.
A sort key on status, added to the table's primary key with UpdateTable.