AWS Certified Developer Associate DVA-C02 Practice Question
Your team is designing an AWS-based application where one component processes customer orders, and another component handles inventory management. Considering that you need to minimize the interdependence between these two components in case one of them fails, which approach would contribute to a more loosely coupled architecture?
Using an Amazon Simple Queue Service (SQS) to facilitate message passing between the order processing and inventory management components
Implementing synchronous REST API interactions between the two services, requiring an immediate response after an order is placed
Creating database triggers within your order database to automatically update the inventory management system in real-time
Setting up a REST service within the inventory management component that is called directly by the order processing service for every new order
Using an Amazon Simple Queue Service (SQS) queue to pass messages between the order processing and inventory management components supports a loosely coupled architecture. With SQS, if the inventory management component is slow to process messages or temporarily unavailable, order processing isn't directly affected since messages are queued. On the other hand, synchronous REST API interactions and database triggers are indicative of tight coupling because they rely on immediate responses and can lead to cascading failures if one component has issues. A REST service calling another REST service synchronously is tightly coupled, which can also introduce points of failure if the receiving service is down.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon SQS and how does it work?
Open an interactive chat with Bash
What does 'loosely coupled architecture' mean?
Open an interactive chat with Bash
Why are synchronous REST API interactions considered tightly coupled?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access