MSBA-312 · Lesson 7 of 12 · 19 min
Compliance and audit
▶ Video coming soon A video version of this lesson is on the way.
In early November 2026 Northmark Mutual, one of Quillfield's largest carrier partners, sent its brokers a questionnaire about their use of AI. It had twenty-two questions. Which AI systems touch submissions or client data sent to Northmark? Where is that data processed and stored? How are changes to those systems approved and recorded? Can the broker show, for a given submission, what an AI system contributed? Wendell Pike-Amari forwarded it to Bram with a note: "We should be able to answer every one of these from records we already keep. Can we?"
Mostly, they could. Where they could not, the gaps pointed straight at the topics of this lesson: data residency and movement, audit trails for changes to models, agents and data, records of what AI systems did, and the regulatory and contractual expectations that make those records necessary. These correspond to the AB-100 skills "validate data residency and movement compliance" and "design audit trails for changes to models and data", together with the governance and risk management parts of the domain.
Why compliance is a design concern
Compliance for AI solutions is often treated as a review at the end: someone checks the finished design against a policy. That fails for two reasons. Many compliance properties, such as where a model processes data or whether changes are attributable, are decided by early architecture choices that are expensive to reverse. And many compliance questions are about evidence over time, which only exists if the solution was designed to produce it. An architect who designs the audit trail at the start can answer Northmark's questionnaire in an afternoon; one who does not may never be able to.
Data residency and data movement
Data residency is about where data is stored and processed. Data movement is about where it travels during processing, including temporarily. AI solutions complicate both, because a request may pass through several services, and a model may run in a different region from the data it reads.
For Microsoft 365 and Copilot, data at rest follows the tenant's data location commitments, and Microsoft has made specific commitments about where Copilot processing happens, such as the EU Data Boundary and announced plans for in-country processing of Copilot interactions in several countries. Because those commitments change, the architect's job is to check the current product terms and documentation for the tenant's region rather than rely on memory.
For Copilot Studio and other Power Platform features, some generative AI capabilities are not available in every region. Power Platform administrators can allow data movement across geographies for generative AI features in an environment, which lets an environment in one geography use Azure OpenAI capacity in another. That setting is a compliance decision, not a convenience toggle: it should be recorded, approved and revisited. Quillfield's Canadian-region environments had the setting enabled in 2025 to use early features; in November 2026 Bram and Rasmus checked whether the features Quillfield uses were now available in-region before deciding whether to keep it.
For Foundry, the deployment type of each model deployment determines where inference happens. Global deployment types route requests to capacity anywhere in Microsoft's global infrastructure, with data at rest staying in the resource's geography; Data Zone types keep processing within a defined data zone, such as the United States or the European Union; and regional (standard) deployment types process in the resource's own region. Not every model is available in every region or deployment type, so residency requirements can limit model choice. Ngozika's production submission review agent uses a regional deployment in a US region, which constrains which newer models she can adopt until they reach that region.
| Layer | Question to answer | Where to find the answer |
|---|---|---|
| Microsoft 365 data and Copilot | Where are prompts, responses and grounding data stored and processed? | Product terms, data location documentation, tenant settings |
| Power Platform environment | Is data movement across geographies enabled for generative AI? | Environment settings in the Power Platform admin center |
| Foundry model deployment | Global, data zone or regional processing? | Deployment details in the Foundry project |
| External tools and MCP servers | Where does the tool provider process requests? | Contract and provider documentation |
| Logs and telemetry | Where do Application Insights and audit logs store data? | Workspace and resource region settings |
External services and contracts
Data that leaves Microsoft's services is governed by different terms. When the Policy Service Assistant sends a class of business and province or state to Northmark's MCP server, Northmark's terms apply. When a Copilot Studio agent uses a connector to a third-party service, that service's terms apply. The compliance review therefore includes a data flow inventory: every place data goes, under whose terms, with what data classification. The threat model's data flow diagram from Lesson 6 is the starting point; the compliance view adds the legal and contractual layer.
Audit trails for changes to models and data
The AB-100 study guide asks architects to design audit trails for changes to models and data. An audit trail answers four questions about any change: what changed, who changed it, when, and on whose authority. For AI solutions, the changes that matter include agent definitions (instructions, tools, knowledge sources), model versions and deployment settings, training and evaluation data, knowledge content, permissions and identities, and configuration such as data policies and environment settings.
Lesson 2's ALM practices produce most of this trail if they are followed. Git history records definition changes with authors. Pipeline history records which solution version was deployed where, by which identity, after which approval. Foundry records agent versions and model deployment changes, and the Azure Activity Log records control-plane operations on Azure resources. Power Platform administrative activities and many Copilot Studio and agent events can be searched in the Microsoft Purview audit log, and Dataverse auditing records changes to data and records. The release record links them into a story a reviewer can follow.
The gaps are usually at the edges. Knowledge content often has no change trail beyond SharePoint version history, and nobody connects a change in a procedure page to a change in agent answers. Manual production changes, such as an administrator fixing a setting at night, bypass the ALM trail. And model updates made by the platform, such as an automatic version upgrade, can change behavior with no change on the customer's side. Quillfield closed these gaps with three rules: knowledge libraries for production agents require approval for page changes and keep major versions; manual production changes are allowed only under an incident, logged in the incident record and followed by a catch-up release; and model deployments use upgrade policies that require a planned change (Lesson 8).
Records of what AI systems did
Change audit tells you how the system was configured. Activity records tell you what it did. For Copilot and agents, Microsoft Purview captures interaction audit records, and retention policies can be applied to Copilot and AI app interactions so that prompts and responses are kept or deleted according to policy. Copilot Studio keeps conversation transcripts in Dataverse, subject to retention settings, and analytics retain aggregate data for longer periods. Foundry traces and continuous evaluation results go to Application Insights, where retention is set on the workspace. Agent flows keep run histories.
Two design questions follow. What must be kept, for how long? Insurance records retention rules, the organization's own policies and contractual commitments to carriers all apply. Quillfield keeps service notes written by agents with the policy record in BrokerDesk for as long as the policy record itself, because they are part of the client file, while transcripts are kept for a shorter period aligned with the retention schedule for call recordings. What must be linkable? Northmark's question about what AI contributed to a submission could only be answered if the submission record carried a reference to the agent version and the trace. Bram added that reference to the Commercial Submission Desk design before build.
Worked problem
Answering the carrier questionnaire
Northmark asks: "For a submission sent to us on November 12, 2026, can you show which AI systems contributed, what they did and who approved the result?" What records does Quillfield need?
Show solution
- Start from the submission record in BrokerDesk, which carries the account executive's name and the time sent.
- Follow the reference to the submission review agent's trace in Application Insights, which shows the agent version, the model deployment and the tool calls.
- Use the agent version to find the release record, with the evaluation results and the approver for that version.
- Use Purview audit and Copilot Studio transcripts to show any Policy Service Assistant interaction the account executive had about the submission.
- Confirm the account executive's review step in the workflow history before the submission was sent.
Answer: With linked references from the business record to traces, versions and release records, Quillfield can show the AI contribution, its configuration at the time and the human approval; without the link, the trail breaks at the first step.
Regulatory context
Regulation of AI is changing quickly and varies by country, so Quillfield's compliance approach anchors on principles that are stable and on the specific obligations that clearly apply. Privacy law applies to every solution that handles personal information: in the United States, a mix of state privacy laws, insurance privacy rules and sector regulations. Insurance regulators expect fair treatment of customers whatever technology is used: the National Association of Insurance Commissioners adopted a model bulletin on insurers' use of AI systems in December 2023, which many states have since adopted, and carriers increasingly expect their producers to show similar controls.
Voluntary frameworks help organize the work. ISO/IEC 42001, the international standard for AI management systems, describes how an organization establishes policies, roles, risk assessment, controls and continual improvement for AI. Quillfield is not seeking certification, but Bram mapped its operating model to the standard's main clauses so that the AI council could see where it was thin. The NIST AI Risk Management Framework offers a similar structure. Neither replaces law; both help show that governance is systematic rather than improvised.
Compliance as a recurring process
Compliance is not a one-time sign-off. Quillfield's operating model sets a quarterly compliance check for each production agent: confirm the data flow inventory is current, confirm residency settings and deployment types have not changed, sample ten changes from the release records and trace each through its audit trail, and confirm retention is working by checking that items past their retention date are gone. Findings go to the AI council with the quarterly agent report. The first check, in November 2026, found one gap: Application Insights data for the HR Leave Assistant was retained longer than the schedule allowed. Rasmus corrected the workspace retention setting the same day.
How the questionnaire turned out
Bram and Wendell answered Northmark's twenty-two questions in two working days. Seventeen could be answered directly from existing records: the inventory of agents, the data flow inventories, the environment and deployment settings, the release records and the retention schedule. Three needed small investigations, such as confirming the region of the Application Insights workspace used by the Policy Service Assistant and checking the terms of a connector used by the HR Leave Assistant. Two could not be answered as asked, because the link from a submission to the AI contribution did not yet exist for submissions handled before the Commercial Submission Desk design. For those, Quillfield described the controls that did exist (account executive review, transcripts and traces kept under the schedule) and the planned change.
The exercise had a second benefit. Celestine asked that the answers be kept as a standing compliance pack: a short document for each production agent that answers the questions carriers, auditors and regulators most often ask, updated at each quarterly compliance check. The next questionnaire, she reasoned, would take hours instead of days, and gaps would surface in Quillfield's own reviews before a carrier found them.
Common mistakes
MistakeTreating the data movement across geographies setting as a convenience toggle.
InsteadRecord it as a compliance decision, approve it and revisit it as regional availability changes.
MistakeChoosing a global model deployment without checking residency requirements.
InsteadMatch the deployment type to the solution's residency obligations and record the choice.
MistakeRelying on Git and pipelines alone for audit.
InsteadCover knowledge content, manual production changes and platform model updates too.
MistakeKeeping transcripts and traces indefinitely just in case.
InsteadApply retention that matches the records schedule and verify that deletion happens.
MistakeStoring AI activity with no link to the business record.
InsteadPut agent version and trace references on the business records AI contributes to.
Summary and key terms
- Compliance properties such as residency and attributability are set by early design choices and must produce evidence over time.
- Residency depends on Microsoft 365 commitments, Power Platform data movement settings, Foundry deployment types and external providers' terms.
- Audit trails record what changed, who changed it, when and on whose authority, across Git, pipelines, Foundry, Azure, Purview and Dataverse.
- Common gaps are knowledge content changes, manual production fixes and platform model updates.
- Activity records need retention aligned to the records schedule and links from business records to AI traces and versions.
- Privacy law, insurance regulation and frameworks such as ISO/IEC 42001 shape the approach, and compliance checks recur quarterly.
- Data residency
- Where data is stored and processed, usually expressed as a geography or region.
- Data movement
- Where data travels during processing, including temporary transfers to other regions.
- Deployment type
- The Foundry setting that determines whether model inference is global, within a data zone or regional.
- Audit trail
- The record of what changed, who changed it, when and on whose authority.
- Data flow inventory
- A list of every place a solution sends data, under whose terms and at what classification.
- ISO/IEC 42001
- The international standard for establishing and improving an AI management system.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which Foundry choice decides where model inference happens?
Show answer
The model deployment type: global, data zone or regional.
Name three common gaps in AI audit trails.
Show answer
Knowledge content changes, manual production changes and automatic model updates.
What link made it possible to answer Northmark's question about a specific submission?
Show answer
A reference on the business record to the agent version and trace that contributed to it.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.