Migrating On-Premises Image Processing Application to Azure | Microsoft Exam AZ-301

Migrating On-Premises Image Processing Application to Azure

Question

Note: This question is part of series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You are migrating an on-premises application to Azure. One component of the application is a legacy Windows native executable that performs image processing.

The image processing application must run every hour. During times that the image processing application is not running, it should not be consuming any Azure compute resources.

You need to ensure that the image processing application runs correctly every hour.

Solution: Create an Azure WebJob that runs the image processing application every hour.

Does the solution meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B

Instead use an Azure Logic Apps, which helps you automate workflows that run on a schedule.

https://docs.microsoft.com/en-us/azure/logic-apps/tutorial-build-schedule-recurring-logic-app-workflow

The solution proposed in the scenario is not the most suitable option for the given requirements. Azure WebJobs are background tasks that run continuously or periodically in a web app, and can be used to process messages or trigger a method in response to an event. However, they are not suitable for the scenario described, since they run continuously or periodically, even when there is no work to be done. Therefore, the image processing application would still be consuming compute resources when it is not running.

A more appropriate solution would be to use Azure Functions, which can be triggered periodically or on-demand, and automatically scale to zero when there is no work to be done. This means that the image processing application would not consume any compute resources when it is not running, and would be automatically started and stopped at the specified intervals.

Therefore, the correct answer to the question is B. No, the solution does not meet the goal. The most appropriate solution would be to use Azure Functions instead of Azure WebJobs to run the image processing application every hour.