Skip to main content

07. Create and Use a DynamoDB Table

This exercise demonstrates how to create a DynamoDB table, insert data, and understand its serverless and schema-flexible behavior.


1️⃣ Create Table

StepAction
1Go to AWS Management Console → DynamoDB → Tables → Create Table
2Enter Table name: DemoTable
3Set Partition key: user_id (String)
4Leave all other settings as default
5Click Create table

2️⃣ Insert Items

Item 1

AttributeValue
user_id1234
first_nameStephane
last_nameMaarek
number42

Item 2

AttributeValue
user_id45678
first_nameAlice

➡ DynamoDB accepts the second item even though it has fewer attributes — showing its flexible schema.


3️⃣ Observe Behavior

  • No need to define or manage a database — DynamoDB is fully serverless.
  • You only create a table, not a full database instance.
  • Schema-less: Items in the same table can have different attributes.
  • No joins — all data should be stored in one table (NoSQL structure).
IAM Roles Example

✅ Result

You created and interacted with a DynamoDB table without provisioning or managing servers — demonstrating the power of serverless and NoSQL design in AWS DynamoDB.