[go: up one dir, main page]

0% found this document useful (0 votes)
13 views7 pages

10 Creating A DynamoDB

The document provides a guide on creating and managing a DynamoDB database using Amazon's fully managed NoSQL service. It outlines the steps for creating a table, inserting data, and querying items, including details on setting primary and sort keys. Additionally, it offers contact information for support related to the hands-on lab practice.

Uploaded by

tapas202420
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

10 Creating A DynamoDB

The document provides a guide on creating and managing a DynamoDB database using Amazon's fully managed NoSQL service. It outlines the steps for creating a table, inserting data, and querying items, including details on setting primary and sort keys. Additionally, it offers contact information for support related to the hands-on lab practice.

Uploaded by

tapas202420
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Creating a DynamoDB

s
Creating a DynamoDB
Amazon DynamoDB is a fully managed NoSQL database service that allows to the creation of
database tables that can store and retrieve any amount of data. It automatically manages the
data traffic of tables over multiple servers and maintains performance. It also relieves the
customers from the burden of operating and scaling a distributed database. Hence, Amazon
manages hardware provisioning, setup, configuration, replication, software patching, cluster
scaling, etc.

DynamoDB uses a NoSQL database model, which is non-relational, allowing documents, graphs
and columnar among its data models. A user stores data in DynamoDB tables and then interacts
with it via getting and PUT queries, which are read and write operations, respectively.
DynamoDB supports basic CRUD operations and conditional operations. A primary key
identified by the user, which uniquely identifies each item, executes each DynamoDB query.

● Step 1: Open the AWS Management Console and log in to


https://aws.amazon.com/console/

● Step 2: Click on the “Services” option from the top menu and then under “Database”
select the “DynamoDB” option.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 3: Click on the “Create table” button.

● Step 4: Then, Enter the below details:

1. Table Name: Enter a name for the table i.e., scholartable.


2. Primary key: Enter companyid and select Number.
3. Add sort key: Enter the name in the respective field and select String.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 5: Leave all the other options as default and click on “Create table” button at the
bottom. Then, your table will be successfully created with the “active” status.

Inserting Data into DynamoDB Table

● Step 6: To add data to the table, select “scholartable” and click on the “EXPLORE ITEMS”
button.

● Step 7: Click on “Create item”

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 8: Now, you need to add a new primary key and sort key values.

1. companyid: 1
2. name: Steve

After entering the data, click on the “Create item” button in the right corner.

● Step 9: For Testing purposes, add 4-5 items as shown below and click on the “Create
item” button.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
Search for items in the Table

● Step 10: Switch to Query from Scan.

● Step 11: In the Query window, enter the partition key and sort the key which you want
to search.
1. Partition Key: Enter 2
2. Sort Key: James

● Step 11: Click on the “Run” button and You will be able to see a result table with the
filtered records.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
Contact Us
You can always reach out to us if you need help with this practice hands-on lab. For getting
help, email us at hello@scholarhat.com or connect at the #support channel on Discord.

Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.

You might also like