hands-on lab

Building a GraphQL API with AWS AppSync and DynamoDB

Intermediate
1h 30m
59
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.
Lab 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
About the author
Avatar
Jun Fritz
Cloud Labs Developer
Students
39,042
Labs
103
Courses
1
Learning paths
6

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

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