AWS Cloud Practitioner · Cloud Concepts · medium

An architect replaces a direct synchronous call between an order service and an invoicing service with an Amazon SQS queue so orders are still accepted even if the invoicing worker restarts. Which design principle does this apply?

Published · Last updated · checked before publication — how we verify questions

Options

  • AMonolithic consolidation of all business tiers onto a single server
  • BVertical scaling by upgrading the database to a larger memory size
  • CLoose coupling between components to prevent cascading failuresCorrect answer
  • DPhysical co-location of developer laptops inside the data center

Answer: C. Loose coupling between components to prevent cascading failures

The keyed answer is correct. Placing an Amazon SQS queue between the order service and the invoicing service is a textbook example of loose coupling, a core principle of designing for the cloud and of the AWS Well-Architected Framework's reliability thinking. With a direct synchronous call, the order service waits on the invoicing service, so if invoicing restarts or slows down, order requests fail or hang and the failure cascades upstream. With a queue, the order service simply writes a message and carries on, and the invoicing worker pulls messages when it is available. Messages wait safely in the queue during a restart, so no work is lost and each component can fail, scale, or be deployed independently. The common trap is confusing this with scaling. Candidates see a managed AWS service and think of capacity, but the scenario is about isolating failures and removing a runtime dependency between components, not about adding resources.

Why the other options are wrong

  • A. Monolithic consolidation of all business tiers onto a single server — Monolithic consolidation puts all tiers on one server, which is the opposite of decoupling. It creates a single point of failure and tightly binds components together, so a restart would take down everything.
  • B. Vertical scaling by upgrading the database to a larger memory size — Vertical scaling means giving a single resource, such as a database, more CPU or memory. It addresses capacity limits, not the dependency between the order and invoicing services, and it does nothing to keep orders flowing while the invoicing worker restarts.
  • D. Physical co-location of developer laptops inside the data center — Placing developer laptops in a data center is unrelated to application architecture. It does not affect how services communicate or how failures propagate, and it is not a cloud design principle.

All Cloud Concepts questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.