Question 220
A worker handles several Service Bus sessions but accidentally shares mutable user-specific state between tenants. Which solution should the developer choose?
Explanation
Correct Answer
Session isolation preserves the correct ordering and context of each logical stream.
Incorrect Answers
Receive in PeekLock mode and Complete only after processing succeeds: receive in PeekLock mode and Complete only after processing succeeds: an unsettled locked message can be made available again when the lock expires; Keep per-session processing state isolated and bound to its session identifier.
Set the appropriate SessionId on every message sent to that entity: set the appropriate SessionId on every message sent to that entity: session-enabled entities require publishers to identify the intended session; Keep per-session processing state isolated and bound to its session identifier.
Enable Service Bus sessions and use a stable customer-specific SessionId: enable Service Bus sessions and use a stable customer-specific SessionId: sessions group related messages for ordered, exclusive session processing.





Developing AI Cloud Solutions on Azure (AI-200) Practice Tests