mediummultiple choiceObjective-mapped

You deploy a Windows VM with an ARM template. During the first boot, it must install IIS, copy application files from storage, and run a bootstrap script. Which Azure feature should you add to the deployment?

Question 1mediummultiple choice
Full question →

You deploy a Windows VM with an ARM template. During the first boot, it must install IIS, copy application files from storage, and run a bootstrap script. Which Azure feature should you add to the deployment?

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

A VM extension such as Custom Script Extension

A VM extension can run scripted configuration tasks during or after deployment, which fits bootstrap automation.

B

Distractor review

An availability set

An availability set affects placement and resiliency, but it cannot install or configure software on the VM.

C

Distractor review

A managed disk snapshot

A snapshot captures disk state, but it does not execute installation steps during first boot.

D

Distractor review

A public IP address

A public IP enables connectivity, but it does not automate IIS installation or file copy tasks.

Common exam trap

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Technical deep dive

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

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?

Static NAT maps one inside address to one outside address.

What is the correct answer to this question?

The correct answer is: A VM extension such as Custom Script Extension — A VM extension is the right tool when you need post-provisioning or first-boot configuration as part of deployment automation. The Custom Script Extension can install features, copy files, and execute bootstrap logic without requiring manual logon. This is more appropriate than relying on ad hoc access after deployment because it embeds the setup steps into the provisioning workflow and makes the build repeatable. Why others are wrong: An availability set changes fault domain placement, not software installation behavior. A snapshot is a storage copy point, not an automation mechanism. A public IP helps with remote connectivity, but the scenario is about unattended configuration at deployment time, so it does not satisfy the requirement.

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.