Objectives
- Create an AWS DynamoDB table
- Add data to a DynamoDB table
- Modify data
- Query DynamoDB
- Delete a DynamoDB table
Lab Details
- Create a new DynamoDB table named Movies. For the primary key use Title as String. Add a sort key named Genre as String.
Take a screenshot of the table that shows the keys.
- Add data — click the items tab of your Movies table and choose Create item. Add 5 movies that include the Title and Genre. For each movie, add 1 additional, unique attribute (e.g. director, running time).
Take a screenshot of the table data that shows the 5 movies.
- Change the genre of 1 of your movies.
Take a screenshot of the table data that shows the 5 movies.
- Filter your table to display all movies with a genre of comedy.
Take a screenshot of the comedy movies.
- Query your table to look for a movie with a specific title. Make sure it is a movie in your dataset.
Take a screenshot of the query result.
- After completing the lab and getting credit in the Grade Center, delete the DynamoDB resources to avoid being billed.
What did I learn?
- Creating a new table
- Add data to your table
- Modifying data
- Query and Scan based on attribute matching