easymultiple choiceObjective-mapped

You have already deployed a Windows Server VM. After provisioning, you need to run a PowerShell script once to configure an application and create a registry setting without logging in interactively. Which Azure feature should you use?

Question 1easymultiple choice
Full question →

You have already deployed a Windows Server VM. After provisioning, you need to run a PowerShell script once to configure an application and create a registry setting without logging in interactively. Which Azure feature should you use?

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

This extension can download and run a script on a VM after deployment without requiring interactive logon.

B

Distractor review

cloud-init

cloud-init is used for Linux first-boot configuration and is not the normal Windows post-deployment script option.

C

Distractor review

Azure Policy

Azure Policy can enforce configuration rules, but it does not execute a one-time application setup script on a VM.

D

Distractor review

Recovery Services vault

A Recovery Services vault is used for backup operations, not for running VM configuration scripts.

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: Custom Script Extension — The Custom Script Extension is the correct feature because it is built for post-deployment VM customization. For a Windows Server VM, it can run PowerShell scripts after the machine is provisioned, which is useful for application configuration, registry changes, or other setup tasks. This avoids interactive sign-in and keeps the deployment process repeatable and automated. Why others are wrong: cloud-init is a Linux-first boot tool, so it is not the right answer for a Windows VM. Azure Policy controls compliance and resource configuration rules, but it does not run ad hoc setup scripts on guest systems. Recovery Services vault is for backup and restore, which is unrelated to application initialization or registry configuration.

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.