Microsoft Azure Developer Associate AZ-204 Practice Question

Your application publishes commands to an Azure Service Bus topic. Transient network failures occasionally cause the publishing code to retry, resulting in duplicate messages with the same MessageId being delivered to downstream microservices. You must ensure that retries remain enabled, but each command is processed only once without modifying consumer logic. Which Service Bus capability should you enable on the topic to meet the requirement?

  • Enable duplicate detection and set an appropriate history time window.

  • Enable sessions and have consumers accept a session.

  • Configure the subscription MaxDeliveryCount property to 1.

  • Enable partitioning for the topic.

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