hardmultiple choiceObjective-mapped

A storage account hosts application logs that security wants to search in Log Analytics for 30 days and keep in a separate retained copy for one year. They also want to monitor storage metrics in the same place for troubleshooting. What should be configured on the storage account?

Question 1hardmultiple choice
Full question →

A storage account hosts application logs that security wants to search in Log Analytics for 30 days and keep in a separate retained copy for one year. They also want to monitor storage metrics in the same place for troubleshooting. What should be configured on the storage account?

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

Create an action group that archives storage events and forwards them to investigators.

Action groups only route notifications and do not collect or archive resource telemetry.

B

Distractor review

Enable only the activity log export because it already includes all storage telemetry.

Activity log export captures control-plane events, but it does not include the storage account's resource logs and metrics.

C

Best answer

Create a diagnostic setting that sends the storage resource logs and AllMetrics to Log Analytics and a storage account.

Diagnostic settings can stream both resource logs and supported metrics from the storage account. Sending the logs to Log Analytics makes them searchable for troubleshooting, while sending them to a storage account preserves a second copy for the required one-year retention. Including metrics in the same diagnostic setting gives operators a unified view of performance and troubleshooting data. This is the most complete configuration for the stated retention and analysis goals.

D

Distractor review

Create a metric alert on the storage account and use it as the retention mechanism.

Metric alerts can notify on thresholds, but they do not store logs or provide archival retention.

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: Create a diagnostic setting that sends the storage resource logs and AllMetrics to Log Analytics and a storage account. — The storage account needs both searchable telemetry and a retained copy, which is exactly what a diagnostic setting provides when it sends resource logs and metrics to multiple destinations. Log Analytics supports querying the data during the 30-day troubleshooting window, while the storage account destination preserves a second copy for long-term retention. This configuration also captures metrics for operational visibility without relying on separate export processes or alerting features that do not archive data. Why others are wrong: The activity log does not contain the storage account's detailed resource logs. Action groups only notify people and cannot archive telemetry. Metric alerts are useful for detection, but they are not a data retention mechanism and do not satisfy the need for a second copy or searchable logs.

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.