You are building an Azure Function that processes orders from an Azure Service Bus queue. The function must ensure that each order is processed exactly once, even if the function crashes mid-processing. Which Service Bus feature guarantees this behavior?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Peek-Lock message settlement with manual completion

Peek-Lock mode locks the message during processing and only removes it from the queue when explicitly completed. If the function crashes before completing, the lock expires and the...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioAzure Functions

You are building an Azure Function that processes orders from an Azure Service Bus queue. The function must ensure that each order is processed exactly once, even if the function crashes mid-processing. Which Service Bus feature guarantees this behavior?

โœ“ Correct Answer & ExplanationAzure Functions

Correct Answer

Peek-Lock message settlement with manual completion

Why This Answer Is Correct

Peek-Lock mode locks the message during processing and only removes it from the queue when explicitly completed. If the function crashes before completing, the lock expires and the message becomes available again, guaranteeing at-least-once delivery with idempotent processing.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Functions โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Azure Functions is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.