Cloud / Microsoft Sentinel Interview questions
Last updated
1. What is Microsoft Sentinel?
Microsoft Sentinel is Microsoft's cloud-native SIEM (security information and event management) and SOAR (security orchestration, automation and response) platform. It collects security data from users, devices, applications and infrastructure, detects threats with analytics, and helps analysts investigate and respond from one place.
It is built on top of an Azure Monitor Log Analytics workspace, so everything it collects lives in workspace tables that you query with KQL. There are no servers to size or patch, and cost follows the volume of data you ingest.
Sentinel is now managed in the Microsoft Defender portal, where it sits next to Defender XDR as part of the unified security operations experience. The older Azure portal experience is on a retirement path.
Take quiz
EDR and MDM
WAF and CDN
SIEM and SOAR
IAM and PAM
Splunk SPL
T-SQL stored procedures
PromQL
Kusto Query Language (KQL)
2. What are the core components of Microsoft Sentinel?
Sentinel is a set of cooperating pieces layered on a Log Analytics workspace. Data comes in through connectors, rules turn it into alerts, and automation and investigation tools handle what happens next.
| Component | What it does |
| Data connectors | Bring logs from Microsoft and third-party sources into the workspace. |
| Analytics rules | Run KQL detections and raise alerts and incidents. |
| Incidents | Group related alerts and entities into a case for triage. |
| Workbooks | Dashboards built on workspace queries. |
| Hunting and notebooks | Proactive search for threats rules did not catch. |
| Automation rules and playbooks | Triage housekeeping and Logic Apps based response. |
| Watchlists and threat intelligence | Reference data and indicators used to enrich detections. |
| Content hub | Catalog of packaged solutions, templates and connectors. |
UEBA and the data lake extend this core with behavior baselines and low-cost long-term storage.
Take quiz
Analytics rules
Workbooks
Watchlists
The Content hub
Data connectors
Workbooks
Automation rules
Bookmarks
3. What is the role of the Log Analytics workspace in Sentinel?
The Log Analytics workspace is Sentinel's data store and query engine. Sentinel is enabled on a workspace, and every connector writes into tables inside it, such as SecurityEvent, SigninLogs and CommonSecurityLog.
The workspace also decides several things people often overlook:
- Data residency: data stays in the region where the workspace was created.
- Retention: set per workspace and overridable per table.
- Access control: Azure RBAC at workspace scope, with table-level RBAC for finer control.
- Billing: ingestion and commitment tiers are applied per workspace.
Take quiz
The region of the analyst's sign-in
The location of the log source
The Entra tenant's home country
The region of the Log Analytics workspace
A Log Analytics workspace
A resource group
An Azure subscription
A management group
4. What are data connectors in Microsoft Sentinel?
Data connectors are the integrations that move log data from a source into a Sentinel workspace. Each connector writes to one or more known tables so that built-in rules, workbooks and hunting queries can use the data.
They fall into a few families:
- Service to service: Microsoft Entra ID, Microsoft 365, Azure Activity and Defender XDR connect without an agent on the source.
- Agent based: the Azure Monitor Agent collects Windows Security events, Syslog and CEF from servers and forwarders.
- API and codeless: REST based connectors for SaaS products, many built with the Codeless Connector Framework.
- Custom: Logic Apps, Azure Functions or the Logs Ingestion API for sources with no ready connector.
Most solutions in the Content hub ship their own connector together with matching detections.
Take quiz
SecurityEvent
AzureActivity
SigninLogs
Syslog
An agent on every user laptop
A custom Syslog forwarder
A native service to service connector with no agent
A manual CSV upload
5. What is Kusto Query Language (KQL)?
KQL is the read-only query language used across Azure Monitor, Log Analytics and Microsoft Sentinel. A query starts from a table and passes rows through a chain of operators joined by the pipe character |.
SigninLogs | where TimeGenerated > ago(1d) | where ResultType != "0" | summarize Failures = count() by UserPrincipalName | top 10 by Failures desc
In Sentinel, KQL powers analytics rules, hunting queries, workbooks, watchlist lookups and parsers. Table and column names are case sensitive, and string operators matter: == is case sensitive, =~ is not, and has is usually faster than contains.
Take quiz
The double arrow >>
The semicolon ;
The ampersand &&
The pipe |
One row per user with a count
Every original row with an extra column
A list of duplicate users removed
Rows sorted alphabetically by user
6. What are analytics rules in Microsoft Sentinel?
Analytics rules are the detections that watch your data and raise alerts when suspicious patterns appear. Most contain a KQL query, a run schedule and a threshold; if the results meet the threshold, the rule creates an alert and, optionally, an incident.
A rule definition typically includes:
- the KQL query and how often it runs and how far back it looks
- severity and MITRE ATT&CK tactics and techniques
- entity mapping to accounts, hosts and IPs
- alert enrichment and custom details
- incident creation and alert grouping settings
- automated response through automation rules
You can start from built-in templates in the Content hub and tune them for your environment.
Take quiz
A new data connector
A new Log Analytics workspace
An alert, and optionally an incident
A refreshed watchlist
Query frequency
Suppression
Severity
Entity mapping
7. What are the types of analytics rules in Microsoft Sentinel?
Sentinel offers several rule types, each suited to a different detection style.
| Rule type | Purpose |
| Scheduled | Runs a KQL query at a set interval over a lookback window. |
| NRT (near real time) | Runs about every minute for low latency detections. |
| Anomaly | Uses ML models and writes results to the Anomalies table instead of raising alerts. |
| Threat intelligence | Matches indicators of compromise against your logs. |
| Microsoft security | Creates incidents from alerts of other Microsoft products (not needed in the Defender portal). |
| Fusion | Multistage attack correlation, replaced by Defender XDR correlation after Defender portal onboarding. |
Scheduled rules cover most custom detections. NRT is reserved for a small number of time critical ones.
Take quiz
Anomaly
Scheduled
NRT
Microsoft security
Fusion
NRT
Anomaly
Scheduled
8. What is an incident in Microsoft Sentinel?
An incident is the case file an analyst works on. It groups one or more related alerts, the entities involved and supporting evidence, so you investigate a single story instead of many separate alerts.
Each incident carries a severity, a status (New, Active or Closed), an owner, tags, comments, tasks and a timeline. When you close it, you pick a classification and add a comment:
- True positive: real malicious activity.
- Benign positive: suspicious but expected, such as an approved penetration test.
- False positive: the detection was wrong.
- Undetermined: not enough information to decide.
Take quiz
All tables in a workspace
Only connector health events
Related alerts, entities and evidence
Playbook run histories
True positive
False positive
Undetermined
Benign positive
9. What are entities in Microsoft Sentinel?
Entities are the normalized objects that appear in alerts: the account, host, IP address, URL, file, file hash, process, mailbox, cloud application and so on. They give raw columns a shared meaning so Sentinel can connect events across rules and data sources.
You create them with entity mapping in an analytics rule, pointing a query column at an identifier such as Name and UPNSuffix for an account or Address for an IP.
Well mapped entities make the investigation graph and entity pages useful, let alert grouping match related alerts, and feed UEBA. Rules with weak or missing mappings tend to produce incidents that are hard to correlate.
Take quiz
To lower ingestion cost
So incidents link accounts, hosts and IPs for correlation and investigation
To change table retention
To encrypt the alert payload
Data collection rule
Commitment tier
IP address
Workbook template
10. What are workbooks in Microsoft Sentinel?
Workbooks are interactive dashboards built on Azure Monitor workbooks. They run KQL against your workspace and present the results as charts, grids and tiles, with parameters such as time range or workspace to filter everything at once.
Common uses are monitoring connector and ingestion health, reporting SOC metrics like incidents by severity, and visualizing a specific data source such as Entra sign-ins. Many ship as templates inside Content hub solutions.
In the Defender portal they are found under Microsoft Sentinel > Threat management > Workbooks, and you can edit them there directly.
Take quiz
Power BI dataflows
Grafana
Azure Data Factory
Azure Monitor workbooks
KQL queries against workspace data
Playbook run history only
Manually uploaded spreadsheets
Entra app registrations
11. What is the Content hub in Microsoft Sentinel?
The Content hub is Sentinel's catalog of ready-made security content. It packages solutions, each bundling items for one product or scenario: data connectors, analytics rule templates, workbooks, hunting queries, parsers, watchlists and playbooks. Standalone items are available as well.
Installing a solution adds the content to your workspace, but it does not turn detections on by itself. You still create rules from the installed templates, review the query, and enable them.
Solutions are versioned, so you can see when an update is available and refresh the installed content.
Take quiz
Nothing, rules always auto-enable
Create and enable rules from the installed templates
Recreate the workspace
Delete the data connector
A new pricing tier
A Log Analytics table type
A packaged bundle of related connectors, rules, workbooks and playbooks
An Azure RBAC role
12. What are watchlists in Microsoft Sentinel?
A watchlist is a named reference dataset, usually imported from CSV, that you can join against log data in KQL. Typical entries are VIP accounts, approved admin IPs, terminated employees or asset inventories.
You read one with the _GetWatchlist() function and its alias, matching on the SearchKey column:
SigninLogs | where UserPrincipalName in ((_GetWatchlist('VIPUsers') | project SearchKey))
Watchlists suit small to medium lookup data you maintain yourself. They are not meant for bulk logs, and unlike threat intelligence indicators they have no built-in expiry or confidence scoring.
Take quiz
_GetWatchlist('alias')
_GetTable('alias')
getschema('alias')
watchlist.read('alias')
Storing terabytes of firewall logs
Listing VIP accounts so their alerts can be prioritized
Replacing a data connector
Hosting playbook source code
13. What is threat hunting in Microsoft Sentinel?
Threat hunting is the proactive, hypothesis-driven search for malicious activity that existing rules did not flag. Instead of waiting for an alert, an analyst asks a question such as "has any account signed in from two countries within an hour?" and tests it in the data.
Sentinel supports this with several tools:
- Hunting queries: built-in and custom KQL mapped to MITRE ATT&CK.
- Bookmarks: save interesting results as evidence and attach them to incidents.
- Livestream: run a query continuously and get notified of new matches.
- Notebooks: Jupyter based analysis for heavier investigation.
- Search jobs: pull specific records out of large or archived data.
A hunting query that proves valuable can be promoted to an analytics rule.
Take quiz
Scheduling a rule to run hourly
Changing a table's retention
Saving interesting query results as evidence, which can be added to an incident
Disabling a data connector
Summary rules
Watchlists
Workbook parameters
Livestream
14. What are playbooks in Microsoft Sentinel?
A playbook is an automated response workflow built on Azure Logic Apps. It runs in response to an incident, an alert, or an entity you select manually, and chains actions through Logic Apps connectors.
Typical playbook actions include enriching an IP with a reputation lookup, posting to a Teams channel, opening a ServiceNow ticket, disabling a compromised user in Microsoft Entra ID, or isolating a device. Playbooks can be started by an automation rule or run manually from an incident.
Both Consumption and Standard Logic Apps work. The Sentinel service needs the Microsoft Sentinel Automation Contributor role on the playbook's resource group to trigger them from automation rules.
Take quiz
Azure Logic Apps
Azure Functions only
Power BI dataflows
Azure Data Factory
Changing table retention
Disabling a compromised user in Entra ID and notifying Teams
Writing KQL parsers
Installing the Azure Monitor Agent
15. What are automation rules in Microsoft Sentinel?
Automation rules are Sentinel's built-in, lightweight way to handle incidents and alerts without writing a Logic App. They fire on a trigger, check conditions, and then run ordered actions.
- Triggers: incident created, incident updated, or alert created.
- Conditions: analytics rule name, severity, status, tags, entities and more.
- Actions: assign an owner, change status or severity, add tags or tasks, close an incident, or run a playbook.
Rules run in the order you set, can carry an expiration date, and are commonly used to auto-close known noise or route incidents to the right team. Anything needing branching logic or external APIs belongs in a playbook.
Take quiz
Rewrite the KQL of a rule
Create a new workspace
Change an Entra Conditional Access policy
Assign an owner and add tags to an incident
Their order number
Alphabetical rule name
Random selection
Only the creation date
16. What is UEBA in Microsoft Sentinel?
UEBA (User and Entity Behavior Analytics) learns what normal looks like for users, hosts and IPs, then flags activity that departs from it. It builds a baseline per entity and compares it with a peer group, such as colleagues in the same team.
Once enabled in settings with sources like Entra ID sign-in and audit logs, Azure Activity and Windows security events, it writes enriched output you can query:
BehaviorAnalyticswith activity insights and an investigation priority scoreUserPeerAnalyticsandIdentityInfofor peers and identity contextAnomaliesfor detected anomalous behavior
It does not replace rules. It adds context that helps analysts decide which users and hosts to look at first.
Take quiz
Commitment tier
Investigation priority
Ingestion delay
Retention days
Only a static blocklist of IPs
The firewall rule set
The entity's own baseline and its peer group
Azure billing data
17. What is the Microsoft Sentinel data lake?
The Sentinel data lake is a cloud-native store for large volumes of security data at much lower cost than the analytics tier, with long retention (up to 12 years) and a clean split between storage and compute.
You can mirror analytics-tier data into it or send high-volume tables there directly, then work with it through:
- KQL queries over lake data
- KQL jobs that run on a schedule and can promote results to the analytics tier
- Jupyter notebooks in Visual Studio Code for heavier analysis
- an MCP server so AI agents can query the data
It suits historical investigations, compliance retention and bulk telemetry you rarely query. Real-time detection still belongs on analytics-tier tables.
Take quiz
Hosting playbooks
Issuing Entra access tokens
Replacing KQL with SQL only
Low-cost, long-term storage and analysis of large volumes of security data
KQL jobs
Watchlist refresh
Automation rules
Workbook parameters
18. What are the log tiers in Microsoft Sentinel?
Sentinel lets you place each table in a tier that matches how the data is used. The tier controls cost, query features and whether the table can power detections.
| Tier | Best for | Detections |
| Analytics | Security data used by rules, hunting and workbooks. | Full support, including scheduled and NRT rules. |
| Basic | High-volume data queried occasionally. | No analytics rules; limited KQL. |
| Auxiliary | Very high-volume, rarely queried data kept cheaply. | No analytics rules; limited KQL. |
| Data lake | Long-term, low-cost retention and large-scale analysis. | Not for real-time rules; use KQL jobs. |
Microsoft is steering low-cost, long-retention scenarios toward the data lake, and Defender tables support Analytics and data lake tiers. A table's tier change applies to new data only.
Take quiz
Basic
Auxiliary
Analytics
Data lake
Analytics with a commitment tier
Premium
A dedicated cluster
Auxiliary or data lake
19. What are the built-in roles for Microsoft Sentinel?
Sentinel uses Azure RBAC, assigned at the workspace or its resource group. The main roles form a ladder of capability.
| Role | What it allows |
| Microsoft Sentinel Reader | View data, incidents, workbooks and rules. |
| Microsoft Sentinel Responder | Everything a Reader can do, plus manage incidents (assign, change status, comment). |
| Microsoft Sentinel Contributor | Everything a Responder can do, plus create and edit rules, workbooks and connectors. |
| Microsoft Sentinel Automation Contributor | Lets Sentinel run playbooks; assigned to the service, not people. |
| Microsoft Sentinel Playbook Operator | List, view and manually run playbooks. |
Give analysts the least role they need. Where the Defender portal's unified RBAC is enabled, it can be used alongside these.
Take quiz
Microsoft Sentinel Responder
Microsoft Sentinel Reader
Microsoft Sentinel Contributor
Microsoft Sentinel Automation Contributor
Microsoft Sentinel Reader
Microsoft Sentinel Automation Contributor
Log Analytics Reader
Workbook Reader
20. How do you enable Microsoft Sentinel on a workspace?
You add Sentinel to an existing or new Log Analytics workspace, then connect data and content. The steps are:
- Create a Log Analytics workspace in the region that meets your data residency needs, or pick an existing one.
- Add Microsoft Sentinel to that workspace. You need Contributor rights on the subscription or resource group that holds it.
- Connect data sources through data connectors, starting with free or high-value ones such as Entra ID, Azure Activity and Defender XDR.
- Install relevant solutions from the Content hub and enable analytics rules from their templates.
- Onboard the workspace to the Defender portal. New customers are onboarded automatically.
Nothing shows up until at least one connector is sending data.
Take quiz
An Event Hub namespace
A Logic App
A Log Analytics workspace
A dedicated virtual machine
Creating a workbook
Publishing a playbook
Setting an incident severity
Connecting at least one data source with a data connector
21. What is the pricing model of Microsoft Sentinel?
Sentinel is billed on data ingested, not on users or alerts. The cost combines the Sentinel analysis charge and the underlying Log Analytics ingestion charge, and simplified pricing presents them as one per-GB rate.
- Pay-as-you-go: a flat per-GB rate for the Analytics tier.
- Commitment tiers: commit to a daily GB volume for a discounted per-GB rate.
- Cheaper tiers: Basic, Auxiliary and the data lake cost far less per GB.
- Included retention: the first 90 days are covered for Sentinel-enabled workspaces.
- Free sources: some data, such as Azure Activity and Office 365 audit logs, is not charged for ingestion.
Each workspace meets its commitment tier on its own, so splitting workspaces can cost you a discount. Check the Azure pricing page for current rates.
Take quiz
Number of analysts
Gigabytes ingested per day
Number of incidents
Number of analytics rules
A fixed monthly fee per analyst
Unlimited free retention
A discounted per-GB rate for a fixed daily ingestion volume
Free Logic Apps runs
22. What is the retirement timeline for Sentinel in the Azure portal?
Microsoft Sentinel in the Azure portal will be retired on March 31, 2027. After that date it is managed only in the Microsoft Defender portal. The date was extended from the original target of July 1, 2026 after customer and partner feedback.
Your workspace, data and rules are not deleted. Only the management experience moves. New customers who onboard their first workspace have been taken to the Defender portal automatically since July 2025.
Plan the move early: check automation rules and playbooks, retrain analysts on the Defender portal, and confirm any tools that depend on the old portal paths.
Take quiz
July 1, 2026
December 31, 2026
June 30, 2028
March 31, 2027
It stays in the workspace; only the management portal changes
It is deleted
It must be re-ingested
It moves to a different tenant
23. What is the difference between an alert and an incident in Sentinel?
An alert is one detection event, raised by an analytics rule or a Microsoft security product. An incident is the case that groups one or more alerts, with their entities and evidence, for an analyst to work.
| Alert | Incident |
| A single detection result. | A container for related alerts. |
Stored in SecurityAlert. |
Stored in SecurityIncident. |
| Has no owner or status workflow. | Has owner, status, classification, tasks and comments. |
| Created by a rule or product. | Created from alerts by incident settings, or by Defender correlation. |
A rule can be set to create alerts only, in which case no incident is opened. In the Defender portal, Sentinel and XDR alerts are correlated into the same incident queue.
Take quiz
SecurityIncident
SecurityAlert
Heartbeat
Usage
Exactly one
Always exactly five
One or many
None, incidents only hold comments
24. What is the difference between scheduled and NRT analytics rules?
Scheduled rules run a query at an interval you choose, while NRT (near real time) rules run roughly every minute for fast detection.
| Aspect | Scheduled | NRT |
| Run interval | Minutes to days, set by you. | About every minute. |
| Lookback | Configurable, up to 14 days. | Short, about one minute. |
| Query freedom | Joins, aggregation and watchlists across tables. | Restricted; keep it simple and focused. |
| Volume | Many rules per workspace. | A limited number per workspace. |
Use NRT for a few time-critical detections, like a break-glass account sign-in. Choose scheduled when you need aggregation over a longer window, such as counting failures over an hour.
Take quiz
About every minute with a very short lookback
Every 24 hours
Only on demand
Every 5 minutes over 14 days
When you need alerts within a minute
When the logic needs aggregation over a longer lookback
When the data is in a Basic tier table
When you do not want a query
25. How does incident grouping work in analytics rules?
By default each alert from a rule becomes its own incident, which floods the queue when a rule fires repeatedly. Grouping settings in the rule let related alerts roll into one incident instead.
The incident settings tab offers:
- Create incidents from alerts on or off.
- Group all alerts from the rule into a single incident, or group only alerts that match chosen entities, such as the same account or host.
- Match type: all selected entities must match, any of them, or specific ones.
- Time window: how long a matching incident stays open to receive more alerts, up to 7 days.
- Reopen closed incidents when a matching alert arrives.
Separately, event grouping decides whether one alert covers all query results or one alert is raised per event row. Incidents also have a cap on grouped alerts, so very noisy rules still need tuning.
Take quiz
The rule runs faster
Alerts are encrypted
Related alerts about the same account or host land in one incident
Retention is extended
Raises a single alert for the whole run
Closes old incidents
Moves data to Basic tier
Raises one alert per result row of the query
26. What is the difference between automation rules and playbooks?
An automation rule is a native, lightweight decision point. A playbook is a full Logic Apps workflow. In practice they work together: the rule decides, the playbook acts.
| Automation rule | Playbook |
| Built into Sentinel. | Azure Logic Apps workflow. |
| Triggers on incident created, incident updated or alert created. | Triggers on incident, alert or a manually chosen entity. |
| Fixed actions: assign, tag, change status or severity, add task, run playbook. | Any Logic Apps connector, branching, loops and API calls. |
| Multiple rules run in a set order. | Runs one workflow per trigger. |
Use rules for triage housekeeping, such as auto-closing known noise. Use playbooks for integration work like ticketing, enrichment or blocking a user.
Take quiz
A playbook
An automation rule alone
A workbook
A watchlist
It stores raw logs
It can tag, assign and decide which playbooks to run before heavier logic starts
It replaces KQL
It authenticates users in Entra ID
27. How do playbooks authenticate to Azure and third-party services?
Playbooks authenticate through their Logic Apps connections. For Sentinel and other Azure resources the recommended option is a managed identity, system or user assigned, granted just the roles it needs, such as Microsoft Sentinel Responder on the workspace.
Other options exist but have drawbacks. A connection signed in with a person's account breaks when the token expires or that person leaves. A service principal works but adds a secret to rotate.
For third-party systems that use API keys or passwords, keep the secret in Azure Key Vault and read it from the workflow rather than pasting it into an action. Separately, the Sentinel service needs Microsoft Sentinel Automation Contributor on the playbook's resource group to start playbooks from automation rules.
Take quiz
An administrator's personal sign-in
A shared password in the Logic App body
Anonymous access
A managed identity
Azure Key Vault
In incident comments
In a watchlist as plain text
Inside the analytics rule query
28. When should you use Basic or Auxiliary logs instead of Analytics logs?
Use them for data that is high in volume, low in detection value and queried only now and then. Everything that feeds scheduled or NRT rules, hunting at scale and workbooks should stay in the Analytics tier.
| Data example | Suggested tier |
| Entra ID sign-in logs used by active rules | Analytics |
| Firewall allow traffic kept for investigations | Basic or Auxiliary |
| Verbose debug or flow logs for compliance | Auxiliary or data lake |
| Firewall deny events used in detections | Analytics |
Many teams split one source: send the detection-relevant subset to Analytics and the bulk to a cheaper tier, using a split transformation in the data collection rule.
Take quiz
Sign-in logs feeding live rules
High-volume network flow logs queried only during investigations
Security events used by NRT rules
The incident table
Verbose debug logs
Old DNS lookups kept for audit
Sign-in logs that feed active detections
Packet captures
29. How do DCR transformations reduce Sentinel costs?
A data collection rule (DCR) can run a KQL transformation on incoming records before they are stored. By dropping rows and columns you do not need, you ingest less and pay less.
Inside the transformation, source stands for the incoming data. For example, to drop accepted firewall traffic and a bulky column:
source | where DeviceAction != "Accept" | project-away AdditionalExtensions
You can also parse fields, add columns, or use a split transformation to send different rows to different tables or tiers. Keep TimeGenerated, and test carefully, because dropped data cannot be recovered and only a subset of KQL operators is allowed.
Take quiz
input
stream
this
source
Less data is ingested and billed
Longer free retention
Faster Entra sign-ins
Automatic incident closure
30. How does the Azure Monitor Agent send data to Sentinel?
The Azure Monitor Agent (AMA) runs on a Windows or Linux machine, or on an Azure Arc enabled server, and collects data as instructed by a data collection rule associated with that machine. It authenticates with a managed identity and sends the data to the workspace.
flowchart LR A["Server with AMA"] --> B["Data collection rule"] B --> C["Optional transformation"] C --> D["Log Analytics workspace"] D --> E["Sentinel rules and hunting"]
The DCR defines what to collect, such as Windows Security events filtered by XPath, Syslog facilities or CEF, and where to send it. A data collection endpoint is needed for some scenarios, such as private networks.
AMA replaced the legacy Log Analytics (MMA) agent, which was retired on August 31, 2024.
Take quiz
A workbook parameter
A playbook trigger
A data collection rule associated with the machine
An automation rule
The Azure Backup agent
The Automation Hybrid Worker
The Defender for Endpoint sensor
The Log Analytics (MMA) agent
31. What is the difference between Syslog and CEF ingestion?
Both usually arrive over syslog on a Linux forwarder running AMA, but they land in different tables with different structure. Syslog keeps the raw message text; CEF (Common Event Format) carries key-value fields that are parsed into columns.
| Syslog | CEF |
Stored in the Syslog table. |
Stored in CommonSecurityLog. |
| Message body mostly needs parsing in KQL. | Fields like SourceIP, DestinationIP and Activity arrive parsed. |
| Works for any syslog sender, such as Linux hosts. | Used by security appliances such as firewalls and proxies that emit CEF. |
Prefer CEF when the device supports it. Avoid sending one stream to both, which doubles ingestion cost.
Take quiz
CommonSecurityLog
Syslog
SecurityEvent
Event
CEF is only for Windows event logs
CEF is preferred when the device can emit it because fields arrive parsed into columns
CEF cannot be sent through a Linux forwarder
Syslog gives a dedicated parsed SourceIP column
32. How do codeless connectors work in Microsoft Sentinel?
The Codeless Connector Framework (CCF) lets you build a connector for a REST API using JSON definitions, without writing or hosting an Azure Function. Sentinel runs the polling, scheduling and retries for you.
A CCF connector is assembled from a few parts:
- a connector definition that creates the page in the portal
- a data connector resource that sets the API endpoint, authentication such as API key, basic or OAuth2, and paging
- a data collection rule with a transformation that shapes incoming data
- a destination table, often a custom
_CLtable
Compared with function-based connectors, there is no compute to patch or scale, and the connector can be packaged into a Content hub solution.
Take quiz
Using a data collection rule
Having a destination table
Hosting and maintaining your own code
Authenticating to the API
A workbook template
A watchlist
An automation rule
The data collection rule transformation
33. How does Sentinel integrate with Microsoft Defender XDR in the Defender portal?
When a workspace is connected to the Defender portal, Sentinel and Defender XDR share one incident queue, one hunting experience and one set of analyst workflows.
- Unified incidents: the Defender XDR correlation engine merges alerts from Sentinel rules and Defender products into a single incident.
- Two way sync: status, owner, classification and comments stay aligned between the portals.
- Advanced hunting: one KQL surface to query XDR tables and Sentinel workspace tables together.
- Shared context: entity pages and investigation views span both products.
Because Defender creates incidents from XDR alerts itself, Microsoft security incident creation rules are not needed there, and the older Fusion engine is replaced by Defender correlation.
Take quiz
Azure Monitor action groups
The Defender XDR correlation engine
A Logic App polling both products
A watchlist
Query only Sentinel tables
Run SQL against SecurityIncident
Query XDR and Sentinel workspace tables together with KQL
Query only endpoint tables
34. What happens when you onboard Sentinel to the Defender portal?
Your workspace's incidents, alerts and hunting move into the unified Defender experience, and a few behaviors change because Defender XDR now owns incident creation and correlation.
- Sentinel and XDR alerts flow into one incident queue, with Defender incident IDs.
- Microsoft security incident creation rules are no longer needed, since XDR creates those incidents itself.
- The legacy Fusion engine is disabled and Defender correlation takes over multistage detection.
- Workbooks, content management and other Sentinel pages are reached from the Defender portal navigation.
- Azure RBAC on the workspace still applies to Sentinel data.
Your workspace data and analytics rules stay in place. After onboarding, re-test automation rules and playbooks, especially ones triggered on incident updates or filtering on incident source, and check queries that depend on SecurityIncident.
Take quiz
UEBA
Summary rules
Watchlists
Fusion
Re-test automation rules and playbooks against unified incident behavior
Delete and recreate the workspace
Remove all analytics rules
Disable every connector
35. How does UEBA build behavioral baselines?
UEBA reads activity from enabled sources, such as Entra ID sign-in and audit logs, Azure Activity and Windows security events, and learns what is usual for each entity: typical locations, devices, applications and activity volumes.
It also derives peer groups from identity context like group membership and manager. A user's behavior is then compared with both their own history and their peers, and unusual activity gets an investigation priority score from 0 to 10 in BehaviorAnalytics.
BehaviorAnalytics | where TimeGenerated > ago(7d) | where InvestigationPriority > 5 | project TimeGenerated, UserPrincipalName, ActivityType, InvestigationPriority | order by InvestigationPriority desc
The baseline needs time to mature, so expect better signal after a few weeks than on day one.
Take quiz
UserPeerAnalytics
BehaviorAnalytics
SecurityIncident
Heartbeat
Assigning RBAC roles to analysts
Sizing commitment tiers
Judging whether a user's behavior is unusual compared with similar users
Routing playbook runs
36. How do you write a KQL query to detect brute force sign-ins?
Filter failed sign-ins in a short window, group them by user, and alert when the count passes a threshold. In SigninLogs, ResultType is a string and 0 means success.
let threshold = 10; SigninLogs | where TimeGenerated > ago(1h) | where ResultType in ("50126", "50053") | summarize Failures = count(), DistinctIPs = dcount(IPAddress), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by UserPrincipalName | where Failures >= threshold
Here 50126 is a bad username or password and 50053 is a locked account. To spot a possible compromise, join the result back to successful sign-ins (ResultType == "0") from the same user. Map UserPrincipalName to the Account entity and IPAddress to IP in the rule.
Take quiz
"0"
"200"
"50126"
"1"
distinctcount(IPAddress)
dcount(IPAddress)
uniq(IPAddress)
countif(IPAddress)
37. What is the difference between summarize and extend in KQL?
extend adds computed columns and keeps every row. summarize groups rows and aggregates them, so the output has fewer rows and only the grouping and aggregate columns.
| extend | summarize |
| One output row per input row. | One output row per group. |
| Adds or overwrites columns. | Returns only the by columns and aggregates. |
Used for calculations such as bin() or string parsing. |
Used for count(), dcount(), min() and similar. |
SecurityEvent | where EventID == 4625 | extend Hour = bin(TimeGenerated, 1h) | summarize Failures = count() by Account, Hour
Here extend creates the hourly bucket, then summarize counts failures per account per hour.
Take quiz
summarize
distinct
extend
top
One row per input row
An error
An empty table
A single row holding the total count
38. How can you optimize KQL queries used in analytics rules?
Efficient queries run faster, cost less and are less likely to time out and fail. The main habits are:
- Filter early. Put
whereclauses on time and key columns right after the table name. - Reduce columns early with
projectbefore joins and aggregation. - Prefer
hasovercontainsfor whole-term matches, since it uses the term index. - Avoid wide searches such as
search *orunion *. - Put the smaller table on the left of a join, or use
lookupfor small reference data. - Reuse subqueries with
materialize()when the same result is needed twice. - Use ASIM parsers with filter parameters so filtering happens inside the parser.
Test in the logs query window and compare run time and data scanned before saving the rule.
Take quiz
has
contains
matches regex
extract()
The larger one
The smaller one
The one with more columns
Whichever name sorts first
39. What is the Advanced Security Information Model (ASIM)?
ASIM is Sentinel's normalization layer. It maps differently shaped logs, such as firewall, DNS or sign-in data from many vendors, onto common schemas with the same field names, so one query or rule works across all of them.
Schemas include Network Session, DNS, Authentication, Process Event, File Event, Registry Event and Web Session. Each has source-specific parsers and a unifying parser, such as _Im_NetworkSession for filtered use and _ASim_NetworkSession without parameters.
_Im_Dns(starttime=ago(1d), domain_has_any=dynamic(["bad.example"])) | project TimeGenerated, SrcIpAddr, DnsQuery
The payoff is detection content that does not need rewriting when you add or replace a vendor.
Take quiz
Cut ingestion volume automatically
Replace data connectors
Encrypt stored logs
Write one detection that works across many source products
_Im_NetworkSession
normalize_NetworkSession
NetworkSession_unified
asim.network()
40. What is the difference between watchlists and threat intelligence indicators?
Both are lookup data, but they serve different jobs. A watchlist is your own reference data. A threat intelligence indicator is an indicator of compromise (IP, domain, URL, file hash) with metadata about its source.
| Watchlist | Threat intelligence indicator |
| Any CSV you maintain: VIPs, allowed IPs, asset lists. | IOCs from feeds, platforms or manual entry. |
Read with _GetWatchlist(). |
Matched by TI analytics rules against your logs. |
| No built-in expiry or confidence. | Carries confidence, threat type and a valid-until date. |
Put approved admin jump-host IPs in a watchlist. Put a feed's list of known malicious IPs in threat intelligence.
Take quiz
Watchlists
Threat intelligence indicators
Workbooks
Hunting bookmarks
Threat intelligence indicators
A data collection rule
A watchlist
A playbook
41. How do you ingest threat intelligence into Microsoft Sentinel?
Several connectors and methods feed indicators into the workspace.
- Threat Intelligence - TAXII pulls indicators from TAXII 2.x servers, including ISAC and commercial feeds.
- Microsoft Defender Threat Intelligence brings in Microsoft's own indicators and enrichment.
- Upload Indicators API lets a threat intelligence platform push indicators in.
- Manual entry or file import adds one-off indicators from the TI page.
Indicators are stored in the legacy ThreatIntelligenceIndicator table, and newer connectors also write STIX-based tables such as ThreatIntelIndicators and ThreatIntelObjects. TI map analytics rules then match them against logs like CommonSecurityLog or DnsEvents and raise alerts.
Take quiz
Azure Activity
Syslog
Office 365
Threat Intelligence - TAXII
A TI map analytics rule
A UEBA anomaly rule
A watchlist template
A workbook query
42. How do you troubleshoot a Sentinel data connector that stopped ingesting?
Work from the source toward the workspace, ruling out one layer at a time.
- Connector page: check the last log received time and any status message.
- Health data: enable health monitoring and query it for failures.
- Source and agent: confirm the agent heartbeat, the DCR association, the forwarder's syslog daemon and network or firewall access.
- Credentials: expired API keys, secrets or revoked permissions break API connectors.
- Workspace: look for a reached daily cap, a transformation that drops everything, or ingestion delay.
SentinelHealth | where SentinelResourceType == "Data connector" | where Status != "Success" | order by TimeGenerated desc Heartbeat | summarize LastBeat = max(TimeGenerated) by Computer
Compare ingestion_time() with TimeGenerated to tell late data from missing data.
Take quiz
Usage
AuditLogs
Heartbeat
Watchlist
Table retention
Entity mapping
Incident grouping
The daily cap
43. How do you troubleshoot an analytics rule that does not fire?
First prove whether the rule ran, then whether its query should have matched.
- Confirm the rule is enabled and was not auto-disabled after repeated failures.
- Check health data for query errors, missing tables or timeouts.
- Run the query manually over the same time window and see if it returns rows.
- Compare lookback, frequency and ingestion delay. If events arrive late, a lookback equal to the frequency misses them.
- Review the alert threshold, event grouping and suppression settings.
- Check whether the source table was moved to a tier that cannot back rules, such as Basic.
A lookback a little longer than the run frequency tolerates delay, and the rule's alert deduplication avoids duplicate alerts for the overlap.
Take quiz
To tolerate ingestion delay so late events are still evaluated
To lower cost
To skip suppression
To disable entity mapping
Event grouping
Suppression
Query frequency
Severity
44. How do you reduce false positives in Sentinel analytics rules?
Tune the rule rather than switching it off. Start with the incidents closed as false or benign positive and find what they have in common.
- Exclude known good accounts, IPs or scanners through a watchlist instead of hardcoding values.
- Raise thresholds or narrow scope, such as only privileged roles.
- Add context by joining to asset or identity data.
- Auto-close known noise with a time-limited automation rule.
- Review SOC optimization and incident statistics for the noisiest rules.
SigninLogs | where ResultType == "50126" | where UserPrincipalName !in ((_GetWatchlist('ServiceAccounts') | project SearchKey))
Document each change so a later analyst knows why a detection looks the way it does.
Take quiz
Hardcode every IP in each rule
Disable the rule
Reference a watchlist in the query
Lower severity to informational
The Heartbeat table
Table retention settings
The list of workbook templates
Incident closing classifications grouped by rule
45. Explain the lifecycle of an incident in Microsoft Sentinel?
An incident moves from raw data to a classified, closed case in a predictable sequence.
flowchart TD A["Connectors ingest logs"] --> B["Analytics rule matches"] B --> C["Alert raised"] C --> D["Incident created and grouped"] D --> E["Automation rules tag and assign"] E --> F["Playbook enriches or responds"] F --> G["Analyst triages and investigates"] G --> H["Close with classification and comment"]
- A rule or Defender detection raises an alert.
- Incident settings turn it into a new incident or add it to an open one.
- Automation rules run in order: tag, set severity, assign, or run a playbook.
- The analyst moves it to Active, reviews entities and the investigation graph, and adds comments and tasks.
- On closure they choose a classification (true, benign or false positive, or undetermined) and a comment.
Those closure details feed later tuning, so they are worth filling in properly.
Take quiz
The workspace is deleted
Automation rules evaluate it and may tag, assign or run playbooks
Retention is reset
UEBA is turned off
A new data collection rule
A commitment tier
A classification and a comment
A KQL parser
46. Explain the execution flow of a scheduled analytics rule?
Each time a scheduled rule runs, it queries a time window and decides whether to raise alerts.
sequenceDiagram participant S as Scheduler participant W as Workspace participant R as Rule engine participant I as Incident logic S->>R: Run at frequency R->>W: Query over lookback period W-->>R: Result rows R->>R: Apply alert threshold R->>R: Map entities and enrich R->>I: Create alerts I->>I: Group into incidents I->>S: Trigger automation rules
- The scheduler starts the rule at its query frequency.
- The query runs over the lookback period.
- If the row count meets the threshold, alerts are generated; with event grouping, one alert covers all rows or one per row.
- Entity mapping, custom details and alert details are applied.
- Alerts are written and grouped into incidents, then automation rules fire.
If the threshold is not met, nothing is raised for that run. Ingestion delay can make events miss a run if the lookback is too short.
Take quiz
The incident grouping window
Table retention
The commitment tier
The query lookback period
No alert is generated for that run
An incident is created anyway
The rule is deleted
A playbook runs by default
47. When should you use multiple Sentinel workspaces?
Start with a single workspace. It gives the simplest queries, a single commitment tier and the lowest overhead. Add more only for a concrete reason:
- Data residency: regulation requires data to stay in specific regions.
- Ownership: separate tenants, subsidiaries or customers, as with an MSSP using Azure Lighthouse.
- Different retention or compliance regimes that cannot share workspace settings.
- Strict access separation that table-level RBAC cannot give you.
The costs are real: each workspace meets its commitment tier on its own, and cross-workspace queries are more complex. You can still query across workspaces with workspace("name").Table.
In the Defender portal you connect one primary workspace and any number of secondary workspaces per tenant, with incidents unified in one queue.
Take quiz
Each analyst needs a private workspace
A data residency requirement in another region
KQL only works on one table
To avoid using RBAC
cluster('name').Table
database('name').Table
workspace('name').Table
externaldata('name')
48. How do you implement CI/CD for Sentinel content using Repositories?
The Repositories feature connects a workspace to a GitHub or Azure DevOps repository and deploys content from it automatically, so detections are managed like code.
- Create a repository with folders for content types: analytics rules, automation rules, hunting queries, parsers, playbooks and workbooks.
- Store each item as an ARM template (JSON).
- Connect the repository and branch to the workspace; Sentinel sets up the deployment workflow.
- Work in a dev workspace on feature branches and open pull requests for review.
- Merging to the main branch deploys the changes to the target workspace.
This gives version history, peer review, and repeatable deployment across multiple workspaces. Bicep, Terraform and the REST API are common alternatives for teams already using them.
Take quiz
ARM templates in JSON
Excel workbooks
PowerPoint decks
Only CSV watchlists
Free ingestion
Version-controlled, reviewable and repeatable deployment of detections
Skipping RBAC
Automatic incident closure
49. How does SOC optimization help improve Sentinel coverage and cost?
SOC optimization analyzes the data you ingest and the detections you run, then recommends changes in two areas.
- Coverage: shows gaps against threat scenarios such as ransomware or business email compromise, based on your data and MITRE ATT&CK, and suggests rules or connectors to close them.
- Data value: flags tables you pay for but that no rule or hunting query uses, and suggests a cheaper tier or new detections.
Recommendations can be tracked and acted on from the portal. Combined with tiering and summary rules, it helps you spend ingestion budget on data that actually protects you.
Take quiz
Playbook speed and agent health
RBAC and tenant hygiene
Detection coverage and data value
Workbook layout and colors
Delete the workspace
Raise all incident severities
Disable UEBA
Move it to a cheaper tier or add detections for it
50. How do summary rules work in Microsoft Sentinel?
A summary rule is a scheduled KQL query that aggregates data and writes the result to a custom table (_CL) in your workspace. It condenses large, noisy data into compact records you can query and alert on cheaply.
CommonSecurityLog | where DeviceAction == "Deny" | summarize Denies = count() by SourceIP, DestinationPort
Rules run in time bins from 20 minutes up to a day. The source can be Analytics, Basic or Auxiliary data, and the output lands in an Analytics tier table, so scheduled rules and workbooks can use it.
Typical use: keep raw firewall logs in a cheap tier, summarize denies per source hourly, and detect on the summary. The trade-off is added delay and loss of per-event detail.