easymulti selectObjective-mapped

A Windows VM in Azure must upload log files to a blob container every hour. Security policy forbids storing the storage account key or any long-lived SAS token on the VM. Which two actions should the administrator take? Select two.

Question 1easymulti select
Full question →

A Windows VM in Azure must upload log files to a blob container every hour. Security policy forbids storing the storage account key or any long-lived SAS token on the VM. Which two actions should the administrator take? 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

Enable a system-assigned managed identity on the VM.

A system-assigned managed identity gives the VM an Azure identity without storing secrets on the server. It can authenticate to Azure Storage through Microsoft Entra ID.

B

Best answer

Assign the Storage Blob Data Contributor role to that identity on the storage account or container.

This role grants the data-plane permissions needed to upload blobs. Assigning it at the storage account or container scope follows least privilege while still allowing writes.

C

Distractor review

Copy the storage account access key into a configuration file on the VM.

An access key is a long-lived secret and violates the requirement not to store credentials on the VM. It also creates unnecessary exposure if the VM is compromised.

D

Distractor review

Assign the Reader role at the resource group scope to the VM identity.

Reader only permits viewing Azure resources in the management plane. It does not allow the VM to upload blob data to the storage account.

E

Distractor review

Create a shared access signature that never expires and place it on the VM.

A never-expiring SAS token is effectively a stored secret and does not meet the security requirement. SAS should be time-limited and tightly scoped.

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: Enable a system-assigned managed identity on the VM. — A system-assigned managed identity lets the VM authenticate without embedding secrets, keys, or passwords. To make that identity useful for blob uploads, you must also grant a data-plane role such as Storage Blob Data Contributor on the storage account or container. Together, these two steps let the VM write blobs securely while avoiding long-lived credentials on the guest operating system. Why others are wrong: The storage account key and a never-expiring SAS both violate the no-secrets requirement. Reader is only for viewing Azure resources and cannot write blob data. These distractors are common mistakes because they mix management-plane access with data-plane access, but blob uploads require the correct storage data role.

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.