Courseiva
Develop Azure compute solutionsmediumMultiple SelectObjective-mapped

AZ-204 maxMessagesPerBatch Practice Question

You are designing a solution that uses Azure Functions to process messages from an Azure Service Bus queue. Which TWO configurations can improve the throughput of the function?

⚠ Common exam trap

A common mistake is to think that lowering newBatchThreshold reduces throughput because it increases fetch frequency, but in reality it reduces idle time and can improve throughput by keeping the function continuously busy.

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

Set maxMessagesPerBatch to a higher value

Increasing maxMessagesPerBatch allows the function to retrieve and process more messages in a single batch, reducing the overhead of multiple fetch operations. Decreasing newBatchThreshold makes the trigger fetch a new batch sooner when fewer messages remain, keeping the function busy and reducing idle time, which improves throughput.

Answer analysis

Option-by-option breakdown

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

  • Set maxDeliveryCount to a higher value

    Why it's wrong here

    Increasing maxDeliveryCount only affects the number of retries for failed messages, not the throughput of successful processing. It does not improve throughput.

  • Set maxMessagesPerBatch to a higher value

    Why this is correct

    Correct. A higher maxMessagesPerBatch allows the function to retrieve and process more messages per invocation, reducing the number of fetch operations and improving throughput.

  • Set newBatchThreshold to a lower value

    Why this is correct

    Correct. Lowering newBatchThreshold makes the trigger fetch a new batch when fewer messages remain, reducing idle time and improving throughput by keeping the function busy.

  • Set maxMessagesPerBatch to a lower value

    Why it's wrong here

    Lowering maxMessagesPerBatch reduces the number of messages processed per batch, increasing the number of fetches and overhead, which decreases throughput.

  • Set maxEventBatchSize to a higher value

    Why it's wrong here

    maxEventBatchSize is used for Event Hubs triggers, not Service Bus. This setting does not apply to Service Bus and will not affect throughput.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

Go deeper

Related to this question

About these practice questions

One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 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 AZ-204 exam.