exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 7 question 23 discussion

Actual exam question from Microsoft's AZ-220
Question #: 23
Topic #: 7
[All AZ-220 Questions]

You have an Azure IoT hub and an IoT device that generates the following messages.



You need to route the messages to a custom Azure Event Hubs endpoint. The solution must route only messages that have the following values.

"Status": "Running"
"Alert": "True"

Which query should you use?

  • A. $body.event.payload.Status = "Running" AND $body.event.payload.Alert = "True"
  • B. MessageType.payload.Status = "Running" AND MessageType.event.payload.Alert = "True"
  • C. $Status = "Running" AND $Alert = "True"
  • D. $event.payload.Status = "Running" AND $event.payload.Alert = "True"
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
xixi4den
2 years, 1 month ago
right, A is correct https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-routing-query-syntax#message-body-query-expressions
upvoted 4 times
Badoic
2 years, 1 month ago
Agree, the "Alert" and "Status" are part of the message body (not System properties or Applications properties).
upvoted 2 times
...
...
hotwheelsinsf
2 years, 2 months ago
D. $Status = "Running" AND $Alert = "True" from question 14, what gives
upvoted 1 times
...
hotwheelsinsf
2 years, 2 months ago
Yeah way to many mistakes in the editing of these answers. Do they even take the time to verify each one, and yes the other question had the answer of Status running and true????
upvoted 1 times
...
PreetDP900
2 years, 3 months ago
Can some please confirm if this is the correct answer as a question 14 is the same question and over there the answer is C
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...