The downstream devices send millions of telemetry data to your standard IoT Hub and all the incoming messages must be processed in the order they occur.
You started with an IoT Hub having 1 partition (i.e.
no partitioning) but the volume is expected to increase, so, and in order to cope with the huge amount of incoming data, you need to scale up your infrastructure.
You have a choice of possible steps to achieve your goal: Set the number of partitions of Hub2 to 8 Set the retention time to 14 days Create a new IoT Hub (Hub2) Set the number of partitions of Hub1 to 8 Adjust the processing applications so that the order of events is retained Migrate traffic from Hub1 to Hub2 Which steps should you take in order to solve the problem?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: D.
Option A is incorrect because the partition count cannot be changed once the Hub is created.
The maximum retention time is 7 days and cannot be increased.
Option B is incorrect because when having more than one partition, the events are sent to multiple partitions without retaining the order.
A more complex application logic is needed when the order of events must be preserved.
Option C is incorrect because the partition count cannot be changed once the Hub is created.
Option D is CORRECT because the partition count cannot be changed once the Hub is created.
Therefore, a second Hub must be created with a higher partition count.
The application logic should be adjusted if retaining the order of events is a requirement.
And, finally, the traffic must be directed to the new hub.
References:
To cope with the huge amount of incoming data from downstream devices, you need to scale up your infrastructure. One way to achieve this is to partition the IoT Hub. Partitioning allows you to horizontally scale your IoT Hub by adding more partitions. Each partition can handle a certain amount of incoming messages, so the more partitions you have, the more messages your IoT Hub can handle.
However, you also need to ensure that the incoming messages are processed in the order they occur. This means that you need to make sure that messages from the same device are processed by the same partition. To achieve this, you need to use a partition key. A partition key is a value that you can use to specify which partition a message should be sent to.
Given this scenario, the steps you should take in order to solve the problem are:
Set the number of partitions of Hub1 to 8: Increasing the number of partitions in the existing IoT Hub will allow you to handle a higher volume of incoming messages. You can do this by using the Azure portal or the Azure CLI.
Set the retention time to 14 days: This will ensure that the incoming messages are retained for 14 days, which is the maximum retention time allowed by Azure IoT Hub. This will allow you to analyze the data for a longer period of time.
Create a new IoT Hub (Hub2): Creating a new IoT Hub will allow you to separate the incoming messages from the existing IoT Hub, which will make it easier to manage and monitor the incoming traffic.
Set the number of partitions of Hub2 to 8: You should set the number of partitions of Hub2 to 8 so that it can handle a high volume of incoming messages.
Adjust the processing applications so that the order of events is retained: You need to ensure that the incoming messages are processed in the order they occur. This means that you need to use a partition key to specify which partition a message should be sent to. You can also use Azure Stream Analytics to process the incoming messages and ensure that the order of events is retained.
Migrate traffic from Hub1 to Hub2: Once you have set up Hub2, you can start migrating the traffic from Hub1 to Hub2. You can do this by updating the device connection strings to point to Hub2.
The correct answer to this question is D: 3, 1, 5, 6.