Using KQL Take Operator: Retrieve a Sample of Malware Alerts
This SC-900 practice question tests your understanding of describe the capabilities of microsoft security solutions. 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
SecurityAlert | where AlertName == "Malware detected" | project TimeGenerated, ComputerName, AlertSeverity | order by TimeGenerated desc | take 10
Refer to the exhibit. An analyst runs a KQL query in Microsoft Sentinel. What is the primary purpose of this query?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "primary"
Why it matters: Asks for the main purpose or function, not a secondary benefit. Eliminate answers that describe side-effects or partial functions.
Exhibit
SecurityAlert | where AlertName == "Malware detected" | project TimeGenerated, ComputerName, AlertSeverity | order by TimeGenerated desc | take 10
A
To retrieve the most recent 10 malware alerts.
The query uses `take 10` to retrieve 10 malware alerts, but without an `order by` clause, the results are not guaranteed to be the most recent. The primary purpose is to return a limited set of 10 malware alerts.
B
To find the single highest severity alert.
Why wrong: It returns 10 alerts, not one.
C
To count the total number of malware alerts in the last 24 hours.
Why wrong: The query does not summarize or use time filters.
D
To list all computers with malware alerts.
Why wrong: It does not group by computer; it lists individual alerts.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
To retrieve the most recent 10 malware alerts.
The KQL query uses the `take` operator to return the first 10 rows of the result set after filtering for `Malware` alerts. Since the query does not include any `order by` or `sort` clause, the `take` operator returns an unspecified set of 10 records, but the primary intent is to retrieve a limited number (10) of malware alerts, not to order them by severity or time. The `where` clause filters for `AlertName` containing 'Malware', and `take 10` limits the output to 10 rows, making option A the correct description.
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.
✓
To retrieve the most recent 10 malware alerts.
Why this is correct
The query uses `take 10` to retrieve 10 malware alerts, but without an `order by` clause, the results are not guaranteed to be the most recent. The primary purpose is to return a limited set of 10 malware alerts.
Clue confirmation
The clue word "primary" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
To find the single highest severity alert.
Why it's wrong here
It returns 10 alerts, not one.
✗
To count the total number of malware alerts in the last 24 hours.
Why it's wrong here
The query does not summarize or use time filters.
✗
To list all computers with malware alerts.
Why it's wrong here
It does not group by computer; it lists individual alerts.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often assume `take 10` returns the most recent 10 alerts, but without an explicit `order by TimeGenerated desc`, the result set is arbitrary and not guaranteed to be the most recent; the question's phrasing 'most recent' is a distractor that tests understanding of KQL ordering behavior.
Detailed technical explanation
How to think about this question
In KQL, the `take` operator (synonymous with `limit`) returns a specified number of rows but does not guarantee which rows are returned unless combined with `order by`. This query lacks a time filter (e.g., `where TimeGenerated > ago(24h)`), so it retrieves alerts from the entire available data range, not just the last 24 hours. In Microsoft Sentinel, the `AlertName` field is a string, and the `contains` operator performs a case-insensitive substring match, so 'Malware' would match alerts like 'Malware detected' or 'Malware outbreak'.
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
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this SC-900 question in full detail.
Describe the capabilities of Microsoft security solutions — This question tests Describe the capabilities of Microsoft security solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: To retrieve the most recent 10 malware alerts. — The KQL query uses the `take` operator to return the first 10 rows of the result set after filtering for `Malware` alerts. Since the query does not include any `order by` or `sort` clause, the `take` operator returns an unspecified set of 10 records, but the primary intent is to retrieve a limited number (10) of malware alerts, not to order them by severity or time. The `where` clause filters for `AlertName` containing 'Malware', and `take 10` limits the output to 10 rows, making option A the correct description.
What should I do if I get this SC-900 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "primary". Asks for the main purpose or function, not a secondary benefit. Eliminate answers that describe side-effects or partial functions.
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 SC-900 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 SC-900 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.