easymultiple choiceObjective-mapped

After a Windows VM is created, the administrator wants IIS installed and a configuration script run automatically without signing in to the server. Which Azure feature should be used?

Question 1easymultiple choice
Full question →

After a Windows VM is created, the administrator wants IIS installed and a configuration script run automatically without signing in to the server. Which Azure feature 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

Distractor review

An availability set

An availability set improves resilience by distributing VMs across fault and update domains. It does not install software or execute post-deployment scripts on the VM. It addresses placement and availability, not guest operating system customization.

B

Best answer

A virtual machine extension

A VM extension is designed to run additional configuration tasks on a VM after deployment. For example, the Custom Script Extension can install software, copy files, or execute scripts without an interactive logon. This directly matches the requirement to automate IIS installation and post-deployment configuration.

C

Distractor review

An Azure Policy assignment

Azure Policy can audit or deny certain resource properties, but it does not execute guest-level scripts on a VM. It is used for compliance enforcement and configuration governance, not for installing IIS or running operating system scripts after deployment.

D

Distractor review

A network security group rule

An NSG controls traffic flow to and from network interfaces or subnets. It cannot deploy software, modify the operating system, or run scripts on the VM. It is unrelated to application installation and configuration tasks.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

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?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: A virtual machine extension — A VM extension is the right tool because extensions perform post-deployment configuration inside the guest operating system. The Custom Script Extension is commonly used to install roles like IIS, copy files, or run setup commands after the VM is provisioned. This avoids manual sign-in and makes the deployment repeatable and automated. Why others are wrong: An availability set is for resilience, not configuration. Azure Policy governs compliance, not guest actions. An NSG only filters network traffic. The question asks for something that runs inside the VM after deployment, which is exactly what a VM extension provides.

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.