AmazonAmazon
DVA-C02 · Question #503
DVA-C02 Question #503: Real Exam Question with Answer & Explanation
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #503. The question stem and answer options stay visible for context.
Submitted by kevin_r· Mar 5, 2026Development with AWS Services
Question
A company's application includes an Amazon DynamoDB table for product orders. The table has a primary partition key of orderId and has no sort key. The company is adding a new feature that requires the application to query the table by using the customerId attribute. Which solution will provide this query functionality?
Options
- AChange the existing primary key by setting customerId as the sort key.
- BCreate a new global secondary index (GSI) on the table with a partition key of customerId.
- CCreate a new local secondary index (LSI) on the table with a partition key of customerId.
- DCreate a new local secondary index (LSI) on the table with a partition key of orderId and a sort
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.