easymultiple choiceObjective-mapped

You are creating a new Ubuntu VM and want it to create a local admin account and install packages automatically on the first boot. Which approach should you use?

Question 1easymultiple choice
Full question →

You are creating a new Ubuntu VM and want it to create a local admin account and install packages automatically on the first boot. Which approach 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

Distractor review

Use a custom image and manually log in later.

Custom images help standardize deployments, but they do not automatically perform first-boot tasks.

B

Distractor review

Use an availability set so the script runs during placement.

Availability sets improve resilience, but they do not provide first-boot configuration.

C

Best answer

Use cloud-init to run first-boot configuration in Linux.

cloud-init is designed for Linux first-boot automation and can create users, install packages, and apply startup settings.

D

Distractor review

Use a snapshot of the operating system disk.

Snapshots capture disk state, but they do not execute configuration commands during provisioning.

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 cloud-init to run first-boot configuration in Linux. — cloud-init is the standard Linux initialization mechanism for Azure and other cloud platforms. It runs during the first boot sequence, which makes it ideal for creating local users, installing packages, writing configuration files, and performing other startup tasks without manual intervention. For a new Ubuntu VM, this is the most direct and reliable way to automate initial setup. Why others are wrong: An availability set only improves VM placement resilience. A snapshot preserves disk contents but does not configure the guest OS. A custom image can speed deployment, yet it still does not replace first-boot automation. None of those options are meant to perform initial Linux configuration inside the VM.

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.