Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

AWS Cloud Practitioner Sale - Get a Chance to Win FREE Access to our new DEA Practice Exams

Guided Lab: Querying a Local Secondary Index

Description

A Local Secondary Index (LSI) in DynamoDB is an index that has the same partition key as the base table, but a different sort key. It’s “local” in the sense that every partition of a local secondary index is scoped to a base table partition that has the same partition key value.

One important thing to note about LSIs is that they must be specified at the time of table creation. You cannot add a local secondary index to an existing table. This is a key difference from Global Secondary Index.

Prerequisites

This lab assumes you have experience creating an Amazon DynamoDB table and are familiar with its basic components.

If you find any gaps in your knowledge, consider taking the following labs:

  • Creating an Amazon DynamoDB table

Objectives

In this lab, you will learn how to:

  • Understand the concept of the Local Secondary Index in DynamoDB.
  • Learn how to create a Local Secondary Index.
  • Learn how to query a Local Secondary Index.