Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Implementing a Simple DynamoDB Application

In this lab, we will implement a simple application that accepts CSV files, converts them to DynamoDB JSON, and puts the data into a table with the same name as the file. In the solution video, we will walk through how to reach these goals with the Python Boto3 SDK.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Advanced
Duration
Clock icon 1h 0m
Published
Clock icon Nov 22, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Write Application Code

    Write code utilizing the AWS SDK for the language of your choice to convert the CSV file with the field delimiter of Ԙ and quotation character of ԡ to the DynamoDB JSON format as seen below. Also include table creation for tables that share the name of the provided files without the file extension, and write the converted files to the appropriate tables.

    Data Conversion Sample

    So this:

    "ԡ12ԡԘԡGiant Sandԡ"
    

    Becomes:

    {
        'id': {
            'N': '12'
        },
        'name': {
            'S': 'Giant Sand'
        }
    },
    

    Hint: The code can be found on GitHub.

  2. Challenge

    Log In to the Provided EC2 Instance and Run the Code

    1. Log in to the provided EC2 instance using the provided IP address and credentials.
    2. Write your code to a file named pinehead_data_util and configure to be able to run as a command.
    3. Run your code!
  3. Challenge

    Verify the Data Migration to AWS

    1. Log in to the AWS Management Console for the lab account with the provided credentials.
    2. Navigate to DynamoDB.
    3. Verify there are three tables and the appropriate data loaded correctly.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans