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.
Question
Options
- AApplication security group (ASG)
- BCustom script extension
- CWebjob
- DLogin App
How the community answered
(38 responses)- A3% (1)
- B92% (35)
- C5% (2)
Why each option
To programmatically start key application services on Linux Azure VMs, the Custom Script Extension is the most appropriate solution.
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.
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.
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.
"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.