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
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.
More Cloud Concepts questions
- An enterprise preparing for cloud migration wants to align workforce skills, update organizational roles, and manage…
- A SaaS provider wants to deploy its application close to customers in Tokyo, Frankfurt, and São Paulo within minutes…
- During a data-center exit, a company moves an on-premises virtual machine image directly to Amazon EC2 without…
- A retail startup wants to launch an e-commerce site without buying physical servers upfront and wants to pay only for…
- An online ticketing platform automatically adds twenty Amazon EC2 instances during a concert on-sale spike and…
- A company designs its production database and application tier across multiple Availability Zones so that if one data…
- An engineering team automates infrastructure changes using version-controlled templates, makes frequent small…
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.