DOP-C02 Question 175
Select 3You are designing a distributed architecture for a large-scale e-commerce platform. The platform must handle millions of concurrent users, ensure high availability, and allow independent scaling for various components such as the product catalog, user authentication, and payment processing. Which combination of AWS services would best support a loosely coupled and distributed architecture?
- A
Amazon SQS for decoupling components and enabling asynchronous communication
- B
Amazon RDS Multi-AZ for storing session state and user data
- C
Amazon API Gateway for managing RESTful APIs and enabling microservices communication
- D
Elastic Load Balancer (ELB) for distributing traffic between tightly integrated backend services
- E
Amazon DynamoDB for storing product catalog data with high availability and scalability
Show answer and explanation
Correct answers: A, C, E
Explanation
A loosely coupled and distributed architecture relies on services that allow scalability, fault tolerance, and independence between components. Amazon SQS enables asynchronous communication between components, making them independent. Amazon API Gateway facilitates microservices communication, ensuring that components can evolve independently. Amazon DynamoDB is highly scalable and available, fitting the needs of a distributed architecture for storing critical, high-traffic data like product catalogs. Together, these services ensure a robust and scalable architecture.
- A. Correct.
Amazon SQS is a perfect fit for a loosely coupled architecture as it decouples components by enabling asynchronous communication between them.
- B. Incorrect.
While Amazon RDS Multi-AZ is excellent for relational database needs, it is not ideal for storing session state in a distributed architecture. A more appropriate solution would be a stateless mechanism or Amazon DynamoDB.
- C. Correct.
Amazon API Gateway is a key service for managing RESTful APIs and enabling communication between microservices, making it a vital part of a loosely coupled architecture.
- D. Incorrect.
Elastic Load Balancer (ELB) is used for distributing traffic but is not suitable for tightly integrated backend services in a distributed architecture. A loosely coupled design would avoid tight integration.
- E. Correct.
Amazon DynamoDB is an ideal choice for storing product catalog data as it provides high availability, scalability, and low-latency performance, which are critical for e-commerce platforms.