hardmulti selectObjective-mapped

A Windows VM must install a monitoring agent, run a bootstrap script during provisioning, and download a configuration file from an Azure resource without storing any credentials in the script or on disk. Which two Azure compute features should the administrator use? Select two.

Question 1hardmulti select
Full question →

A Windows VM must install a monitoring agent, run a bootstrap script during provisioning, and download a configuration file from an Azure resource without storing any credentials in the script or on disk. Which two Azure compute features should the administrator use? 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

Use a Custom Script Extension to run the bootstrap actions after provisioning.

A custom script extension can execute setup commands and copy files automatically during deployment.

B

Best answer

Assign a system-assigned managed identity to the virtual machine.

A system-assigned identity lets the VM authenticate to Azure services without embedded secrets.

C

Distractor review

Enable boot diagnostics and review the serial console output.

Boot diagnostics helps troubleshooting, but it does not perform the installation or secret-free authentication.

D

Distractor review

Attach a read-only managed disk to store the configuration file.

A managed disk is for persistent storage, not for securely authenticating to Azure resources.

E

Distractor review

Use an availability set to keep the bootstrap script highly available.

Availability sets are about resiliency, not about software installation or identity-based access.

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: Use a Custom Script Extension to run the bootstrap actions after provisioning. — The Custom Script Extension is the Azure VM feature designed to run commands, install software, and copy files as part of provisioning or after deployment. A system-assigned managed identity is the secure way for the VM to access Azure resources such as Key Vault or Storage without storing credentials in the script, VM image, or disk. Combining both meets the automation requirement and keeps authentication secret-free, which is the key security constraint in the scenario. Why others are wrong: Boot diagnostics is useful when startup fails, but it does not install agents or retrieve files. A managed disk provides storage, not authentication. An availability set improves uptime across host maintenance and failures, but it has nothing to do with boot-time automation or secret management. Those options would not complete the provisioning workflow the business asked for.

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.