nerdexam
Amazon

SAP-C02 · Question #538

A company wants to refactor its retail ordering web application that currently has a load-balanced Amazon EC2 instance fleet for web hosting, database API services, and business logic. The company…

The correct answer is C. Use Amazon S3 for web hosting with AWS AppSync for database API services. Use Amazon. To create a decoupled, scalable, and cost-effective retail ordering web application with a mechanism for retaining failed orders, a serverless architecture using S3, AppSync, Lambda, and SQS is optimal.

Submitted by haruto_sh· Mar 6, 2026Migrate Workloads and Modernize Solutions

Question

A company wants to refactor its retail ordering web application that currently has a load-balanced Amazon EC2 instance fleet for web hosting, database API services, and business logic. The company needs to create a decoupled, scalable architecture with a mechanism for retaining failed orders while also minimizing operational costs. Which solution will meet these requirements?

Options

  • AUse Amazon S3 for web hosting with Amazon API Gateway for database API services. Use
  • BUse AWS Elastic Beanstalk for web hosting with Amazon API Gateway for database API
  • CUse Amazon S3 for web hosting with AWS AppSync for database API services. Use Amazon
  • DUse Amazon Lightsail for web hosting with AWS AppSync for database API services. Use

How the community answered

(46 responses)
  • A
    26% (12)
  • B
    11% (5)
  • C
    57% (26)
  • D
    7% (3)

Why each option

To create a decoupled, scalable, and cost-effective retail ordering web application with a mechanism for retaining failed orders, a serverless architecture using S3, AppSync, Lambda, and SQS is optimal.

AUse Amazon S3 for web hosting with Amazon API Gateway for database API services. Use

While S3, API Gateway, and Lambda are good for serverless, the option incorrectly uses SQS for 'database API services'; SQS is a messaging queue, not an API service.

BUse AWS Elastic Beanstalk for web hosting with Amazon API Gateway for database API

AWS Elastic Beanstalk involves managing underlying EC2 instances, which is not as decoupled or cost-optimized as a fully serverless approach for web hosting and increases operational overhead.

CUse Amazon S3 for web hosting with AWS AppSync for database API services. Use AmazonCorrect

This solution uses Amazon S3 for highly scalable and cost-effective static web hosting. AWS AppSync provides a scalable, real-time GraphQL API for database services, decoupling the front end from the backend. AWS Lambda processes business logic in a serverless, pay-per-execution model, minimizing compute costs. Amazon SQS acts as a highly available, scalable queue to store order requests, providing a mechanism to retain failed orders for later processing and ensuring reliability in a decoupled manner.

DUse Amazon Lightsail for web hosting with AWS AppSync for database API services. Use

Amazon Lightsail is a simplified, fixed-price solution that may not provide the full flexibility, scalability, and cost optimization capabilities required for a highly decoupled retail application, compared to dedicated serverless services.

Concept tested: Serverless, decoupled, scalable web application architecture

Source: https://aws.amazon.com/blogs/mobile/building-a-serverless-graphql-api-with-aws-appsync/

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice