↑ ↓ to move, Enter to open, Esc to close

    DP-900Azure Data Fundamentals

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search
    Free exam

    Exams / DP-900 / D4 Describe an analytics workload

    D4.2

    Describe considerations for real-time data analytics

    • 6 min read
    • 7 sections
    • 21 questions
    • 25–30% of the exam
    • Describe the difference between batch and streaming data
    • Identify Microsoft cloud services for real-time analytics

    Batch vs. streaming

    Both are ways of processing data; they differ in when processing happens relative to when the data arrives.

    Batch processing Stream (real-time) processing
    Data handled Large volumes, accumulated over an interval or until a trigger Individual events, as they are created
    Latency Minutes or hours between ingestion and a result Low latency — near real time, down to submilliseconds
    Trigger A schedule or a triggering condition (e.g. "once a day", "every 1 million transactions") Continuous — there is no accumulation step
    Typical use Large-scale, complex analysis where immediate insight isn't required Time-critical operations needing an instant response; simple rolling calculations over a window
    Example Processing a day of sales once a day; analyzing a year of web traffic A wind turbine emitting 50 sensor readings per second; tracking active website users live

    You can use batch processing for workloads that don't require immediate access to insights. Unlike real-time processing, batch processing has latencies, or the time between data ingestion and computing a result, of minutes or hours. The fundamental requirement of batch processing engines is to scale out computations to handle a large volume of data.

    Streaming data is emitted at high volume in a continuous, incremental manner that can be processed in near real-time. Stream processing can scale dynamically and process massive volumes of data with low latency.

    Batch output isn't tied to one store model — pipelines commonly write to file stores, relational databases and NoSQL databases alike, whichever fits the downstream workload.

    BatchStreamingData accumulatesProcess in bulkResult after minutes–hoursEvent occursProcess as it arrivesResult in near real timeschedule / threshold triggercontinuous

    What streaming is not

    • Not a one-shot pass over a whole dataset — streaming works over bounded time windows on data as it arrives, not the entire dataset at once.
    • Not only for simple tasks — Spark-based streaming services are explicitly built to "handle complex data transformations, machine learning pipelines, and big data workloads" while still targeting low latency. The mainstream managed option, Azure Stream Analytics, by contrast "best suits low-complexity, real-time tasks where a simple, managed solution with SQL-based queries is sufficient."
    • Not immediate by definition for batch, and never "seconds or milliseconds" — that signature minutes-to-hours delay is what separates batch from real time, no matter how the workload is described.

    Windowing

    Streaming platforms give access to "recent" data through windowing: "Use sliding or tumbling windows to manage time-based aggregations and analytics." This is how a stream job computes something like a rolling average — it isn't reprocessing the whole dataset, it's aggregating over a moving time window as events arrive.

    Azure Event Hubs — the entry point for streaming data

    Azure Event Hubs is the big-data streaming ingestion service most real-time pipelines start with. "Organizations use Event Hubs to build data pipelines for IoT telemetry, application logging, clickstream analytics, financial transaction processing, and other scenarios that require high-throughput, reliable event ingestion."

    • Events are spread across partitions for parallel processing — "Think of partitions as lanes on a freeway—more partitions enable higher throughput."
    • Capture bridges streaming and batch: "Capture your streaming data in near real time to Azure Blob Storage or Azure Data Lake Storage for long-term retention or batch analytics," and it "runs automatically on the same stream used for real-time processing" — so the same event stream can feed both a real-time path and a later batch-analytics path.

    Azure Stream Analytics — managed stream processing with SQL

    "Azure Stream Analytics is a fully managed stream processing engine that analyzes and processes large volumes of streaming data with submillisecond latencies." It is a fully managed PaaS offering — "Stream Analytics fully manages your job, so you can focus on your business logic and not on the infrastructure."

    • Query language: SQL. "Azure Stream Analytics offers a SQL query language for performing transformations and computations over streams of events."
    • Typical inputs are event streams (e.g. from Event Hubs or IoT Hub); outputs can feed Power BI for live visualization, or flow into "Azure Synapse Analytics or HDInsight" for further batch analytics on the stream's output — another batch/streaming bridge.

    Azure Data Explorer and Azure Synapse Data Explorer — fast exploration with KQL

    "Azure Data Explorer is a fully managed, high-performance, big data analytics platform that makes it easy to analyze high volumes of data in near real time," with "high velocity (millions of events per second), low latency (seconds), and linear scale ingestion of raw data."

    • Query language: KQL (Kusto Query Language). "Query Azure Data Explorer by using Kusto Query Language (KQL), an open-source language that the Azure Data Explorer team created," used to "explore, filter, and aggregate data quickly."
    • Azure Synapse Data Explorer is the same engine surfaced inside Synapse: "Data Explorer democratizes self-service, big data analytics with the intuitive Kusto Query Language (KQL) that provides the expressiveness and power of SQL with the simplicity of Excel." Same language (KQL), same purpose — fast, large-scale log/telemetry exploration — whether standalone or inside Synapse.

    Apache Spark Structured Streaming — DataFrames, batch or streaming

    "Apache Spark Structured Streaming lets you build streaming applications and pipelines with the same Spark APIs you use for batch processing." It is built on the DataFrame abstraction — the same one used for Spark batch jobs — where "you usually define a DataFrame against a data source such as a table or collection of files." This is what lets Azure Synapse Analytics Spark pools (and Azure Databricks) process streaming data with Python (PySpark), the same language used for Spark batch workloads.

    Microsoft Fabric Real-Time Intelligence

    Microsoft Fabric's real-time offering is built around reacting to events, not schedules: "Real-Time Intelligence gives you solutions that react to events as they happen, rather than solutions that run on a schedule." It handles ingestion, exploration (via the Real-Time hub, a catalog of streaming data), dashboards and alerting (Fabric Activator) for data in motion — the Fabric-native counterpart to standing up Event Hubs + Stream Analytics / Data Explorer separately.

    Query-language map (common exam pairing)

    Service Query language
    Azure Stream Analytics SQL (SQL-based query language)
    Azure Data Explorer / Azure Synapse Data Explorer KQL
    Azure Synapse Analytics Spark pools / Azure Databricks (Structured Streaming) Python (PySpark)

    Exam traps

    • "Streaming" ≠ "simple." Spark-based streaming services explicitly handle complex analytics with short latency; only Stream Analytics specifically is pitched at low-complexity tasks.
    • Streaming is windowed, not whole-dataset. It never processes "all the data in a dataset at once" — that's a batch trait.
    • Batch latency is minutes-to-hours, never seconds/milliseconds — don't let a question claim batch is "immediate."
    • A fixed interval or transaction-count threshold is still batch (e.g. "every 12 hours," "every 1 million transactions"), even if the interval is short or the condition is unusual — the defining trait is accumulate-then-trigger, not continuous arrival.
    • Query-language pairing: Stream Analytics = SQL, Data Explorer (standalone or Synapse) = KQL, Spark (Synapse/Databricks) = Python. Don't swap KQL and SQL between Data Explorer and Stream Analytics.
    • Structured Streaming reuses batch APIs — it's built on the same DataFrame abstraction as Spark batch jobs, not a separate concept from Delta Lake, a data lake, or a data warehouse.
    • Event Hubs Capture shows batch and streaming aren't mutually exclusive destinations: the same real-time stream can be captured to storage for later batch analytics.

    Docs

    The rest of this chapter is part of the DP-900 premium course

    Unlock every chapter, all 323 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters