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
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.
More Monitor and Maintain Azure Resources questions
- A company runs 30 mission-critical Azure VMs in East US and wants automated cross-region disaster recovery to West US…
- An operations team has 45 Azure Monitor alert rules firing across a production resource group (RG-Prod). Every Sunday…
- An administrator configures Azure Backup in a Recovery Services vault for 20 production VMs with a daily backup policy…
- A security administrator notices that an SSH connection (TCP 22) from 10.1.0.5 to an Azure Linux VM (10.2.0.10) is…
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.