Getting Started with Aurora DSQL

Getting Started with Aurora DSQL
Getting Started with Aurora DSQL

CLOUD LABS



Getting Started with Aurora DSQL

In this Cloud Lab, you’ll build a multi-region serverless application using Amazon Aurora DSQL, AWS Lambda, API Gateway, and AWS Amplify to ensure high availability and seamless data synchronization.

10 Tasks

beginner

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of how Amazon Aurora DSQL enables multi-region high availability with synchronous replication
An understanding of how AWS Lambda functions interact with Aurora DSQL for efficient data querying and insertion
Hands-on experience setting up API Gateway to expose secure REST APIs for seamless backend communication
Hands-on experience deploying a React web application on AWS Amplify and integrating it with backend services

Technologies
Amplify
API Gateway logoAPI Gateway
Lambda logoLambda
Cloud Lab Overview

Aurora DSQL (Distributed SQL) is a cloud-native, distributed database system designed for high availability, scalability, and fault tolerance. Unlike traditional databases, Amazon Aurora DSQL clusters operate across multiple AWS regions, providing synchronous replication and automatic failover to ensure minimal downtime and data consistency.

In this Cloud Lab, you’ll build a highly available, multi-region serverless application using Amazon Aurora DSQL clusters, AWS Lambda, API Gateway, and AWS Amplify:

  • First, you’ll deploy Aurora DSQL clusters in us-east-1 and us-east-2, ensure synchronous replication, and configure a witness region for automatic failover. Once the database infrastructure is in place, you’ll deploy AWS Lambda functions in both regions to handle data querying and insertion. These functions will interact with the Aurora DSQL clusters, ensuring seamless data operations.

  • Next, you’ll create REST APIs using AWS API Gateway in both regions, exposing secure endpoints for the frontend application. These APIs will trigger the Lambda functions to handle GET and POST requests, enabling smooth data exchange between the application and the distributed database.

  • Finally, you’ll deploy web applications using AWS Amplify in both regions to interact with the database through API Gateway. To validate the system’s multi-region functionality, you’ll insert data in one region and verify its availability in the other, demonstrating the efficiency of cross-region synchronization.

After completing this Cloud Lab, you’ll have hands-on experience deploying a highly available, multi-region serverless application with Amazon Aurora DSQL. You’ll learn to configure and synchronize distributed database clusters, build serverless functions for efficient data handling, and create secure API integrations

The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Multi-region serverless architecture with Aurora DSQL
Multi-region serverless architecture with Aurora DSQL
Cloud Lab Tasks
1.Introduction
Getting Started
2.Set Up Aurora DSQL and Lambda
Create Aurora DSQL Clusters
Create an IAM Role
Create a Lambda Function in Region 1
Create a Lambda Function in Region 2
3.AWS API Gateway and Amplify
Create REST APIs
Deploy React Applications
Test the Synchronization
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Course

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like