hands-on lab

Accessing Amazon DynamoDB Using Amazon API Gateway Service Proxy

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 184
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

An underutilized aspect of API Gateway is its ability to integrate directly with AWS services. It's common to see an API endpoint backed by an AWS Lambda function that performs the service API call, but with the API Gateway Service Proxy feature, developers are able to access services without this additional compute layer. This can reduce the overhead associated with function code development, as well as avoid limitations brought on by AWS Lambda cost, function concurrency, and cold starts.

In this lab, you will configure HTTP endpoints that interact directly with an Amazon DynamoDB table using an API Gateway Service Proxy.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Configure a REST API with a GET and POST method using Amazon API Gateway
  • Integrate an API directly to an Amazon DynamoDB table
  • Deploy an API to an API Gateway stage

Intended Audience

  • Candidates for the AWS Certified Developer Associate Certification
  • Cloud Architects
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • REST APIs
  • Amazon API Gateway
  • Amazon DynamoDB

The following labs can be used to fulfill the prerequisite:

Updates

October 25th, 2023 - Updated the instructions and screenshots to reflect the latest UI

 

Environment before

Environment after

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Exposing the DynamoDB Scan Operation with an API Gateway Integration
Invoking the DynamoDB PutItem Action with an API Gateway Integration
Deploying an API to a Stage Using API Gateway