exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 6 question 12 discussion

Actual exam question from Microsoft's AZ-301
Question #: 12
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 an Azure WebJob that runs the image processing application every hour.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Instead use an Azure Logic Apps, which 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
P0d
Highly Voted 5 years ago
Webjob support following file types: cmd, .bat, .exe (using Windows cmd) .ps1 (using PowerShell) .sh (using Bash) .php (using PHP) .py (using Python) .js (using Node.js) .jar (using Java) So I think the correct answer should be Yes.
upvoted 5 times
...
glam
Most Recent 4 years, 4 months ago
B. No.
upvoted 1 times
...
sanketshah
4 years, 5 months ago
Given answer correct.
upvoted 1 times
...
macco455
4 years, 9 months ago
Agreed answer i no since apps dont have a consumption plan where azure functions do. And Logic apps you pay for what you use which is part of the question to not pay when its not in use.
upvoted 1 times
...
ron_b
4 years, 9 months ago
I agree, "No" is the correct answer. Had the question said "migrating a WEB APP", I would say yes since a WJ does not add any additional cost to an App Service. However, all we know is it is an "application" getting migrated, which could be App Service, container, VM, etc.
upvoted 2 times
...
GvWaesberghe
4 years, 10 months ago
The answer should be Yes I think, Webjobs is the only service used in this question set that can run a legacy windows application (.exe or cmd) LogicApps and Azure functions do not support running legacy application without additional infrastructure to execute the code
upvoted 1 times
exams0123456
4 years, 9 months ago
Not true. Even Azure Functions support Windows Executable (.exe) and give benefit of Time scheduler.
upvoted 1 times
...
...
Wildsheep
4 years, 11 months ago
Pay per use (consumption plan) is only available for functions, not Webjobs. So correct answer is no. https://docs.microsoft.com/en-us/azure/azure-functions/functions-compare-logic-apps-ms-flow-webjobs
upvoted 2 times
...
dev2dev
4 years, 12 months ago
how you will you run legacy windows application on Logic apps? Web jobs is correct. So answer is yes
upvoted 1 times
Yannor
4 years, 11 months ago
You are missing this part -> During times that the image processing application is not running, it should not be consuming any Azure compute resources. While the webjob is not running you will continue to pay for the app service plan associated.
upvoted 4 times
...
...
DeveshSolanki
5 years ago
No is it
upvoted 1 times
...
schalke04
5 years ago
Ans: Yes https://docs.microsoft.com/en-us/azure/app-service/webjobs-create
upvoted 2 times
...
Shiven
5 years, 1 month ago
Ans is correct: No The Azure Web Job is normally used to run a program or script in the same context as the Azure Web App. It would not be used to run a legacy-based application.
upvoted 3 times
...
Rajuuu
5 years, 2 months ago
Answer in the instead could also be to use a Azure Batch job which does not use the WebApp context and is standalone.
upvoted 1 times
...
wlfjck
5 years, 5 months ago
Why not Yes?
upvoted 1 times
Ekramy_Elnaggar
5 years, 5 months ago
Cuz, it was mentioned "During times that the image processing application is not running, it should not be consuming any Azure compute resources." , WebJobs run within Web App context and Web Apps are consuming compute resources since their creation till their deletion.
upvoted 37 times
nieuw
5 years, 1 month ago
WebJobs can run continuous or triggered (manual or on schedule). There is no additional cost to use WebJobs. https://docs.microsoft.com/en-us/azure/app-service/webjobs-create
upvoted 1 times
JakeCallham
5 years, 1 month ago
yes, compared to functions webjobs do not have consumption plan options. So answer is NO
upvoted 1 times
tartar
4 years, 9 months ago
B is ok
upvoted 1 times
...
...
Avanade2023
5 years, 1 month ago
This article say "For the scheduling to work reliably, enable the Always On feature. Always On is available only in the Basic, Standard, and Premium pricing tiers." So, scheduled Webjobs is not free even when it is waiting.
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 ...