nerdexam
Microsoft

AZ-500 · Question #254

There are six Azure virtual machines (VMs)in your organization. The VMs are running Linux. Your organization has a line-of-business (LOB) application and these six VMs form the web tier of this LOB…

The correct answer is B. Custom script extension. To programmatically start key application services on Linux Azure VMs, the Custom Script Extension is the most appropriate solution.

Submitted by klara.se· Mar 6, 2026Secure compute, storage, and databases

Question

There are six Azure virtual machines (VMs)in your organization. The VMs are running Linux. Your organization has a line-of-business (LOB) application and these six VMs form the web tier of this LOB application. You want the key application services to start programmatically. Which of the following do you think you should use?

Options

  • AApplication security group (ASG)
  • BCustom script extension
  • CWebjob
  • DLogin App

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    92% (35)
  • C
    5% (2)

Why each option

To programmatically start key application services on Linux Azure VMs, the Custom Script Extension is the most appropriate solution.

AApplication security group (ASG)

An Application Security Group (ASG) is used to group VMs and define network security rules based on those groups, not to execute scripts or manage services on the VMs.

BCustom script extensionCorrect

The Azure Custom Script Extension allows you to download and execute scripts on Azure VMs. For Linux VMs, you can provide a shell script that starts your key application services, and this script will run during VM deployment or subsequent updates, ensuring services start programmatically.

CWebjob

A WebJob is a feature of Azure App Service that allows you to run programs or scripts in the context of a web app, not directly on an independent Azure VM.

DLogin App

"Login App" is not a standard Azure service or feature for automating service startup on VMs.

Concept tested: Automating VM configuration and service startup with Custom Script Extension

Source: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-linux

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice