mediummultiple choiceObjective-mapped

A Windows VM must automatically run a setup script after provisioning to install an agent, create a folder, and write configuration files. The administrator wants the script to be delivered through Azure management and run without a human signing in. What should be used?

Question 1mediummultiple choice
Full question →

A Windows VM must automatically run a setup script after provisioning to install an agent, create a folder, and write configuration files. The administrator wants the script to be delivered through Azure management and run without a human signing in. What should be used?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

Custom Script Extension

Custom Script Extension can download and run setup commands on the VM after provisioning without interactive login.

B

Distractor review

Availability set

An availability set improves resiliency, but it does not execute configuration scripts on the guest operating system.

C

Distractor review

Azure Load Balancer

A load balancer distributes traffic, but it cannot install software or configure the Windows guest.

D

Distractor review

Route table

A route table changes packet routing, but it has no role in software installation or startup configuration.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Custom Script Extension — The Custom Script Extension is the right tool because it runs configuration commands on the VM after deployment and does not require a person to sign in interactively. It is commonly used to install agents, initialize folders, or apply simple configuration steps as part of provisioning. The administrator can manage the script through Azure, which keeps the process repeatable and consistent. Availability sets, load balancers, and route tables solve different infrastructure problems and do not execute guest-level setup work. Why others are wrong: An availability set only helps with resilience, not configuration. Azure Load Balancer manages network traffic distribution and has no guest OS access. A route table influences traffic flow between networks and subnets, but it does not run scripts or install software inside the VM.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.