- Lab
- A Cloud Guru
AWS DynamoDB in the Console - Creating Tables, Items, and Indexes
Welcome to this live AWS environment for learning the fundamentals of using DynamoDB in the AWS console. This lab provides you with essential exposure to database concepts such as partition and sort keys, how to add, delete, and update items, as well as attributes inside of a DynamoDB table. Indexes give access to alternate query patterns and can speed up queries. Secondary keys allow efficient access to data with attributes other than the primary key. You can create one or more secondary indexes on a table. Query or Scan requests can be done against those indexes. In the lab, you will add local and global secondary indexes, and use the local secondary index to query for items in your table.
Path Info
Table of Contents
-
Challenge
Create a DynamoDB Table
Use the AWS DynamoDB console to create a DynamoDB table named
MusicNotes
. Set the provisioned throughput for the new table to 1 Read Capacity Unit (RCU) and Write Capacity Unit (WCU).- Log in to the AWS console with the provided credentials
- Navigate to the DynamoDB portion of the console
- Create the
MusicNotes
DynamoDB table with a local secondary index
-
Challenge
Add Items to Your Table
After creating your DynamoDB
MusicNotes
table add some items to it.- Create the DynamoDB table (in the previous step)
- Add items to the table with the
Artist
andSongTitle
attributes as well as adding a few with theRating
attribute - Query for the items using the AWS DynamoDB Console
-
Challenge
Add a Global Secondary Index to your Table
Using the AWS Console, add a Global Secondary Index to your table.
- Select your DynamoDB table
- Open the indexes section of the DynamoDB console
- Create a global secondary index for your table
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.