PrepAway - Latest Free Exam Questions & Answers

How should you deploy App1.exe?

You deploy an Azure Web App named ContosoApp. ContosoApp runs on five instances.
You need to run an application named App1.exe automatically as a background process for ContosoApp. The
solution must ensure that App1.exe runs in one instance only.
How should you deploy App1.exe?

PrepAway - Latest Free Exam Questions & Answers

A.
as a continuous web job

B.
in a new worker role instance

C.
as a scheduled web job

D.
as a virtual application

Explanation:
https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-create-web-jobs#CreateScheduled

7 Comments on “How should you deploy App1.exe?

  1. Ricky says:

    If your web app runs on more than one instance, a continuously running WebJob will run on all of your instances. On-demand and scheduled WebJobs run on a single instance selected for load balancing by Microsoft Azure.
    +
    For Continuous WebJobs to run reliably and on all instances, enable the Always On* configuration setting for the web app otherwise they can stop running when the SCM host site has been idle for too long.




    0



    0
  2. mslover says:

    So both Triggered (Scheduled/OnDemand) and Continuous jobs can run in a single instance.

    https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-create-web-jobs#webjob-types

    So it comes down to: “You need to run an application named App1.exe automatically as a background process”.

    https://docs.microsoft.com/en-gb/azure/architecture/best-practices/background-jobs#hosting-environment

    “WebJobs run within the context of your web app as a continuous process. WebJobs also run in response to a trigger event from Azure Scheduler or external factors.”

    To me the correct answer will be A.




    0



    0
    1. Gman says:

      I agree with you Mslover. Continuous sounds better.

      https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-create-web-jobs

      Continuous:
      “Starts immediately when the WebJob is created. To keep the job from ending, the program or script typically does its work inside an endless loop. If the job does end, you can restart it.
      Runs on all instances that the web app runs on. You can optionally restrict the WebJob to a single instance.”




      0



      0

Leave a Reply