Microsoft Azure Developer Associate AZ-204 Practice Question

You are developing an Azure Function that uses a Service Bus trigger to process order messages. The function app can scale out to multiple instances. All messages that share the same OrderId must be handled by the same instance and in the exact order they were sent. Which configuration should you use?

  • Enable sessions on the Service Bus queue and configure the Function trigger with sessionEnabled set to true.

  • Enable duplicate detection on the queue by setting requiresDuplicateDetection to true.

  • Enable partitioning on the queue to distribute load across multiple message brokers.

  • Use Peek-Lock receive mode and set maxConcurrentCalls to 1 in host.json.

Microsoft Azure Developer Associate AZ-204
Connect to and consume Azure services and third-party services
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot