Courseiva
Event Driven IntegrationmediumMultiple ChoiceObjective-mapped

AI-200 Event Driven Integration Practice Question

You are writing a Python application that sends telemetry data to an Azure Event Hub. To ensure high performance and non-blocking batch sends, which method from the `azure-eventhub` SDK should you use?

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

producer.create_batch() followed by producer.send_batch()

The `EventHubProducerClient` provides `create_batch()` to construct a batch object, and `send_batch()` to send it asynchronously or synchronously.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • event_grid_publisher.upload_blob()

    Why it's wrong here

    Event Grid and blob upload methods are not part of the Event Hubs SDK.

  • client.publish_to_service_bus_queue()

    Why it's wrong here

    Event Hubs clients do not publish to Service Bus queues.

  • producer.create_batch() followed by producer.send_batch()

    Why this is correct

    create_batch ensures events fit within the size limit, and send_batch transmits the batch efficiently.

  • producer.send_single_event_blocking() for every record

    Why it's wrong here

    Sending single events individually causes severe performance bottlenecks.

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.