π§ͺ Hands-On: Your First DynamoDB Table
Create a DynamoDB table, add data, and see how it differs from a relational database.
You'll learn to:
π Create a DynamoDB table
π Set a partition key
π Add items
β‘ Experience DynamoDB's flexible NoSQL model
ποΈ Delete the table to avoid charges
π The Scenario
You've joined a startup building a high-traffic mobile app gaining thousands of signups a minute. Instead of managing servers, you choose DynamoDB β AWS's serverless NoSQL database.
Your task: create a table, store some user data, and see how simple a serverless database is to use.
Let's go! π
π§ Before You Begin
Unlike RDS, there's no server to set up:
β Just create a table
β AWS manages the infrastructure
β Nothing to provision or manage
β Scaling happens automatically
That's the serverless advantage β you focus on your data, AWS handles the rest.
β οΈ Cost Warning
DynamoDB has a generous Free Tier, but charges can still apply if your Free Tier has expired, you exceed limits, or you leave resources running.
π‘ Delete your table when done to avoid charges.
π Step 1: Open the DynamoDB Console
From the AWS Management Console:
Search for DynamoDB.
Open the Amazon DynamoDB Console.
From the navigation pane, click Tables.
Click Create table.

Everything in DynamoDB lives inside a table β no server setup first, you just create what you need.
π Step 2: Name and Partition Key

Table name: DemoTable
Every table needs a Partition Key. Enter: user_id β keep type String
π‘ The Partition Key uniquely identifies each item and is what DynamoDB uses to locate your data fast.
π‘ DynamoDB also supports Sort Keys, but they're outside the Cloud Practitioner exam scope β Partition Key only here.
π Step 3: Leave the Default Settings
Leave the rest of the settings as default β plenty of advanced options exist, but the goal here is understanding the core concept, not every setting.
β Leave all settings as their defaults.
Click Create Table
β³ Step 4: Wait for the Table to Be Created
Once status shows Active, click the table name.

π‘ Notice: no server, instance, or storage volume to configure β just a table. That's serverless in action.
π Step 5: View the Table Items
Click Explore table items (or View items) β you'll see 0 items returned, since the table is empty.
That's expected, Let's add some data.
π Step 6: Create Your First Item
Click Create item and enter:
user_id = 1234(Partition Key)first_name = codevedalast_name = e-learningfavorite_number = 1(Number type)

Click Create Item.

π No database server, no storage config, no software install, no rigid schema β just a table and your data.
π Step 7: Create a Second Item
Click Create Item and enter:
user_id = 45678first_name = diya

Click Create Item.

π€ Notice the Difference
Item 1 has first name, last name, and favorite number. Item 2 has only a first name β same table, different attributes, no problem.
π‘ DynamoDB doesn't require every item to share the same columns β each item's attributes can vary. That flexibility is a core NoSQL advantage.
π Comparing the Two Items
π user_id | π€ first_name | π€ last_name | π’ favorite_number |
|---|---|---|---|
1234 | codeveda | e-learning | 1 |
45678 | diya | β | β |
With RDS, you'd create related tables (Customers, Orders, Products) and join them with SQL. DynamoDB has no joins β data is generally designed to live in a single table, structured so your app gets everything it needs in one place. That's a key SQL vs NoSQL difference.
π― Why It's Powerful
This flexibility lets DynamoDB scale automatically, handle massive workloads, deliver extremely low latency, and store flexible data structures β ideal for modern cloud-native apps.
π Congratulations!
You've:
π Created a DynamoDB table
π Configured a Partition Key
π Added items with varying attributes
π§ Seen how NoSQL differs from relational databases
π§Ή Clean Up Your Resources
To avoid unnecessary charges, delete the table after completing the lab.
Return to Tables β select your table β Delete
Optionally delete associated CloudWatch alarms. Type delete, then click Delete Table.

Click: Delete Table

π Summary
You learned how to:
π Create a DynamoDB table
π Configure a Partition Key
π Insert items without a fixed schema
π§ Compare DynamoDB to relational databases
ποΈ Clean up resources safely
π― Exam Tips
β‘ DynamoDB = serverless NoSQL database
π Every table requires a Partition Key
π Items in the same table don't need identical attributes
π« No SQL joins between tables
π You create tables only β AWS manages the infrastructure
π‘ "Serverless NoSQL database, flexible schema, automatic scaling" β DynamoDB