Question 368 of 997
Develop Azure compute solutionsmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to set `maxConcurrentCallsPerSession` to 1 on a session-enabled queue. This works because Service Bus sessions guarantee ordered delivery within a partition—each session ID represents a logical partition—so limiting concurrent calls per session to one ensures messages from the same partition are processed sequentially, while `maxConcurrentSessions` controls how many different partitions run in parallel. On the AZ-204 exam, this tests your understanding of how to balance ordering guarantees with throughput; a common trap is confusing `maxConcurrentCallsPerSession` with `maxConcurrentSessions`, which governs cross-partition parallelism, not intra-partition serialization. Remember the mnemonic: “One session, one call—order for all; many sessions, many calls—speed for all.”

AZ-204 Develop Azure compute solutions Practice Question

This AZ-204 practice question tests your understanding of develop azure compute solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You have an Azure Function with a Service Bus queue trigger. The function processes messages that must be handled in order within each partition of the queue. You need to ensure that the function does not process multiple messages from the same partition concurrently, while still allowing parallel processing across different partitions. Which setting should you configure?

Question 1mediummultiple choice
Full question →

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 the maxConcurrentCallsPerSession to 1, or use a session-enabled queue and set maxConcurrentSessions to 1 if using sessionId.

Option B is correct because Service Bus sessions provide exactly-once-in-order message processing within a partition (session). Setting `maxConcurrentCallsPerSession` to 1 ensures that only one message from a given session is processed at a time, while `maxConcurrentSessions` controls how many different sessions can be processed in parallel. This allows concurrent processing across partitions but serializes processing within each partition.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 the batch size to 1 in the function configuration.

    Why it's wrong here

    Setting batch size to 1 reduces throughput but does not prevent concurrent processing of messages from the same partition across multiple instances.

  • Set the maxConcurrentCallsPerSession to 1, or use a session-enabled queue and set maxConcurrentSessions to 1 if using sessionId.

    Why this is correct

    This setting limits the number of concurrent calls per partition/session, ensuring sequential processing within a partition while allowing parallel processing across partitions.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use a consumption plan, which automatically limits concurrency.

    Why it's wrong here

    The consumption plan scales out instances, increasing concurrency across partitions but does not control per-partition concurrency.

  • Use a queue trigger instead of a Service Bus trigger.

    Why it's wrong here

    Queue triggers do not support partitioned ordering. Service Bus is the appropriate choice for ordered processing.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse batch size with concurrency control, thinking that reducing batch size to 1 prevents parallel processing, when in fact it only limits the number of messages retrieved per fetch, not the number of concurrent executions.

Detailed technical explanation

How to think about this question

Service Bus sessions use the AMQP protocol to group related messages into a session, identified by a `SessionId`. When `maxConcurrentCallsPerSession` is set to 1, the Azure Functions runtime uses a single receiver per session, ensuring that message processing is serialized for that session. Under the hood, the runtime maintains a lock on the session until the message is completed, preventing other receivers from picking up messages from the same session. This is critical in scenarios like order processing where events for the same order must be handled sequentially.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Set the maxConcurrentCallsPerSession to 1, or use a session-enabled queue and set maxConcurrentSessions to 1 if using sessionId. — Option B is correct because Service Bus sessions provide exactly-once-in-order message processing within a partition (session). Setting `maxConcurrentCallsPerSession` to 1 ensures that only one message from a given session is processed at a time, while `maxConcurrentSessions` controls how many different sessions can be processed in parallel. This allows concurrent processing across partitions but serializes processing within each partition.

What should I do if I get this AZ-204 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.