AZ-305 Question 162
Select 2Your organization manages thousands of IoT devices sending telemetry data at unpredictable intervals. The solution must parse each device message, filter out invalid entries, and store valid data in Azure Storage. You need a cost-effective, serverless approach that automatically scales without manual intervention. Which two approaches best meet these requirements?
- A
Implement an Azure Function triggered by Azure Event Hubs to parse and store incoming messages in Azure Blob Storage.
- B
Use an Azure Logic App to receive Event Hub-based messages, parse them, and insert valid data into Azure Table Storage.
- C
Deploy and maintain an Azure Virtual Machine that continuously polls for incoming messages and writes them to a local file system before manual upload to Azure.
- D
Design an Azure Kubernetes Service (AKS) cluster to run a long-lived container that processes messages using custom code and pushes them to Blob Storage.
Show answer and explanation
Correct answers: A, B
Explanation
Serverless solutions such as Azure Functions and Azure Logic Apps offer automatic scaling, reduced operational overhead, and pay-per-use billing. In this scenario, they can seamlessly handle unexpected spikes in IoT data without manual intervention. For more details, refer to the official Azure Documentation on serverless computing patterns, specifically Azure Functions (https://learn.microsoft.com/azure/azure-functions/) and Logic Apps (https://learn.microsoft.com/azure/logic-apps/).
- A. Correct.
Option 1: CORRECT. Azure Functions can be triggered by Event Hubs, providing a serverless and scalable approach. This pattern definitely handles unpredictable bursts of data by automatically scaling, and it has a pay-per-execution billing model.
- B. Correct.
Option 2: CORRECT. Azure Logic Apps can listen to Event Hub events and route messages into various Azure services, such as Table Storage, without the need to manage infrastructure. This is also a serverless, consumption-based solution and therefore cost-effective.
- C. Incorrect.
Option 3: INCORRECT. While using a VM can process data, it is not a serverless approach. It requires continual maintenance, patching, and capacity planning, which does not align with the requirement of minimal overhead and automatic scaling.
- D. Incorrect.
Option 4: INCORRECT. AKS is primarily used for container orchestration and is not a fully serverless platform. It generally requires more complex setup and management compared to serverless solutions like Functions or Logic Apps.