AWS Certified Solutions Architect – Associate (SAA-C03) — Question 907

A company is migrating from a monolithic architecture for a web application that is hosted on Amazon EC2 to a serverless microservices architecture. The company wants to use AWS services that support an event-driven, loosely coupled architecture. The company wants to use the publish/subscribe (pub/sub) pattern.

Which solution will meet these requirements MOST cost-effectively?

Answer options

Correct answer: D

Explanation

Amazon SNS is the ideal AWS service for implementing a publish/subscribe (pub/sub) pattern to decouple microservices. When comparing the SNS options, Amazon API Gateway HTTP APIs are significantly more cost-effective and offer lower latency than REST APIs, making Option D the most budget-friendly choice. SQS (Option A) is a message queuing service rather than a pub/sub service, and Kinesis (Option C) is designed for data streaming and is more expensive.