Migrating an On-Premises Application to Azure: Exam AZ-301 Solution

Migrating an On-Premises Application to Azure: Exam AZ-301 Solution

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 Function to run 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 given solution to create an Azure Function to run the image processing application every hour is a valid solution that meets the stated goal.

Azure Functions is a serverless compute service that enables the creation of event-driven, compute-on-demand functions. With Azure Functions, you can execute code in response to a trigger, such as a timer, without having to worry about managing infrastructure.

In this solution, an Azure Function can be created with a timer trigger that runs every hour, which will execute the legacy Windows native executable and perform the required image processing. After the image processing task is completed, the function will automatically scale down to zero, and no additional compute resources will be consumed until the next scheduled execution.

Therefore, the solution meets the goal of ensuring that the image processing application runs correctly every hour and does not consume any Azure compute resources when it is not running.

Hence, the correct answer is A. Yes.