Courseiva
Monitor and Maintain Azure ResourceshardMultiple SelectObjective-mapped

AZ-104 Monitor and Maintain Azure Resources Practice Question

A backup operations team exports Recovery Services vault logs to Log Analytics. They need a query that returns only failed backup jobs from the last 24 hours and displays just the vault name, protected item name, and error description. Which two KQL operators should the query include? Select two.

⚠ Common exam trap

Many candidates confuse `extend` with `project`—both can manipulate columns, but only `project` drops all unlisted columns, while `extend` keeps all original columns and adds new ones, failing to limit the output to the required fields.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

where

The `where` operator filters the Log Analytics data to include only rows where the backup job status equals 'Failed' and the timestamp falls within the last 24 hours. This is essential for narrowing down the dataset to the specific failed jobs the team needs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • where

    Why this is correct

    The where operator filters rows based on a boolean predicate, evaluating each row and retaining only those that satisfy the condition. In this scenario, it is the correct choice because the team must return only failed jobs from the last 24 hours, which requires a row-level filter such as Status == "Failed" and TimeGenerated >= ago(24h). Without where, the query would include all jobs regardless of status or time, making it impossible to isolate the specific failed backup operations.

  • project

    Why this is correct

    The project operator reshapes the output by selecting a specific subset of columns from the input table, discarding all others. Once the where operator has filtered the rows to only failed jobs from the last 24 hours, project is used to trim the result set to the fields the backup operations team needs—for example, job ID, backup item name, and error message. It does not filter rows; it only trims columns, which complements the row-filtering performed by where.

  • summarize

    Why it's wrong here

    The summarize operator aggregates rows into groups and computes a single aggregate value per group, such as count(), avg(), or max(), collapsing detailed records into summary statistics. Applying summarize to the Recovery Services Vault logs would return a total count of failures or a grouped breakdown by error, but it would lose the individual job-level details—job IDs, timestamps, and specific error messages—that the team needs to review. The requirement to list specific failed job records and fields demands row-level output, not aggregation.

    When this WOULD be correct

    If the question asked for the count of failed jobs per vault or per protected item, summarize with count() would be required to produce the aggregated result.

  • join

    Why it's wrong here

    The join operator merges rows from two different tables by matching keys, which is useful for combining related data from separate log sources. Here, the source is a single stream of Recovery Services Vault logs; there is no second table to join. Even if a second table were available, join would not filter on job status or time; it would only produce a wider combined table. Because the task is to filter and shape one log stream, join is both unnecessary and functionally incorrect for this requirement.

    When this WOULD be correct

    A question that asks to correlate backup job failures with the corresponding vault properties stored in a separate table, e.g., 'Return the vault name and error description for failed jobs, joining the backup jobs table with the vault metadata table on vault ID.'

  • extend

    Why it's wrong here

    The extend operator creates one or more new calculated columns and adds them to each row in the result set, increasing the width of the table. It cannot filter rows because it does not evaluate a predicate to exclude records; it simply appends derived values like duration or error code to every row. Therefore, while extend could be used later to compute a field, it cannot by itself return only failed jobs from the last 24 hours—that task fundamentally requires a row filter.

    When this WOULD be correct

    A question that asks to add a new column, such as calculating the duration of backup jobs from start and end times, would require 'extend'.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

whereCorrect answer

Why this is correct

The where operator filters rows based on a boolean predicate, evaluating each row and retaining only those that satisfy the condition. In this scenario, it is the correct choice because the team must return only failed jobs from the last 24 hours, which requires a row-level filter such as Status == "Failed" and TimeGenerated >= ago(24h). Without where, the query would include all jobs regardless of status or time, making it impossible to isolate the specific failed backup operations.

summarizeWrong answer — click to see why

Why this is wrong here

The query needs to filter rows (where) and select columns (project), not aggregate data. summarize would group rows and compute aggregates, which is unnecessary for simply listing failed jobs.

★ When this WOULD be the correct answer

If the question asked for the count of failed jobs per vault or per protected item, summarize with count() would be required to produce the aggregated result.

Why candidates choose this

Candidates may think summarize is needed to 'summarize' the error descriptions, but the requirement is to list individual failed jobs, not aggregate them.

joinWrong answer — click to see why

Why this is wrong here

The query only needs data from a single table (the backup jobs log), so there is no need to combine rows from two tables. The 'join' operator is used to merge rows from multiple tables based on a key, which is irrelevant here.

★ When this WOULD be the correct answer

A question that asks to correlate backup job failures with the corresponding vault properties stored in a separate table, e.g., 'Return the vault name and error description for failed jobs, joining the backup jobs table with the vault metadata table on vault ID.'

Why candidates choose this

Candidates may mistakenly think that because the query involves multiple data points (vault name, protected item, error), they need to join tables, not realizing all required fields are already in the same log table.

extendWrong answer — click to see why

Why this is wrong here

The 'extend' operator adds a new calculated column to the result set, but the question only requires filtering existing columns and selecting specific columns, not creating new ones.

★ When this WOULD be the correct answer

A question that asks to add a new column, such as calculating the duration of backup jobs from start and end times, would require 'extend'.

Why candidates choose this

Candidates may think they need to 'extend' the query to include error descriptions, but the error description is already present in the source data and just needs to be projected.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Go deeper

Related to this question

About these practice questions

This AZ-104 question is part of Courseiva's 1,049-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.