Read Data in a DynamoDB Table

DynamoDB is a NoSQL database service provided by AWS. In this lab, we’ll learn to read data from a DynamoDB table.

image

We can read data from an existing table in two ways:

  • Querying returns the partition of data specified by the partition key and sorted according to the sort key.
  • Scanning applies filters to the table data and returns the filtered items.

We’ll cover both approaches in this lab.

Lab tasks

  • Create a table.
  • Add data to the table.
  • Query the table.
  • Scan the table.
  • Clean up.

Architecture diagram

The following is the high-level architecture diagram of how to read data from a DynamoDB table.

image