App1 Continuous WebJob | Azure Exam AZ-101 | Microsoft Azure Integration and Security

Ensure Continuous Running of Azure App Service Plan | Exam AZ-101 Solution | Microsoft Azure Integration and Security

Question

Note: This question is part of a 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 have an Azure web app named App1. App1 runs in an Azure App Service plan named Plan1. Plan1 is associated to the Free pricing tier.

You discover that App1 stops each day after running continuously for 60 minutes.

You need to ensure that App1 can run continuously for the entire day.

Solution: You add a continuous WebJob to App1.

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B

The solution provided, which is to add a continuous WebJob to App1, does not necessarily meet the goal of ensuring that App1 can run continuously for the entire day.

A WebJob is a way to run a program or script in the context of an App Service app. A continuous WebJob runs continuously, and is intended to perform background tasks, such as processing messages from a queue or monitoring a directory for new files. However, the behavior of a WebJob does not directly affect the behavior of the App Service app itself.

In this scenario, the App Service app stops each day after running continuously for 60 minutes. This behavior suggests that the App Service plan associated with the app is configured to use the Free pricing tier, which has a limit of 60 minutes of CPU time per day. When this limit is reached, the app is stopped until the next day.

To ensure that the app can run continuously for the entire day, one possible solution is to change the pricing tier of the App Service plan to a tier that allows for continuous operation. For example, the Basic, Standard, or Premium pricing tiers allow for an unlimited amount of CPU time per day.

Another possible solution is to enable the Always On feature for the App Service plan. This feature keeps the app loaded into memory all the time, even when there are no requests being processed. This can help ensure that the app does not get unloaded due to inactivity.

Therefore, the answer to the question is B. No, the solution provided does not necessarily meet the goal of ensuring that App1 can run continuously for the entire day. Other steps, such as changing the pricing tier of the App Service plan or enabling the Always On feature, may also be necessary.