Global and Local Secondary Indexes

5 minutes 5 Questions

Global and Local Secondary Indexes are used to optimize query performance in Amazon DynamoDB. A Global Secondary Index (GSI) is an index that has a partition key and an optional sort key different from the base table. It allows you to query the data with a different primary key. A Local Secondary I…

Test mode:
AWS Certified Solutions Architect - Global and Local Secondary Indexes Example Questions

Test your knowledge of Global and Local Secondary Indexes

Question 1

You are designing a DynamoDB table to store information about music artists and their songs. You need to efficiently search for songs by the artist's name and release year. Which design would best suit this scenario?

Question 2

You have a DynamoDB table with information about books and their authors. You want to retrieve the top reviewed books for a selected author. Which design would be best?

Question 3

You need to retrieve a list of all customer orders made within the last month sorted by order creation date. Which design would you choose for the best performance?

More Global and Local Secondary Indexes questions
18 questions (total)