A logistics company needs to analyze GPS data from delivery trucks in real time to detect delays and reroute deliveries. The GPS data is streamed into Azure Event Hubs. They also need to combine this live data with static route information stored in Azure SQL Database. Which Azure service should they use for the real-time processing?
Azure Stream Analytics is a fully managed real-time analytics engine that executes SQL-like queries directly on streaming data from sources such as Azure Event Hubs, IoT Hub, or Blob storage. It can join live GPS event streams with reference data stored in Azure SQL Database to enrich delivery routes, and it supports windowing functions to detect patterns like delivery delays or geo-fence crossings. Its low-latency, continuous processing model makes it the appropriate service for analyzing GPS telemetry in motion, with outputs sent to Power BI, downstream alerts, or storage.
Why this answer
Azure Stream Analytics is the correct choice because it is designed for real-time stream processing, capable of ingesting data from Azure Event Hubs, applying SQL-like queries to detect delays, and joining live streams with static reference data from Azure SQL Database. This enables the logistics company to analyze GPS data as it arrives and trigger rerouting actions with minimal latency.
Exam trap
The trap here is that candidates often confuse Azure Stream Analytics with Azure Data Factory or Synapse Pipelines, mistakenly thinking that any data integration or pipeline service can handle real-time streaming, when in fact those services are batch-oriented and lack the low-latency stream processing engine required for live GPS analysis.
How to eliminate wrong answers
Option A is wrong because Azure Data Factory is a cloud-based ETL and data orchestration service for batch data movement and transformation, not for real-time stream processing. Option C is wrong because Azure Analysis Services is an analytical engine for building semantic models and performing OLAP queries on historical data, not for processing live streaming data. Option D is wrong because Azure Synapse Pipelines (part of Azure Synapse Analytics) are primarily used for orchestrating batch data integration and ETL workflows, not for real-time stream analytics.