SAP-C02 Question 103
Select 2A company is migrating its monolithic application to AWS and has decided to redesign it using a microservices architecture. The application needs to handle high throughput, provide low-latency responses, and ensure each microservice can scale independently. Additionally, the company requires a fully managed, serverless solution for inter-service communication. Which combination of services should the company use to meet these requirements?
- A
Amazon API Gateway for request routing and Amazon SQS for inter-service communication
- B
Amazon API Gateway for request routing and Amazon EventBridge for inter-service communication
- C
AWS App Mesh for service-to-service communication and Amazon DynamoDB for data storage
- D
Amazon API Gateway for request routing and AWS Lambda for service execution
- E
Amazon API Gateway for request routing and Amazon SNS for inter-service communication
Show answer and explanation
Correct answers: B, D
Explanation
The company's requirements include scalable, low-latency, fully managed, and serverless solutions for microservices communication. Amazon API Gateway is ideal for routing client requests to the appropriate microservices, while AWS Lambda provides serverless service execution. For inter-service communication, Amazon EventBridge is a managed event bus that supports asynchronous communication, which is crucial in microservices architectures. Therefore, combining Amazon API Gateway and AWS Lambda with Amazon EventBridge fulfills the requirements effectively.
- A. Incorrect.
Amazon API Gateway is suitable for request routing, but Amazon SQS is better for decoupling and asynchronous communication, not low-latency inter-service communication typically required for microservices.
- B. Correct.
Amazon API Gateway is well-suited for request routing, and Amazon EventBridge is a fully managed event bus service that supports asynchronous inter-service communication, making it a suitable choice for microservices architectures.
- C. Incorrect.
AWS App Mesh is a service mesh solution for service discovery and communication but does not directly address the need for request routing or fully managed, serverless inter-service communication.
- D. Correct.
Amazon API Gateway provides request routing, and AWS Lambda can execute service logic in a serverless and scalable manner, meeting the requirements for microservices.
- E. Incorrect.
Amazon API Gateway can handle request routing, but Amazon SNS is primarily used for pub/sub messaging patterns and not optimized for low-latency, direct inter-service communication.