Courseiva
Event Driven IntegrationhardMultiple ChoiceObjective-mapped

AI-200 Event Driven Integration Practice Question

You are optimizing an Azure Event Hubs stream processing application in Python. Messages are being processed too slowly, and you notice high CPU utilization on the consumer instance due to synchronous network I/O. Which programming model should you adopt to maximize ingestion throughput?

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

Use the asynchronous Event Hub client library (`azure-eventhub.aio`) with `asyncio` for non-blocking I/O operations.

For high-performance asynchronous I/O in Python with Azure Event Hubs, developers should use the `azure-eventhub` asynchronous client library (`aiohttp` / `asyncio`) to process events concurrently.

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 partition count of the Event Hub to 1,000 partitions.

    Why it's wrong here

    Excessive partitions without adequate consumer threads increases overhead and exacerbates context switching.

  • Switch from Event Hubs to Azure Storage Queues for parallel processing.

    Why it's wrong here

    Storage Queues are designed for low-throughput work queues, not high-speed telemetry streaming.

  • Migrate all consumer code to use synchronous REST API polling over HTTPS GET requests.

    Why it's wrong here

    REST polling is extremely inefficient and slow compared to persistent AMQP connections.

  • Use the asynchronous Event Hub client library (`azure-eventhub.aio`) with `asyncio` for non-blocking I/O operations.

    Why this is correct

    Async/await patterns in Python prevent thread blocking during network calls to Event Hubs, dramatically increasing throughput.

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 →

How Courseiva writes practice questions · Editorial policy

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.