AZ-204 Practice Question: Connect to and consume Azure services and third-party services
You are developing an app that processes orders. When an order is placed, you need to send a confirmation email and update an inventory database. The email service may be slow but must not delay the order processing. Which approach should you use?
⚠ Common exam trap
Test-takers frequently confuse Azure Event Grid (which is for event-driven reactive architectures) with a queue-based decoupling pattern, not realizing that Event Grid does not provide the message buffering and independent processing that a queue offers for this specific requirement.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Send the email asynchronously via a queue (e.g., Azure Queue Storage).
Sending the email asynchronously via a queue (e.g., Azure Queue Storage) decouples the slow email service from the order processing workflow. This ensures the order processing completes immediately without waiting for the email to be sent, meeting the requirement that the email must not delay order processing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Scale out the email service to handle the load.
Why it's wrong here
Scaling out an external email service is not within the control of your application's architecture. Your application can only manage its own resources; it cannot directly provision or scale the infrastructure of a third-party vendor's service. Attempting to address a bottleneck in an external dependency by scaling your own application's components or expecting to scale the external service itself is a fundamental misunderstanding of service boundaries and operational control.
- ✓
Send the email asynchronously via a queue (e.g., Azure Queue Storage).
Why this is correct
Sending the email asynchronously via a queue, such as Azure Queue Storage, effectively decouples the order processing from the potentially slow or unreliable email service. The order processing can quickly place a message onto the queue and complete, improving responsiveness and throughput for the core business logic. A separate worker process can then consume messages from the queue at its own pace, handling retries and ensuring eventual delivery without blocking the primary transaction.
- ✗
Use Azure Event Grid to trigger the email.
Why it's wrong here
Azure Event Grid is an eventing service designed for reactive programming and distributing notifications about state changes, not for reliable work item processing or managing a backlog of tasks. Unlike a queue, Event Grid does not persist messages for long periods, provide built-in retry mechanisms for failed deliveries, or support a consumer-driven pull model for processing work items. Therefore, it is unsuitable for offloading a slow operation like sending an email where guaranteed delivery and processing are critical.
- ✗
Call the email service synchronously and wait for the response.
Why it's wrong here
Calling the email service synchronously would force the order processing workflow to wait for the email service to respond before completing the order. This approach introduces a direct dependency that can severely degrade application performance, increase latency, and reduce scalability if the email service is slow, unresponsive, or experiences outages. It blocks valuable application threads, leading to poor user experience and potential timeouts for the core order submission process.
Go deeper
Related to this question
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.