Cover of Audit, Alerts, and Investigation with Microsoft Purview
Microsoft Purview Field Guides

Audit, Alerts, and Investigation with Microsoft Purview

Unified Audit Log, Content Search, and Activity Explorer for Microsoft 365 Administrators

This is the companion page for Audit, Alerts, and Investigation with Microsoft Purview. If the book is in your hands, start with the placement quiz: it tells you which chapters to read first. The chapter map, the hardest SC-401 questions answered in full, and the topics sitting just outside the book are all on this page.

Get the book on Amazon See where you are

What this guide covers

Every other Purview pillar generates signal. This book is about reading it. Audit logs, DLP alerts, insider-risk cases, content searches, and, newest of all, what your users feed into AI. The tooling is scattered across the Microsoft Purview portal and Microsoft Defender XDR, the licensing is a maze of Standard versus Premium, and the retention windows quietly decide whether you can still answer "what happened" six months later.

Most teams find the gaps at the worst possible time, mid-investigation, when the event they need aged out of the audit log or nobody held the role to see the matched content. Investigation is a capability you build before you need it, not during. The same DLP event can appear as a raw audit record, an Activity Explorer entry, a Purview dashboard alert, and a correlated Defender incident, each with its own retention clock, and knowing which one you are looking at is the difference between reporting "it's gone" and finding it waiting in the other console.

This is the connected account Microsoft never publishes in one place. Every limit, license boundary, and portal path is grounded against current Microsoft Learn and validated in a live Microsoft 365 E5 lab. You do not need a production tenant to follow along; the lab appendix stands up a trial from scratch and generates the test activity that the later chapters investigate.

Chapter map

  1. What This Book Covers: Audit, Alerts, and the Investigation Surface
  2. Licensing and Prerequisites
  3. Microsoft Purview Audit: Standard vs. Premium, Retention, and Search
  4. Activity Explorer and Content Explorer
  5. Responding to DLP Alerts
  6. Investigating Insider Risk Activities
  7. Content Search and the Investigation Workflow
  8. DSPM for AI: Protecting Data Used by AI Services
  9. Putting It Together: A Cross-Solution Investigation
  10. Operational Reality: Audit Gaps, Timing, and Troubleshooting

Appendices: PowerShell and Graph for Audit and Search; Microsoft Learn Bibliography; Investigation Readiness Checklist.

Who it is for

This is for security analysts and incident responders who inherit the "figure out what happened" tickets, security and compliance engineers who own audit configuration and AI data-security posture and need to know what to switch on before an incident rather than during one, and consultants standing up investigation readiness in a new tenant, all of whom will find the scattered signal sources connected in one place; it also covers, in practice, the "manage information security alerts and activities" and "protect data used by AI services" depth expected by SC-401, Administering Information Security in Microsoft 365.

See where you are

7 questions from this guide's territory (3 easy, 4 medium), with the explanation after each. Nothing is stored and nothing is sent anywhere.

The rest of Microsoft Purview Field Guides

One product per book, a lab appendix in every one, and a companion page like this one for each.

  • Cover of Communication Compliance with Microsoft Purview
    Field guide

    Communication Compliance with Microsoft Purview

    One Microsoft Purview tool reads your employees' messages, inspecting Teams, Exchange, Viva Engage, Copilot prompts, and connected third-party sources for harassment, threats, and regulatory violations.

  • Cover of Data Loss Prevention with Microsoft Purview
    Field guide

    Data Loss Prevention with Microsoft Purview

    Turn on Microsoft Purview DLP the way the wizard suggests and you get one of two outcomes: a wall of false positives nobody reads, or a policy so timid it protects nothing.

  • Cover of eDiscovery and Legal Holds with Microsoft Purview
    Field guide

    eDiscovery and Legal Holds with Microsoft Purview

    When legal hands you a hold notice, the clock is real and the stakes include sanctions. Holds preserve and searches collect, so a matter you searched but never held can quietly lose data before anyone notices.

  • Cover of Insider Risk Management with Microsoft Purview
    Field guide

    Insider Risk Management with Microsoft Purview

    There is no button that blocks the leak.

  • Cover of Data Retention and Records Management with Microsoft Purview
    Field guide

    Data Retention and Records Management with Microsoft Purview

    Nothing visibly breaks when retention is wrong.

  • Cover of Sensitivity Labels and Data Classification with Microsoft Purview
    Field guide

    Sensitivity Labels and Data Classification with Microsoft Purview

    Classify your data once and the protection travels everywhere. That is the pitch.

The hard set (6 questions)

The hardest SC-401 questions this guide publishes, none of them repeated from the placement quiz above: the answer first, why every other option is wrong, and the Microsoft Learn page behind it. The practice book for this exam holds the full bank.

During an investigation of a potentially compromised service account, a security analyst discovers that Get-MailboxAuditBypassAssociation returns True for the account in question. What are the full implications of a MailboxAuditBypassAssociation set to True for a service account?

Correct answer: D. The service account's own mailbox actions, its delegate actions on OTHER users' mailboxes (including shared mailboxes), and admin actions performed by that account are all unlogged, regardless of where they occur.

Microsoft Learn confirms: 'When you configure a user or computer account to bypass mailbox audit logging, access or actions taken by the user or computer account to any mailbox isn't logged.' The specific listing: (1) Mailbox owner actions that the bypassed users perform aren't logged; (2) Delegate actions that the bypassed users perform on other users' mailboxes (including shared mailboxes) aren't logged; (3) Admin actions that the bypassed users perform aren't logged. This is a complete audit blackout for that account. Organizations should audit the bypass list at regular intervals.

Why the other options are wrong:

  • A. The bypass is not mailbox-location-specific. Archive mailboxes, shared mailboxes, and primary mailboxes are all affected when the account has a bypass association.
  • B. The bypass applies to all mailbox actions, not just the account's own mailbox actions. Delegate actions on OTHER mailboxes are also unlogged for a bypassed account.
  • C. The bypass is not operation-specific: read, send, delete, move, and delegate actions all go unlogged. There is no partial bypass by operation type.

Memory hook: MailboxAuditBypassAssociation = True means a COMPLETE audit blackout for that account: own mailbox, delegate access to ALL other mailboxes, admin actions. Nothing logs, anywhere. Check this list regularly.

Microsoft Learn: Audit mailboxes

DSPM for AI activates a one-click collection policy named 'DSPM for AI - Detect sensitive info shared with AI via network.' Compliance reviewers complain that activity explorer shows the detection but never the actual prompt and response text. What is the correct reason and fix?

Correct answer: D. This collection policy is created without the capture-content option selected; edit the policy and enable content capture to include prompts and responses

For collection policies, no prompt or response is displayed if the content-capture option is not selected. The one-click policy 'DSPM for AI - Detect sensitive info shared with AI via network' does not select that option when it is automatically created, but you can manually edit the policy afterward and enable content capture. That is the documented fix for seeing prompt and response text from this policy.

Why the other options are wrong:

  • A. While reading prompt/response content does require a content-viewing role, the symptom here is that the text is never captured by this policy at all. Granting a role does not display text that the policy did not capture; the capture-content option must be enabled.
  • B. Auditing controls Microsoft 365 Copilot interaction capture. For this network collection policy, the missing text is due to the unselected content-capture option, not disabled auditing.
  • C. Collection policies can capture prompts and responses when the content-capture option is selected; they are not inherently incapable of it.

Memory hook: Network one-click collection policy ships with content capture OFF. See detections but no text? Edit the policy and turn content capture on.

Microsoft Learn: DSPM for ai considerations

A compliance lead wants to prioritize the improvement actions that raise the compliance score the most per action. In Compliance Manager's scoring model, which single action type is assigned the highest point value?

Correct answer: B. Preventative and mandatory (27 points).

Compliance Manager scores each improvement action on two axes: mandatory vs discretionary, and preventative/detective/corrective. Preventative + mandatory carries the highest value at 27 points. The full model is: Preventative mandatory 27, Preventative discretionary 9, Detective mandatory 3, Detective discretionary 1, Corrective mandatory 3, Corrective discretionary 1. So preventative/mandatory actions move the score most.

Why the other options are wrong:

  • A. Wrong: Preventative discretionary is worth 9 points, not 15.
  • C. Wrong: Detective mandatory is worth 3 points, not 18, and isn't the highest.
  • D. Wrong: Corrective mandatory is worth 3 points, not 9.

Memory hook: Preventative + mandatory = 27, the max. Preventative-discretionary 9; detective/corrective mandatory 3; discretionary 1.

Microsoft Learn: Compliance manager scoring

A security engineer is automating large-scale audit log extraction and writes a script using Search-UnifiedAuditLog with a single SessionId. After retrieving 43,000 records in the first few pages, the engineer switches the -SessionCommand from ReturnLargeSet to ReturnNextPreviewPage on subsequent calls to get sorted results. The final result set has exactly 10,000 records. What happened?

Correct answer: D. Mixing ReturnLargeSet and ReturnNextPreviewPage against the same SessionId caps output at 10,000 records. The engineer should pick one command per session and stay with it: ReturnLargeSet for volume (up to 50,000, unsorted), ReturnNextPreviewPage for preview (up to 5,000, sorted).

Microsoft Learn explicitly documents this: 'Always use the same SessionCommand value for a given SessionId value. Don't switch between ReturnLargeSet and ReturnNextPreviewPage for the same session ID. Otherwise, the output is limited to 10,000 results.' ReturnLargeSet handles up to 50,000 records but returns unsorted results; ReturnNextPreviewPage handles up to 5,000 records with sorted results. To get sorted results from a large dataset, collect with ReturnLargeSet and sort the assembled collection afterward in PowerShell.

Why the other options are wrong:

  • A. ReturnNextPreviewPage has a 5,000-record maximum (not 10,000) per session. The 10,000 cap the engineer hit is specifically caused by mixing the two session commands.
  • B. There is no 10,000-record daily throttle for Search-UnifiedAuditLog in the tenant. The 10,000 outcome is the documented consequence of mixing SessionCommand values in a single session.
  • C. The 10,000 cap is not RecordType-specific. It occurs when any session mixes ReturnLargeSet and ReturnNextPreviewPage, regardless of which record types are being searched.

Memory hook: NEVER mix ReturnLargeSet and ReturnNextPreviewPage in the same SessionId. Mixing = 10,000 record cap. Pick one: ReturnLargeSet (volume, unsorted, 50k max) OR ReturnNextPreviewPage (preview, sorted, 5k max).

Microsoft Learn: Search unifiedauditlog

Contoso has Microsoft 365 E5 for all users (Audit Premium). An investigator assumes every audit record is retained one year by default and needs Microsoft Teams administrative activity from 8 months ago. Will it be there by default, and why?

Correct answer: B. No: the Premium default 1-year retention covers only Microsoft Entra ID, Exchange, SharePoint, and OneDrive; other workloads such as Teams are retained 180 days by default unless a custom audit log retention policy extends them.

Audit (Premium)'s default audit log retention policy retains records for one year only for the four workloads whose Workload property is AzureActiveDirectory, Exchange, OneDrive, or SharePoint (for appropriately licensed users). Audit records for all other activities/workloads (for example, Teams) are retained 180 days by default. To keep them longer (up to one year, or 10 years with the add-on) you must create a custom audit log retention policy. So 8-month-old Teams records would already be gone by default.

Why the other options are wrong:

  • A. Wrong: 10-year retention requires an add-on license and a custom retention policy; it isn't automatic.
  • C. Wrong: Teams activity is captured in the unified audit log; the limitation is retention duration, not capture.
  • D. Wrong: The 1-year default does not cover all workloads, only Entra ID, Exchange, SharePoint, and OneDrive.

Memory hook: Premium's 1-year default = Entra + Exchange + SharePoint + OneDrive only. Everything else (Teams, etc.) = 180 days unless you write a custom policy.

Microsoft Learn: Audit log retention policies

An organization's audit log retention policy configuration has the following custom policies in place: Policy A (priority 5): retain Exchange records for 7 years; Policy B (priority 3): retain Exchange records for 30 days. The Premium default policy retains Exchange/SharePoint/OneDrive/Entra records for 1 year. An Exchange audit record is generated today for an E5 user. Which policy applies and why?

Correct answer: A. Policy B (30 days) applies because it has the lower priority number (3) which means highest priority, and any custom policy outranks the built-in default.

Audit retention policy priority rules: (1) lower priority NUMBER = higher priority (wins); (2) any custom policy always outranks the Premium built-in default policy. Policy B has priority 3, Policy A has priority 5, so Policy B wins. Microsoft Learn confirms: 'All custom audit log retention policies (created by your organization) take priority over the default retention policy.' Therefore Policy B (30 days) applies to this Exchange record for the E5 user. The result is 30-day retention despite the Premium default and the 7-year custom policy also matching.

Why the other options are wrong:

  • B. This is the opposite of how it works. Custom policies ALWAYS outrank the Premium built-in default. Built-in defaults are the lowest priority, never the highest.
  • C. Recency of creation has no bearing on audit retention policy priority. The priority NUMBER is the only determinant, with lower numbers winning.
  • D. The 'retention wins over deletion' principle applies to MRM retention labels and retention policies on content, not to audit log retention policy priority. Audit retention policy priority is a pure priority-number contest.

Memory hook: Audit retention priority: lower number = WINS. Custom ALWAYS beats built-in default. Priority 3 beats priority 5 beats the default. Short custom policy can silently cut retention you thought you had.

Microsoft Learn: Audit log retention policies

Exam prep? The SC-401 sampler scores you by topic and points you to the guide behind each miss.

Take the SC-401 sampler Every SC-401 practice question, with explanations