exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 2 question 7 discussion

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

You have an Azure IoT hub.
You need to recommend a solution to scale the IoT hub automatically.
What should you include in the recommendation?

  • A. Create an SMS alert in IoT Hub for the Total number of messages used metric.
  • B. Create an Azure function that retrieves the quota metrics of the IoT hub.
  • C. Configure autoscaling in Azure Monitor.
  • D. Emit custom metrics from the IoT device code and create an Azure Automation runbook alert.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Note: IoT Hub is scaled and priced based on an allowed number of messages per day across all devices connected to that IoT Hub. If you exceed the allowed message threshold for your chosen tier and number of units, IoT Hub will begin rejecting new messages. To date, there is no built-in mechanism for automatically scaling an IoT Hub to the next level of capacity if you approach or exceed that threshold.
Reference:
https://docs.microsoft.com/en-us/samples/azure-samples/iot-hub-dotnet-autoscale/iot-hub-dotnet-autoscale/

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
userfriendly
Highly Voted 4 years, 7 months ago
B. Here is explanation: https://docs.microsoft.com/en-us/samples/azure-samples/iot-hub-dotnet-autoscale/iot-hub-dotnet-autoscale/ The solution consists of three Azure Functions, each one playing a specific part in the Azure Durable Functions framework IotHubScaleInit – this function is executed on a regular timer. This function checks to see if an instance of the Orchestrator function is running and, if not, starts one. In essence, it’s used to “kick off” the solution and make sure it’s always running. For the sample, it is set for once per hour, but can be set to any period. IotHubScaleOrchestrator – this function implements the “Orchestrator” for the solution. It’s role in the pattern is to manage the execution of the worker function (asynchronously, and safely), and to, once it’s done, re-schedule itself for execution after a specific number of minutes. IotHubScaleWorker – this is the function that performs the actions of checking to see if the IoTHub needs to be scales and, if so, scaling it.
upvoted 10 times
...
SanjuB
Highly Voted 4 years, 4 months ago
No confusion B is the correct answer. Create Azure Function to retrieve the Quota Metrics of the IoT Hub
upvoted 7 times
...
getazusername
Most Recent 4 years, 7 months ago
If you are approaching the allowed message limit on your IoT hub, you can use these steps to automatically scale to increment an IoT Hub unit in the same IoT Hub tier. https://docs.microsoft.com/de-de/azure/iot-hub/iot-hub-scaling https://docs.microsoft.com/de-de/samples/azure-samples/iot-hub-dotnet-autoscale/iot-hub-dotnet-autoscale/
upvoted 2 times
...
angelsrp
4 years, 11 months ago
Ans is B, the answer could be D but is talking about iothub "code".
upvoted 5 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 ...