exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 7 question 14 discussion

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



Which query should you use?

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

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
j_c_000
2 years, 1 month ago
Selected Answer: B
Need $body for sure
upvoted 2 times
...
xixi4den
2 years, 1 month ago
should be B - https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-routing-query-syntax#message-body-query-expressions
upvoted 3 times
Badoic
2 years, 1 month ago
Agree, the "Alert" and "Status" are not System properties or Applications properties. They are part of the message body.
upvoted 1 times
...
...
hotwheelsinsf
2 years, 2 months ago
There was another question that had the answer as " $event.payload.Status = "Running" AND $event.payload.Alert = "True" what gives with these answers
upvoted 1 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 ...