nerdexam
Amazon

SAA-C03 · Question #335

A company is developing a serverless, bidirectional chat application that can broadcast messages to connected clients. The application is based on AWS Lambda functions. The Lambda functions receive…

The correct answer is C. Use an Amazon API Gateway WebSocket API to direct incoming JSON messages to backend. For bidirectional communication such as chat applications, Amazon API Gateway WebSocket API is the correct service. WebSocket APIs allow clients to establish long-lived connections and exchange messages with the backend Lambda functions in real time. HTTP APIs and REST APIs are…

Submitted by kevin_r· Mar 4, 2026Design High-Performing Architectures

Question

A company is developing a serverless, bidirectional chat application that can broadcast messages to connected clients. The application is based on AWS Lambda functions. The Lambda functions receive incoming messages in JSON format. The company needs to provide a frontend component for the application. Which solution will meet this requirement?

Options

  • AUse an Amazon API Gateway HTTP API to direct incoming JSON messages to backend
  • BUse an Amazon API Gateway REST API that is configured with a Lambda proxy integration.
  • CUse an Amazon API Gateway WebSocket API to direct incoming JSON messages to backend
  • DUse an Amazon CloudFront distribution that is configured with a Lambda function URL as a

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    83% (24)
  • D
    3% (1)

Explanation

For bidirectional communication such as chat applications, Amazon API Gateway WebSocket API is the correct service. WebSocket APIs allow clients to establish long-lived connections and exchange messages with the backend Lambda functions in real time. HTTP APIs and REST APIs are suitable for request-response models, not continuous two-way communication. CloudFront cannot maintain stateful WebSocket connections, so only Option C fits the requirements for a real-time, bidirectional application.

Community Discussion

No community discussion yet for this question.

Full SAA-C03 Practice