An incident response team must investigate a three-day window from 14 months ago. The data is in long-term retention in a Log Analytics workspace. The investigators will run many different, iterative KQL queries over every record in that window and need fast, full-featured queries for about a week, and the company wants to minimize cost. What should you recommend?
Choose one.
Restore and search jobs both reach long-term retention: restore for many queries over a time slice, search jobs for one query over a large range.
The deciding details are many different iterative queries over every record in a short window, and the need to minimize cost. Restore brings that time range back into the analytics tier so any number of fast, full-featured queries can run against it, and it is billed only for the restored slice until you dismiss it. A search job is designed to run a single query and save matching records to a new table, so it suits finding specific events over a long range, not repeated exploration. Extending the table's analytics retention to cover 14 months would also make the data queryable, but it keeps paying analytics retention for the whole table every month instead of for three days of data for one week. An export rule only sends data that arrives after it is created.
- Note whether the need is one query over a long range or many queries over a short slice.
- One query, large range: search job. Many queries, short slice: restore.
- Compare cost: restore bills only the slice for as long as you keep it; longer analytics retention bills the whole table indefinitely.
Exam tip: Iterating over a short slice of old data = restore; one targeted query over a long range = search job.
AZ-305 Logging and Monitoring Design: Log Analytics Workspaces, Log Routing, Alerts and Azure Monitor — the lesson that teaches this.