Question

Difficulty: MediumIdentify design principles of the AWS Cloud

An insurance firm is migrating its claims processing system to AWS. The system consists of a web portal, a document generation service, and a document archiving service. Currently, the web portal calls the document generation and archiving services synchronously. If the archiving service is temporarily unavailable, the entire claim submission fails. How should the firm redesign the application on AWS to resolve this issue?

  1. A
    Consolidate the web portal, document generation, and document archiving services into a single monolithic application deployed on a single Amazon EC2 instance.
  2. B
    Increase the size of the web portal's Amazon EC2 instances to handle the additional connection load and wait times when downstream services fail.
  3. Redesign the system to communicate asynchronously using Amazon Simple Queue Service (Amazon SQS), decoupling the web portal from downstream processing.Answer
  4. D
    Configure the web portal to trigger synchronous execution of all services inside a single database transaction across multiple Availability Zones.

Answer

Redesign the system to communicate asynchronously using Amazon Simple Queue Service (Amazon SQS), decoupling the web portal from downstream processing.
Decoupling components using an asynchronous message queue like Amazon Simple Queue Service (Amazon SQS) is a core AWS design principle (loose coupling). It allows the web portal to queue requests and continue responding to users even if downstream services (like document generation or archiving) are experiencing latency or are temporarily offline.

Step-by-Step Solution

1
Analyze the current system architecture and identify dependencies.
The web portal has synchronous, tight coupling with the document generation and archiving services, making it vulnerable to downstream failures.
To solve the reliability issue, we must identify where the tight coupling is causing cascading failures.
2
Apply AWS design principles to decouple the components.
An asynchronous communication mechanism, such as a message queue, is selected to buffer requests.
Decoupling ensures that a failure or slowdown in downstream services does not immediately impact the web portal's availability.
3
Select the appropriate AWS service for queueing and asynchronous processing.
Amazon Simple Queue Service (Amazon SQS) is integrated between the web portal and the downstream services.
SQS provides a fully managed, scalable message queue that allows components to scale and fail independently without losing data.

Key Concept

Loose coupling
Estimated Time:1m 30s
Rate this question