easymultiple choiceObjective-mapped

An administrator wants to send a virtual machine's guest logs to a central workspace so they can search them later with queries. Which configuration should be created on the VM or its resource provider first?

Question 1easymultiple choice
Full question →

An administrator wants to send a virtual machine's guest logs to a central workspace so they can search them later with queries. Which configuration should be created on the VM or its resource provider first?

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

A role assignment at the subscription scope

RBAC controls access permissions, but it does not export logs into Log Analytics.

B

Best answer

A diagnostic setting

A diagnostic setting routes platform or guest log data from the resource to a destination such as a Log Analytics workspace.

C

Distractor review

A private endpoint

A private endpoint changes network access to a service, not log collection behavior.

D

Distractor review

A lock on the VM resource group

A lock prevents unwanted changes, but it does not collect or forward logs.

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: A diagnostic setting — A diagnostic setting is the correct choice because it is the Azure feature used to send logs and metrics from a resource to destinations such as a Log Analytics workspace. After the setting is enabled, the administrator can query the collected data later with KQL. This is the standard setup for centralizing troubleshooting data from Azure resources. Why others are wrong: A role assignment only grants permissions. A private endpoint affects network reachability, not telemetry collection. A resource lock helps with change control, but it does not send logs anywhere. None of those options create the log export pipeline needed for centralized investigation.

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.