Medium1 markMultiple Choice
Domain 2.4: ReliabilityServerlessAppSyncReal-timeSecurity

AWS SAP-C02 · Question 59 · Domain 2.4: Reliability

A company is building a serverless application using AWS AppSync (GraphQL), AWS Lambda, and Amazon DynamoDB. The application allows users to post messages. The company wants to implement real-time updates so that when a user posts a message, all other users viewing the application see the new message instantly without refreshing the page. They also want to ensure that users can only see messages in channels they are authorized to access. Which combination of features should be used? (Select TWO)

Answer options:

A.

Use AWS AppSync Subscriptions to push real-time updates to connected clients.

B.

Implement AWS AppSync resolvers with Amazon Cognito User Pools for authorization checks.

C.

Use Amazon API Gateway WebSockets to manage the real-time connections.

D.

Use Amazon SNS to send push notifications to the web browsers.

E.

Configure DynamoDB Streams to trigger a Lambda function that updates the clients.

F.

Use AWS IAM roles attached to the client browsers to authorize access to channels.

How to approach this question

Identify the native real-time feature of AppSync and its native authentication integration.

Full Answer

Use AWS AppSync Subscriptions to push real-time updates to connected clients., Implement AWS AppSync resolvers with Amazon Cognito User Pools for authorization checks.
AWS AppSync is a managed GraphQL service. GraphQL supports `Subscriptions`, which allow clients to maintain a persistent WebSocket connection to the server. When a `Mutation` (like posting a message) occurs, AppSync automatically pushes the update to all subscribed clients in real-time. For authorization, AppSync integrates seamlessly with Amazon Cognito User Pools, allowing you to restrict access to specific data (channels) based on the authenticated user's identity.

Common mistakes

Trying to build a custom WebSocket solution with API Gateway when AppSync provides it natively.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5

75 questions · hints · full answers · grading

More questions from this exam