hands-on lab

Building a GraphQL API with AWS AppSync and DynamoDB

Difficulty: Intermediate
Duration: Up to 1 hour and 30 minutes
Students: 78
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

AWS AppSync is a fully-managed, pay-per-use GraphQL service that enables developers to prototype and build web and mobile applications using real-time data. With AppSync, developers can create an API that is accessible under a single endpoint and utilizes GraphQL as a unified query language. AppSync handles the data requests and responses, as well as connections to one or more data sources like AWS Lambda, AWS DynamoDB, and HTTP APIs.

In this lab, you will work with the AWS AppSync interface via the AWS console to build a GraphQL API backed by multiple data sources. You will learn how to manage data models, schemas, resolvers, and more via the AWS AppSync console.

Note: GraphQL concepts and terminology are used throughout this lab. Students who are unfamiliar with GraphQL, or who need a refresher, are highly encouraged to perform the Introduction to GraphQL hands-on lab.

Learning objectives

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

  • Create a GraphQL API using AWS AppSync
  • Configure DynamoDB tables as an API data source
  • Define a GraphQL Schema
  • Attach and update GraphQL Resolvers

Intended audiences

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

Prerequisites

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

  • GraphQL
  • AWS DynamoDB

The following content can be used to fulfill the prerequisite:

 

Updates

December 7th, 2023 - Updated screenshots and instructions to reflect the latest UI

Environment before

Environment after

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Creating a GraphQL API with AWS AppSync
Reviewing the AWS AppSync API
Expanding the AWS AppSync API
Testing the AWS AppSync API
Optional: Update createBook solution