Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft Certified: DevOps Engineer Expert · Microsoft
Step Sequence / Reordering Question
Add and arrange the steps in the correct execution order.
Hotspot Solution:
let startTime = ago(7d); Perf | where TimeGenerated >= startTime | where Computer == "web1" and ObjectName == "Memory" and CounterName == "Available Bytes" | summarize avgFreeMemory = avg(CounterValue) by bin(TimeGenerated, 1h) | project TimeGenerated, avgFreeMemoryMB = avgFreeMemory / 1024 / 1024 // Convert bytes to megabytes | render timechart with ( title = 'Average Free Memory on web1 Over Last 7 Days', ytitle = 'Free Memory (MB)', xaxis = 'Time', series = ['avgFreeMemoryMB'] )
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
let startTime = ago(7d); Perf | where TimeGenerated >= startTime | where Computer == "web1" and ObjectName == "Memory" and CounterName == "Available Bytes" | summarize avgFreeMemory = avg(CounterValue) by bin(TimeGenerated, 1h) | project TimeGenerated, avgFreeMemoryMB = avgFreeMemory / 1024 / 1024 // Convert bytes to megabytes | render timechart with ( title = 'Average Free Memory on web1 Over Last 7 Days', ytitle = 'Free Memory (MB)', xaxis = 'Time', series = ['avgFreeMemoryMB'] )
TimeGenerated > ago(7d) Bin(TimeGenerated, 1h) Syntax ago(timespan) timespan: The interval to subtract from the current UTC clock time now(). Example All rows with a timestamp in the past hour: T | where Timestamp > ago(1h) https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/ago-function
Yeah i agree < means less then, so "less then 7 days ago" means the last 7 days, Since the question states 'the past 7 days' > ago(7d) is correct.