SAP-C02 · Question #538
SAP-C02 Question #538: Real Exam Question with Answer & Explanation
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.
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
Explanation
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.
Common mistakes.
- A. 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.
- B. 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.
- D. 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
Reference. https://aws.amazon.com/blogs/mobile/building-a-serverless-graphql-api-with-aws-appsync/
Community Discussion
No community discussion yet for this question.