hardmulti selectObjective-mapped

A Windows VM must run a bootstrap script during provisioning to install a monitoring agent and write configuration files. The administrator does not want to log in interactively, and the script must be runnable again after the VM is rebuilt. Which two Azure compute components should be used? Select two.

Question 1hardmulti select
Full question →

A Windows VM must run a bootstrap script during provisioning to install a monitoring agent and write configuration files. The administrator does not want to log in interactively, and the script must be runnable again after the VM is rebuilt. Which two Azure compute components should be used? Select two.

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

Azure VM Agent

This is the runtime required for Azure to deliver and manage VM extensions.

B

Best answer

Custom Script Extension

This extension runs initialization commands and file-copy actions during or after provisioning.

C

Distractor review

Boot diagnostics

Boot diagnostics helps troubleshoot startup, but it does not execute provisioning scripts.

D

Distractor review

Availability zone

A zone improves resiliency, but it has no role in running post-deployment configuration tasks.

E

Distractor review

Ephemeral OS disk

An ephemeral OS disk changes disk persistence behavior, but it does not perform scripted setup.

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: Azure VM Agent — The Azure VM Agent is required for the platform to deliver and manage extensions inside the guest operating system. The Custom Script Extension is the component that actually runs the bootstrap commands to install software and write configuration files without interactive sign-in. Together, they allow the administrator to automate first-boot and rebuild-time setup consistently. This is the standard compute pattern for repeatable VM configuration during provisioning. Why others are wrong: Boot diagnostics is for diagnosing boot problems, not running provisioning logic. Availability zones provide resiliency but do not help with configuration automation. An ephemeral OS disk affects how the OS disk is stored and recreated, but it does not replace the guest agent or an extension for scripted setup. Those options are common Azure terms, but none of them performs the required initialization task.

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.