easymultiple choiceObjective-mapped

A single Azure virtual machine must read blobs from a storage account without storing any passwords, keys, or connection strings. The identity should be removed automatically if the VM is deleted. Which option should you use?

Question 1easymultiple choice
Full question →

A single Azure virtual machine must read blobs from a storage account without storing any passwords, keys, or connection strings. The identity should be removed automatically if the VM is deleted. Which option 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

Storage account access key, because it is the simplest authentication method.

An access key is a secret and would have to be stored and managed on the VM or in configuration.

B

Best answer

System-assigned managed identity, because it is tied to that VM.

A system-assigned managed identity is attached directly to one Azure resource, such as a VM, and is automatically removed when that resource is deleted.

C

Distractor review

Shared access signature, because it always removes the need for identity management.

A SAS can limit access, but it is still a token you must generate and manage, and it is not tied to the VM itself.

D

Distractor review

User-assigned managed identity, because it is deleted automatically with the VM.

A user-assigned managed identity is reusable across resources and is not automatically deleted when one VM is removed.

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: System-assigned managed identity, because it is tied to that VM. — A system-assigned managed identity is the best choice for a single VM that needs to access Azure Storage without secrets. It is created for that VM, used for Azure AD-based authentication, and removed when the VM is deleted. That makes it ideal for reducing credential management and avoiding stored keys or passwords on the server. Why others are wrong: An access key is a long-lived secret, which is exactly what the scenario wants to avoid. A SAS token still has to be issued and managed separately. A user-assigned managed identity can be shared across resources, but it is not automatically deleted with a single 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.