Connect to and consume Azure services and third-party services →mediumMultiple ChoiceObjective-mapped
AZ-204 Practice Question: Connect to and consume Azure services and third-party services
A company integrates an Azure Logic App with Microsoft Teams to send notifications when a new file is added to an Azure Blob storage container. The Logic App currently polls the blob container every minute. They want to reduce latency and avoid polling. What should they do?
⚠ Common exam trap
Candidates often think increasing polling frequency (Option A) is a valid optimization, but the question explicitly requires eliminating polling, not just reducing its interval.
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
✓
Add an Event Grid subscription to the blob storage.
Azure Event Grid provides a reactive, event-driven model that eliminates the need for polling. By subscribing to the Blob Storage 'BlobCreated' event, the Logic App is triggered instantly when a new file is added, reducing latency to near real-time. This aligns with the requirement to avoid polling and improve responsiveness.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the polling frequency to every 10 seconds.
Why it's wrong here
Increasing the polling frequency to every 10 seconds, while potentially reducing latency compared to longer intervals, fundamentally retains a polling-based approach. This method inherently consumes resources and incurs costs even when no new files are added to the blob storage, as the Logic App continuously makes requests. It does not transition to an efficient, push-based, event-driven architecture, which is superior for real-time notifications and resource optimization.
- ✓
Add an Event Grid subscription to the blob storage.
Why this is correct
Adding an Event Grid subscription to the blob storage is the correct approach because Azure Event Grid provides a fully managed, real-time event routing service. When a new blob is created, Event Grid automatically publishes an event. The Logic App, configured as an Event Grid subscriber, then receives this event directly, eliminating the need for constant polling and enabling an efficient, push-based, event-driven workflow for immediate notifications.
- ✗
Use Azure Data Factory to monitor the storage.
Why it's wrong here
Azure Data Factory (ADF) is primarily designed for orchestrating and automating data movement and transformation workflows (ETL/ELT) across various data stores. While ADF can interact with Azure Blob Storage, it is not intended or optimized for real-time, event-driven monitoring of file additions and pushing notifications to other services like Logic Apps. Using ADF for this purpose would be an architectural misuse, requiring complex and inefficient pipeline configurations that do not align with its core capabilities.
- ✗
Use Azure Service Bus topics for file notifications.
Why it's wrong here
Azure Service Bus topics are a robust messaging service designed for decoupling publishers and subscribers, enabling fan-out distribution, and providing advanced messaging features. This makes them tempting for notification scenarios where reliable message delivery and processing are crucial. However, Service Bus topics do not natively detect file additions to Azure Blob storage. To utilise Service Bus for this purpose, another service, such as Azure Event Grid, would first need to detect the blob creation event and then publish a message to the Service Bus topic. Therefore, Service Bus itself does not eliminate the need for polling the blob container in this specific scenario, as it isn't the initial event source for blob changes.
Quick reference
Azure Blob Storage Tier Comparison
| Tier | Storage Cost | Retrieval Cost | Latency | Use Case |
|---|---|---|---|---|
| Hot | Highest | Lowest | Immediate | Active data, frequent reads |
| Cool | Lower | Higher | Immediate | Data accessed < once / month |
| Cold | Lower still | Higher | Immediate | Data accessed < once / quarter |
| Archive | Lowest | Highest + rehydration delay | Hours | Long-term compliance retention |
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.