Azure Administrator AZ-104 · Monitor and Maintain Azure Resources · medium

An Azure administrator needs to retain Azure Activity Log events (control-plane subscription operations like Create or Update Virtual Machine and Delete Network Security Group) for 365 days and run Kusto Query Language (KQL) queries across them. By default, how long does the Azure Activity Log retain events in the portal, and how should the administrator extend retention with KQL query support?

Published · Last updated · checked before publication — how we verify questions

Options

  • A7 days default; increase retention by deploying an Azure Standard Load Balancer
  • B90 days default; export Activity Logs via Diagnostic Settings to Log AnalyticsCorrect answer
  • C365 days default; KQL runs natively on raw Activity Logs without a workspace
  • D30 days default; enable Blob Soft Delete at the subscription root management scope

Answer: B. 90 days default; export Activity Logs via Diagnostic Settings to Log Analytics

By default, the Azure Activity Log retains events for 90 days. Creating a Diagnostic Setting at the subscription level to export the Activity Log (Administrative, Security, ServiceHealth, Policy, etc.) to a Log Analytics workspace enables KQL querying and configurable retention up to 730 days (interactive) / 12 years (archive).

Why the other options are wrong

  • A. 7 days default; increase retention by deploying an Azure Standard Load Balancer — The Activity Log retains events for 90 days by default, not 7 days, and Load Balancers do not store logs.
  • C. 365 days default; KQL runs natively on raw Activity Logs without a workspace — Default retention is 90 days, and KQL requires sending the logs to a Log Analytics workspace.
  • D. 30 days default; enable Blob Soft Delete at the subscription root management scope — Blob Soft Delete applies to storage account blobs, not subscription Activity Logs.

All Monitor and Maintain Azure Resources questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.