Implementing Reply Trail Auditing Solution for Hazard Notification System | Microsoft AZ-204 Exam

Implementing Reply Trail Auditing Solution

Question

You are creating a hazard notification system that has a single signaling server which triggers audio and visual alarms to start and stop.

You implement Azure Service Bus to publish alarms.

Each alarm controller uses Azure Service Bus to receive alarm signals as part of a transaction.

Alarm events must be recorded for audit purposes.

Each transaction record must include information about the alarm type that was activated.

You need to implement a reply trail auditing solution.

Which two actions should you perform? Each correct answer resents part of the solution.

NOTE: Each correct selection is worth one point.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F.

AD.

D: CorrelationId: Enables an application to specify a context for the message for the purposes of correlation; for example, reflecting the MessageId of a message that is being replied to.

A: ReplyToSessionId: This value augments the ReplyTo information and specifies which SessionId should be set for the reply when sent to the reply entity.

Incorrect Answers: B, E: DeliveryCount - Number of deliveries that have been attempted for this message.

The count is incremented when a message lock expires, or the message is explicitly abandoned by the receiver.

This property is read-only.

C, E: SequenceNumber - The sequence number is a unique 64-bit integer assigned to a message as it is accepted and stored by the broker and functions as its true identifier.

For partitioned entities, the topmost 16 bits reflect the partition identifier.

Sequence numbers monotonically increase and are gapless.

They roll over to 0 when the 48- 64 bit range is exhausted.

This property is read-only.

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messages-payloads

To implement a reliable trail auditing solution for the hazard notification system, we can use the Azure Service Bus message properties.

Firstly, we need to ensure that each message sent to the Azure Service Bus has a unique MessageId property. This can be done by assigning a unique identifier to each message at the time of creation. This unique identifier will allow us to trace each message as it passes through the system.

Secondly, we need to assign the hazard message SessionID property to the ReplyToSessionId property. This will allow us to identify the session associated with the hazard message, which is important for transactional purposes.

Thirdly, we need to assign the hazard message SessionID property to the SequenceNumber property. This will enable us to keep track of the order in which messages were sent and received. This information is essential for auditing purposes.

Fourthly, we need to assign the hazard message MessageId property to the CorrelationId property. This will allow us to identify related messages and transactions within the system.

Lastly, we need to assign the hazard message SequenceNumber property to the DeliveryCount property. This will allow us to keep track of the number of times the message has been delivered.

Based on the above discussion, the correct actions to perform are:

A. Assign the value of the hazard message SessionID property to the ReplyToSessionId property. D. Assign the value of the hazard message MessageId property to the CorrelationId property.

Option A allows us to identify the session associated with the hazard message, which is important for transactional purposes. Option D allows us to identify related messages and transactions within the system.

Therefore, Options A and D are the correct answers.