DVA-C02 · Question #377
DVA-C02 Question #377: Real Exam Question with Answer & Explanation
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #377. The question stem and answer options stay visible for context.
Question
A developer is creating a web application for a school that stores data in Amazon DynamoDB. The ExamScores table has the following attributes: student_id, subject_name, and top_score. Each item in the ExamScores table is identified with student_id as the partition key and subject_name as the sort key. The web application needs to display the student _id for the top scores for each school subject. The developer needs to increase the speed of the queries to retrieve the student_id for the top scorer for each school subject. Which solution will meet these requirements?
Options
- ACreate a local secondary index (LSI) with subject_name as the partition key and top_score as the
- BCreate a local secondary index (LSI) with top_score as the partition key and student_id as the
- CCreate a global secondary index (GSI) with subject_name as the partition key and top_score as
- DCreate a global secondary index (GSI) with subject_name as the partition key and student_id as
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.