Selecting Specific Columns in KQL Using the Project Operator
This AZ-104 practice question tests your understanding of monitor and maintain azure resources. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
AzureDiagnostics sample rows
TimeGenerated OperationName Status VaultName
2026-04-26T01:03:12Z BackupJob Failed Vault-Prod
2026-04-26T01:04:10Z BackupJob Succeeded Vault-Prod
Query draft:
AzureDiagnostics
| where TimeGenerated > ago(24h)
| where Status == "Failed"
| ____ TimeGenerated, VaultName, OperationName
Based on the exhibit, which KQL operator should replace the blank to return only those columns?
Exhibit
AzureDiagnostics sample rows
TimeGenerated OperationName Status VaultName
2026-04-26T01:03:12Z BackupJob Failed Vault-Prod
2026-04-26T01:04:10Z BackupJob Succeeded Vault-Prod
Query draft:
AzureDiagnostics
| where TimeGenerated > ago(24h)
| where Status == "Failed"
| ____ TimeGenerated, VaultName, OperationName
A
where, because it filters rows and also selects the visible columns.
Why wrong: where filters rows based on conditions. It does not control which columns are displayed in the output.
B
summarize, because it groups the failed records into a smaller result set.
Why wrong: summarize is used for aggregation and grouping. It is not the correct operator for choosing a specific set of output columns.
C
project, because it returns only the named columns in the result.
project is the KQL operator used to shape the output and keep only the columns listed. In this query, it returns TimeGenerated, VaultName, and OperationName for easier reading.
D
extend, because it creates new output columns for the selected fields.
Why wrong: extend is used to add calculated columns. It does not remove unneeded columns from the result set.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
project, because it returns only the named columns in the result.
The `project` operator in Kusto Query Language (KQL) is specifically designed to select a subset of columns from the input table, returning only the named columns in the result set. This matches the requirement to 'return only those columns,' making option C correct.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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, because it filters rows and also selects the visible columns.
Why it's wrong here
where filters rows based on conditions. It does not control which columns are displayed in the output.
When this WOULD be correct
In a KQL question asking to filter records where the status is 'Failed' and return all columns, 'where' would be correct. For example: 'Which operator filters rows where Status == "Failed"?'
✗
summarize, because it groups the failed records into a smaller result set.
Why it's wrong here
summarize is used for aggregation and grouping. It is not the correct operator for choosing a specific set of output columns.
When this WOULD be correct
A question asks: 'Which KQL operator should be used to count the number of failed requests per hour?' In that case, 'summarize' is correct because it groups by time and counts failures.
✓
project, because it returns only the named columns in the result.
Why this is correct
project is the KQL operator used to shape the output and keep only the columns listed. In this query, it returns TimeGenerated, VaultName, and OperationName for easier reading.
Related concept
Read the scenario before looking for a memorised answer.
✗
extend, because it creates new output columns for the selected fields.
Why it's wrong here
extend is used to add calculated columns. It does not remove unneeded columns from the result set.
When this WOULD be correct
In a scenario where you need to add a new calculated column (e.g., 'TotalPrice = Quantity * UnitPrice') while keeping all existing columns in the result, 'extend' would be the correct operator to use.
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.
✓project, because it returns only the named columns in the result.Correct answer▾
Why this is correct
project is the KQL operator used to shape the output and keep only the columns listed. In this query, it returns TimeGenerated, VaultName, and OperationName for easier reading.
✗where, because it filters rows and also selects the visible columns.Wrong answer — click to see why▾
Why this is wrong here
The 'where' operator filters rows based on a condition, but it does not select or limit the columns returned; it returns all columns from the input table.
★ When this WOULD be the correct answer
In a KQL question asking to filter records where the status is 'Failed' and return all columns, 'where' would be correct. For example: 'Which operator filters rows where Status == "Failed"?'
Why candidates choose this
Candidates may confuse filtering rows with selecting columns, or think 'where' can also project columns because in SQL, SELECT can combine filtering and column selection.
✗summarize, because it groups the failed records into a smaller result set.Wrong answer — click to see why▾
Why this is wrong here
The question asks for an operator that returns only specific columns. 'summarize' groups rows and produces aggregation results, but it does not control which columns are returned; it can include additional columns from the group-by clause, not just the named ones.
★ When this WOULD be the correct answer
A question asks: 'Which KQL operator should be used to count the number of failed requests per hour?' In that case, 'summarize' is correct because it groups by time and counts failures.
Why candidates choose this
Candidates may think 'summarize' reduces the result set to only relevant columns, confusing aggregation with column selection, or they may misinterpret 'return only those columns' as a reduction in data volume.
✗extend, because it creates new output columns for the selected fields.Wrong answer — click to see why▾
Why this is wrong here
The 'extend' operator creates new columns based on existing ones, but it does not remove other columns from the output. The question requires returning only specific columns, which 'project' does by selecting a subset of columns and discarding the rest.
★ When this WOULD be the correct answer
In a scenario where you need to add a new calculated column (e.g., 'TotalPrice = Quantity * UnitPrice') while keeping all existing columns in the result, 'extend' would be the correct operator to use.
Why candidates choose this
Candidates may confuse 'extend' with 'project' because both can manipulate columns, but 'extend' adds columns without removing others, whereas 'project' selects only specified columns.
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?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is confusing row-filtering operators (like `where`) with column-selection operators (like `project`), leading candidates to choose `where` because they think it controls visible columns, when in fact it only filters rows.
Trap categories for this question
Command / output trap
where filters rows based on conditions. It does not control which columns are displayed in the output.
Detailed technical explanation
How to think about this question
In KQL, `project` is a columnar operator that works at the schema level, allowing you to reorder, rename, or drop columns by specifying only those you want in the output. Unlike `project-away` which explicitly removes columns, `project` implicitly excludes all unlisted columns. This is critical in log analytics when you need to reduce data transfer or focus on specific fields for performance or clarity.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this AZ-104 question in full detail.
Monitor and Maintain Azure Resources — This question tests Monitor and Maintain Azure Resources — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: project, because it returns only the named columns in the result. — The `project` operator in Kusto Query Language (KQL) is specifically designed to select a subset of columns from the input table, returning only the named columns in the result set. This matches the requirement to 'return only those columns,' making option C correct.
What should I do if I get this AZ-104 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.