What are the types of Secondary key in DynamoDB?

0 votes
Please explain me the different types of Secondary Keys in DynamoDB? Thank you in advance for helping.
Mar 5 in AWS by Shuvo
48 views

1 answer to this question.

0 votes

The primary key is used to uniquely identify an item in a table, and all the queries made against the table are using the primary key. However, sometimes you require additional access patterns that would be inefficient with just the primary key. DynamoDB has the notion of secondary indexes that enable user to access these additional access patterns.

There are two types of Secondary Index:

  1. Local Secondary Index: A local secondary index uses the same partition key as the underlying table but a different sort key.
  2. Global Secondary Index: A global secondary index can define an entirely different primary key for a table. 
answered Mar 5 by Pranav

Related Questions In AWS

0 votes
1 answer

What are the benefits of setting up systems manager in Hybrid Environment?

There are several benefits: It creates a secure ...READ MORE

answered Jan 10 in AWS by Ananya
25 views
0 votes
1 answer
0 votes
1 answer

What are the different types of sevices offered by AWS?

The services offered by AWS are as ...READ MORE

answered Mar 7 in AWS by Priyaj
• 56,940 points
30 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer
0 votes
1 answer

What are the main features of DynamoDB?

DynamoDB is a hosted NoSQL database that is ...READ MORE

answered Mar 5 in AWS by Esha
63 views