AI-200 Event Driven Integration Practice Question
Your enterprise AI application ingests millions of telemetry events per second from IoT devices using Azure Event Hubs. Downstream AI models consume these events via Apache Spark on Azure Databricks. You need to ensure that telemetry from the same device is always processed by the same Spark executor in order to maintain state. How should you partition your Event Hub?
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
✓
Configure a custom partition key containing the device ID when publishing events to the Event Hub.
Event Hubs uses partition keys to ensure events with the same partition key are routed to the same partition, which downstream consumers like Spark can read sequentially.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Configure a custom partition key containing the device ID when publishing events to the Event Hub.
Why this is correct
Using a partition key derived from the device ID ensures all events from that device land in the same partition and are processed in order.
- ✗
Increase the number of Consumer Groups on the Event Hub to isolate different device streams.
Why it's wrong here
Consumer groups allow multiple applications to read the stream independently; they do not control message distribution across partitions.
- ✗
Set the Event Hub capture feature to output messages to Azure Data Lake Storage partitioned by device ID.
Why it's wrong here
Event Hub Capture stores raw data in storage; it does not control the ingestion-time partitioning of live streaming consumers.
- ✗
Deploy an Azure Service Bus Topic in front of Event Hubs with session IDs enabled.
Why it's wrong here
Placing Service Bus in front of Event Hubs introduces unnecessary latency and complexity; Event Hubs natively supports partition keys.
About these practice questions
This AI-200 question is part of Courseiva's 507-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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-200 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 AI-200 exam.