Overview
Prerequisites
- Good knowledge of AWS services
- RDS Database
- Security groups
- AWS Lambda
- Laptop/Desktop
- Internet Browser
- Internet connection
- For testing this lab, it is necessary to download the MySQL GUI Tool. To download it, go to the Download MySQL Workbench page. Based on your OS, select the respective option under Generally Available (GA) Releases. Download and Install.

Challenge Instructions
- Region: Make sure to use the us-east-1 region to create all the resources.
- You will be provided with the requirements of the challenge. If you are new to AWS Cloud, we recommend you go through our hands-on Labs before taking this challenge.
- Challenge Duration: 60 minutes
How to submit the challenge
- After building the infrastructure, click on the Check my work button, to validate if you have built the required infrastructure and completed the challenge successfully.
-
Validation status
- Success - You have completed the challenge successfully.
- Failed - You have failed to complete the challenge.
- Once you have successfully validated the challenge, click on End lab button.
Launching Challenge Environment
- To launch the challenge environment, Click on the Launch lab button.
- Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
- Once the challenge is started, you will be provided with IAM user name, Password, Access Key, and Secret Access Key.
You can only start one challenge at any given time
Files you need
Download these before you start — the lab cannot be completed without them.Lab guide
Sign in to the AWS Management Console
- Click on the Open console button, and you will get redirected to AWS Console in a new browser tab.
- On the AWS sign-in page,
- Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab.
- Now copy your User Name and Password in the Lab Console to the IAM Username and Password in AWS Console and click on the Sign in button.
- Once Signed In to the AWS Management Console, Make the default AWS Region as US East (N. Virginia) us-east-1.
Cloud Challenge Details
In this lab challenge, your Amazon RDS MySQL and AWS Lambda skills are put to the test. You’ll be given a requirement and you have to reach it using your knowledge of AWS RDS and other AWS services relevant to working with MySQL Workbench. The Lab Challenge helps you understand real-time scenarios. A company XYZ is deploying a new web application. As a part of the infrastructure, they need a database for their testing environment. Now your challenge is to set up an AWS RDS MySQL database to create a table and insert their data using MySQL Workbench.- Create a VPC security group that allows MySQL port from the source 0.0.0.0/0. Use this security group during DB instance creation.
- One Lambda role i.e. task-10035-lambda-role-XXXXX is already created for you.
- Create an Amazon RDS DB instance with db.t3.micro.
- Connecting to RDS Database on a DB Instance using the MySQL Workbench and Use below MySQl Command in query tab:
-
Create a lambda Function :
- Select Runtime : Python 3.8.
- Click on this link Function code to download the Lambda zip code and Upload the Zip file
- Replace the endpoint, username & password
- Test the Function
- Replace the existing code with Lambda Code 2 and Test it.
- Navigate to the MySQL Workbench application and replace the existing query with the below:
- Click on Validate to complete the challenge.
End lab
- Sign out of the AWS Account
- You have successfully completed the lab.
- Once you have completed the steps, click on End lab in the IP Lab Portal.
What gets checked
When you press Check my work, the platform verifies each of these:- Launch RDS instance — Check whether an RDS Instance is created or not
- Check whether RDS database Engine type is mysql — Check whether allowed database type mysql is deployed or not
- Create an AWS Lambda Function — Check whether a Lambda Function is created or not