exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 6 question 14 discussion

Actual exam question from Microsoft's AZ-301
Question #: 14
Topic #: 6
[All AZ-301 Questions]

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 a Logic App to run the image processing application every hour.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Azure Logic Apps helps you automate workflows that run on a schedule.
References:
https://docs.microsoft.com/en-us/azure/logic-apps/tutorial-build-schedule-recurring-logic-app-workflow

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
jcarlos
Highly Voted 5 years ago
What I get from the three questions: * Webjobs need to be configured as always on to ensure scheduler will launch job execution as desired. This would mean that Azure resources will be consumed even while Webjob is not being executed * Logic App lacks the ability to directly run executable applications which would lead to a twisted flow calling to a function which in turn would call the executable application. * Functions can be scheduled for its execution even with consumption plan and can easily launch executable files. Putting all together, I would say that best answer is Azure Functions
upvoted 24 times
...
SomeITGuy
Highly Voted 5 years, 4 months ago
"One component of the application is a legacy Windows native executable that performs image processing" - There is no way of executing a Windows native exe in Logic Apps unless you do a logic app that triggers a function. Then you might as well create a function on a consumption plan that is triggered based on a schedule as this lab is doing: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-scheduled-function
upvoted 17 times
Avanade2023
5 years, 1 month ago
We can do it just by scheduled function, as follow example. https://docs.microsoft.com/ja-jp/samples/azure-samples/functions-dotnet-migrating-console-apps/run-console-apps-on-azure-functions/
upvoted 1 times
...
...
azurecert2021
Most Recent 4 years, 4 months ago
answer should be NO as logic app directly can not call legacy executable and in proposed answer they have not mentioned it will call function to call legacy executable , in azure feedback somebody ask to provide this future in logic app and following is the reply till now I don't think this suggestion is appropriate since PEs can be executed in Azure Automation Jobs and Runbooks, WebJobs, Functions, Batch... Just get the LogicApp to trigger a function - they're not hard to make. https://feedback.azure.com/forums/287593-logic-apps/suggestions/36379468-run-executable-file
upvoted 5 times
...
glam
4 years, 4 months ago
A. Yes
upvoted 1 times
...
bipin24x7
4 years, 5 months ago
This should be "No". Question asked "Legacy Windows native executable". In order to support that, you first need to change the code to add support for WebJobs SDK before you can leverage it for WebJobs.
upvoted 1 times
...
sanketshah
4 years, 5 months ago
given answer is correct.
upvoted 2 times
...
AmazonAu
4 years, 9 months ago
The requirement is to run the app every hour. So Timespan is required. But to use Timespan, Function needs App Service plan. https://docs.microsoft.com/en-gb/azure/azure-functions/functions-bindings-timer?tabs=csharp The attribute's constructor takes a CRON expression or a TimeSpan. You can use TimeSpan only if the function app is running on an App Service plan. TimeSpan is not supported for Consumption or Elastic Premium Functions.
upvoted 1 times
...
alan9999
4 years, 10 months ago
Azure Batch if provided as option can be correct answer, please confirm?
upvoted 2 times
...
eug45
4 years, 11 months ago
Answer is B The Azure Logic App is just a workflow-based application. It can’t be used to host and run the application itself.
upvoted 2 times
...
Wildsheep
4 years, 11 months ago
I don't see the point of using a Logic App to call an Azure Function when you can just create a function and add a time trigger using a cron expression It is possible to run executable in functions https://docs.microsoft.com/en-us/samples/azure-samples/functions-dotnet-migrating-console-apps/run-console-apps-on-azure-functions/
upvoted 2 times
...
dev2dev
4 years, 12 months ago
Logic apps alone can't run the legacy windows application. Application needs to be run from web job and this webjob needs to be triggered from logic apps (scheule)
upvoted 1 times
...
Prash85
5 years ago
reasoning - Azure Logic Apps does perform the task, provided if recurrence triggers is used.
upvoted 1 times
...
Prash85
5 years ago
In summary for all 3 questions... Its a YES for Webjobs and Functions. But No for logic apps
upvoted 1 times
...
DeveshSolanki
5 years ago
Should be No
upvoted 1 times
...
yemma
5 years, 1 month ago
Azure consumption function works fine with crontab https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-scheduled-function
upvoted 1 times
...
FunkyMonkey
5 years, 1 month ago
Is this "legacy Windows native executable" a key statement in the question?!
upvoted 2 times
...
CipherK
5 years, 2 months ago
The key words "legacy Windows native executable " means use batch service. That is it.
upvoted 4 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 ...