0
0
DynamoDBquery~5 mins

AppSync with DynamoDB (GraphQL) - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is AWS AppSync?
AWS AppSync is a service that makes it easy to build GraphQL APIs by handling the heavy lifting of securely connecting to data sources like DynamoDB, Lambda, and more.
Click to reveal answer
beginner
How does AppSync connect to DynamoDB?
AppSync connects to DynamoDB using resolvers that translate GraphQL requests into DynamoDB operations like GetItem, PutItem, Query, and Scan.
Click to reveal answer
beginner
What is a resolver in AppSync?
A resolver is a piece of code or configuration that tells AppSync how to fetch or modify data from a data source when a GraphQL query or mutation is executed.
Click to reveal answer
intermediate
Why use GraphQL with DynamoDB via AppSync instead of direct DynamoDB calls?
GraphQL with AppSync provides a flexible API that lets clients request exactly the data they need, reduces over-fetching, and simplifies real-time updates and offline support.
Click to reveal answer
intermediate
What is a common pattern for modeling data in DynamoDB for AppSync?
A common pattern is to use a single table design with partition keys and sort keys to efficiently query related data, enabling fast and flexible access through GraphQL queries.
Click to reveal answer
What does a resolver in AppSync do?
ATranslates GraphQL requests to data source operations
BStores data in DynamoDB
CCreates GraphQL schemas
DManages user authentication
Which AWS service is used to build GraphQL APIs that connect to DynamoDB?
AAWS Lambda
BAmazon S3
CAmazon RDS
DAWS AppSync
In AppSync, what type of DynamoDB operation would a 'Query' resolver perform?
ARetrieve multiple items based on partition key and optional sort key
BDelete a single item
CAdd a new item
DScan the entire table
What is a benefit of using GraphQL with AppSync over REST APIs for DynamoDB?
AGraphQL does not support mutations
BClients can request only the data they need
CAppSync automatically creates tables
DGraphQL requires no schema
Which of these is NOT a typical data source for AppSync?
ADynamoDB
BAmazon S3
CAmazon EC2
DAWS Lambda
Explain how AWS AppSync works with DynamoDB to serve GraphQL requests.
Think about the flow from client to database and back.
You got /4 concepts.
    Describe the advantages of using GraphQL with AppSync over direct DynamoDB API calls.
    Consider client experience and API flexibility.
    You got /4 concepts.