AWS Certified Developer Associate DVA-C02 Practice Question
You are implementing a notification system for an online shopping platform hosted on AWS. The system must send emails to customers after their order has been processed. Given that the order processing system can become backlogged during peak times, which pattern should you employ to ensure that the email notifications do not block or slow down the order processing workflow?
Use a synchronous pattern where the order processing service sends the email directly before confirming the order as complete within the same workflow.
Employ an asynchronous pattern with a message queue that collects notifications to be processed by a separate email-sending service independently of order processing.
Implement a hybrid pattern, sending the email synchronously for premium customers, while using an asynchronous approach for regular customers.
Adopt a synchronous pattern for small batches of orders, switching to an asynchronous pattern only when detecting a processing backlog.
An asynchronous communication pattern is suitable for this scenario because it allows the order processing to complete without waiting for the email notification to be sent. The email sending process can be offloaded to a separate service, such as a message queue that triggers a Lambda function to send emails. This decoupling ensures that the order processing system remains responsive even during times of high load. A synchronous pattern would require each order to wait until the email is sent before marking the order as complete, potentially causing delays and backlogs in the order processing system.
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 an asynchronous pattern in the context of application development?
Open an interactive chat with Bash
What is a message queue and how does it help in asynchronous processing?
Open an interactive chat with Bash
How does using AWS Lambda for sending emails fit into the asynchronous model?
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