Microsoft Cloud and AI Security Engineer (SC-500) Exam-style mock test
Microsoft Cloud and AI Security Engineer (SC-500) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Securing AI & Cloud Workloads
A B2B SaaS company embeds an Azure OpenAI-powered assistant into its customer portal. Security finds that users craft inputs that trick the model into revealing hidden system instructions. Which Azure AI Content Safety capability should the team enable to detect and block these manipulation attempts?
✓Enable prompt shields to detect direct jailbreak and indirect injection attacks against the model
Correct. Prompt shields are designed specifically to detect direct jailbreak attempts and indirect prompt injection that aim to override system instructions.
・Configure protected material detection to flag any copyrighted text returned in model responses
Incorrect. Protected material detection surfaces copyrighted content in responses but does not address prompt manipulation or instruction leakage.
・Apply groundedness detection so ungrounded or fabricated portions of responses are flagged
Incorrect. Groundedness detection identifies unsupported claims against source data rather than blocking jailbreak or injection inputs.
・Set custom category classifiers that scan output text for company-defined sensitive terms
Incorrect. Custom category classifiers scan for defined terms but are not purpose-built to catch jailbreak or injection techniques.
Explanation
Prompt shields are the Azure AI Content Safety feature purpose-built to detect jailbreak and prompt injection attacks that attempt to subvert system instructions.
Example2 · Microsoft Defender for Cloud & AI
A B2B SaaS company runs its customer-facing API on Azure virtual machines and Azure SQL databases across three production subscriptions. The security team wants agent-based threat detection and vulnerability assessment for these resources without enabling protection on unrelated development subscriptions. What should the security engineer do?
✓Turn on the Defender for Servers and Defender for Databases plans individually on each of the three production subscriptions in Defender for Cloud
Correct. Defender for Cloud plans are enabled per plan and per scope, so turning on Defender for Servers and Defender for Databases only on the three production subscriptions delivers the required coverage while leaving development subscriptions untouched.
・Enable Microsoft Defender for Cloud at the management group that contains every subscription so the whole tenant is uniformly protected
Incorrect. Enabling at the management group would apply protection to all subscriptions beneath it, including the development subscriptions the team explicitly wants to exclude.
・Deploy the Log Analytics agent manually to the production VMs and rely on Azure Monitor alerts instead
Incorrect. Manually deploying the Log Analytics agent with Azure Monitor does not provide Defender for Cloud threat detection or vulnerability assessment capabilities.
・Apply an Azure Policy initiative that enforces Microsoft Defender plan enablement tenant-wide across subscriptions
Incorrect. A tenant-wide policy initiative would enforce enablement everywhere, contradicting the requirement to exclude development subscriptions.
Explanation
Defender for Cloud plans are granular: you choose which plan to enable on which scope (subscription). Enabling Servers and Databases only on the three production subscriptions meets the need precisely.
Example3 · Data Security & Purview for AI
A B2B SaaS company has rolled out Microsoft 365 Copilot to its sales teams and the security lead wants a single place to discover which sensitive data Copilot is interacting with and surface recommended policies. Which Microsoft Purview capability should the security lead open first to get this consolidated AI data-risk view?
✓The Data Security Posture Management for AI area, which aggregates AI interactions and recommends protection policies
Correct. DSPM for AI is the purpose-built hub that surfaces AI interactions with sensitive data and offers one-click recommended policies for Copilot and other AI apps.
・The Microsoft Defender for Cloud Apps dashboard filtered to generative AI application categories and risk scores
Incorrect. Defender for Cloud Apps discovers and governs cloud and AI app usage, but it is not the Purview hub designed to consolidate AI data-risk and recommend data protection policies.
・The Insider Risk Management analytics report scoped to users who frequently access confidential documents
Incorrect. Insider Risk Management detects risky user activity but does not provide the consolidated AI sensitive-data interaction view the lead needs.
・The Communication Compliance policy workspace reviewing flagged Copilot prompts for offensive language
Incorrect. Communication Compliance screens messages and prompts for policy violations such as offensive content, not an overall AI data posture view.
Explanation
DSPM for AI centralizes discovery of sensitive data used in AI interactions and recommends policies, making it the correct starting point for an AI data-risk overview.
Example4 · Identity & Access for AI Applications
A healthcare services firm runs a clinical-notes summarization app on an Azure App Service that calls an Azure OpenAI resource. The security team mandates that no API keys or secrets be stored anywhere in the app configuration. Which approach should the engineer implement to authenticate the app to Azure OpenAI?
・Store the Azure OpenAI key in Azure Key Vault and have the app read it at startup using a connection string
Incorrect. This still relies on a stored key; even retrieved from Key Vault, a secret exists and must be managed, which violates the no-secrets mandate.
✓Enable a system-assigned managed identity on the App Service and grant it the Cognitive Services User role
Correct. A system-assigned managed identity lets the App Service obtain Entra ID tokens for Azure OpenAI with no stored credentials, and the Cognitive Services User role grants data-plane access.
・Create a service principal with a client secret and embed the credentials in the app settings environment variables
Incorrect. A service principal with an embedded client secret stores a credential in app settings, which is exactly what the mandate prohibits.
・Generate a shared access signature token scoped to the Azure OpenAI endpoint and rotate it weekly through automation
Incorrect. Azure OpenAI does not use shared access signature tokens for data-plane calls, and this approach still manages a rotating secret.
Explanation
Managed identities eliminate stored secrets by issuing short-lived Entra ID tokens, satisfying a no-secrets requirement while RBAC roles like Cognitive Services User control data-plane access.
Example5 · Threat Detection, Governance & Compliance
A healthcare services firm runs Microsoft Defender XDR across its clinical workstations and email. A security analyst wants a single investigation view that automatically correlates related alerts from endpoint, identity, and email into one consolidated case. Which Defender XDR capability should the analyst rely on to get this correlated view?
・Enable advanced hunting and schedule a recurring KQL query that joins alert tables across endpoint, identity, and email signals
Incorrect. Advanced hunting can join tables for proactive queries, but it does not automatically produce the correlated, consolidated case view that the analyst needs.
✓Review incidents, which group related alerts and entities from multiple Defender workloads into a single case
Correct. Incidents in Defender XDR automatically correlate related alerts and affected entities from multiple workloads into one case for unified investigation.
・Create a custom detection rule for each workload so alerts are tagged consistently across the whole environment
Incorrect. Custom detection rules generate alerts from queries, but they do not themselves correlate alerts from different workloads into a single case.
・Open each alert queue separately and manually link the related alerts by assigning them the same tag
Incorrect. Manually linking alerts by tag is error-prone and defeats the purpose of automatic correlation that incidents already provide.
Explanation
Defender XDR incidents automatically aggregate and correlate alerts and entities across endpoint, identity, email, and cloud app signals into a single investigable case.
Example6 · Securing AI & Cloud Workloads
A healthcare services firm runs an Azure OpenAI deployment that summarizes clinical notes. Security requires that no inference traffic traverse the public internet and that access is limited to the firm's internal network. Which configuration should the security engineer apply to the Azure OpenAI resource?
✓Enable a private endpoint for the resource and disable public network access
Correct. A private endpoint maps the resource into the firm's virtual network, and disabling public network access forces all inference traffic over the private link rather than the internet.
・Add the corporate egress IP range to the resource's network allow list rules
Incorrect. An IP allow list still exposes the service over the public endpoint, so inference traffic continues to traverse the public internet, which the requirement forbids.
・Rotate the resource API keys daily and store them in Azure Key Vault
Incorrect. Daily key rotation strengthens credential hygiene but does nothing to keep inference traffic off the public internet or confine it to the internal network.
・Assign the Cognitive Services User role to the application's managed identity
Incorrect. Assigning a role governs who is authorized to call the service but does not change the network path that the inference traffic follows.
Explanation
Keeping traffic off the public internet and confined to the internal network is a network isolation requirement, which private endpoints combined with disabled public access satisfy; identity and key controls address different concerns.
Example7 · Securing AI & Cloud Workloads
NorthPeak Outfitters runs a customer-facing shopping assistant on Azure OpenAI. Security wants automatic alerts when prompts attempt to jailbreak the model or exfiltrate data from grounding documents. Which approach meets this requirement with the least custom development?
✓Enable the AI threat protection plan in Microsoft Defender for Cloud so runtime prompt and response alerts are generated for the Azure OpenAI resource
Correct. Defender for Cloud's AI threat protection plan analyzes prompts and responses at runtime and raises alerts for jailbreak and data exfiltration attempts with no custom code.
・Build a custom Azure Functions proxy that inspects every prompt against a regular-expression blocklist before forwarding traffic to the Azure OpenAI endpoint for scoring
Incorrect. A hand-built regex proxy is high-effort, brittle against novel jailbreaks, and duplicates capabilities already provided by Defender for Cloud.
・Export Azure OpenAI diagnostic logs to a Log Analytics workspace and schedule a weekly manual review of prompt text by the security operations team
Incorrect. Weekly manual log review is reactive and slow, so it does not deliver the automatic alerting the scenario requires.
・Apply an Azure Policy initiative that denies deployment of any Azure OpenAI resource lacking a private endpoint configuration
Incorrect. Enforcing private endpoints hardens network exposure but does not detect or alert on jailbreak or exfiltration attempts in prompts.
Explanation
Microsoft Defender for Cloud's AI threat protection plan provides turnkey runtime detection of prompt-injection, jailbreak, and exfiltration attempts against Azure OpenAI resources.
Example8 · Securing AI & Cloud Workloads
NorthPeak Outfitters' support chatbot was manipulated when a user pasted text instructing it to ignore prior rules and reveal internal pricing logic. The security engineer must block these indirect and direct injection attempts before they reach the model. Which capability should be configured?
✓Configure the Prompt Shields feature of Azure AI Content Safety to detect and block jailbreak and indirect prompt-injection attacks in user input and documents
Correct. Prompt Shields in Azure AI Content Safety is purpose-built to detect direct jailbreaks and indirect (document-embedded) prompt-injection attacks before they influence the model.
・Increase the Azure OpenAI deployment's token-per-minute quota so that malicious long prompts are throttled before they can overwhelm the model endpoint
Incorrect. Adjusting token quota controls throughput and cost, not the semantic detection of injection instructions in prompts.
・Rotate the Azure OpenAI API keys on a scheduled cadence and store the active key in Azure Key Vault with access restricted to the application identity
Incorrect. Rotating API keys protects credentials but does nothing to identify or stop prompt-injection content.
・Enable customer-managed keys for the Azure OpenAI resource so that prompt and completion data is encrypted at rest with a key the organization controls
Incorrect. Customer-managed keys govern encryption at rest and do not analyze or block malicious prompt instructions.
Explanation
Prompt Shields is the Azure AI Content Safety feature designed specifically to catch jailbreak and indirect prompt-injection attacks in both user input and grounding documents.
Example9 · Securing AI & Cloud Workloads
A NorthPeak Outfitters web app calls Azure OpenAI, and the developers currently embed the resource's API key in the application configuration file. Security requires removing standing credentials while following least privilege. What should the engineer implement?
✓Assign a system-assigned managed identity to the app and grant it the Cognitive Services OpenAI User role on the Azure OpenAI resource
Correct. A managed identity eliminates standing secrets, and the Cognitive Services OpenAI User role grants only the data-plane access the app needs.
・Move the API key into an Azure Key Vault secret and have the application read the secret at startup using a hardcoded Key Vault connection string
Incorrect. Key Vault secures the key but the app still relies on a long-lived credential and a hardcoded connection string, so standing credentials remain.
・Create a shared service account in Microsoft Entra ID, store its password in the app settings, and reuse it across all AI-calling applications in the subscription
Incorrect. A shared account with a stored password reintroduces standing credentials and violates least privilege through reuse across apps.
・Generate a long-lived shared access signature token for the Azure OpenAI endpoint and distribute it to each developer workstation that needs model access
Incorrect. Distributing a long-lived token to workstations spreads a durable credential widely and does not remove standing secrets.
Explanation
Managed identities remove embedded secrets entirely, and scoping the Cognitive Services OpenAI User role enforces least privilege for data-plane calls.
Example10 · Securing AI & Cloud Workloads
A financial services firm runs a customer-facing Azure OpenAI chatbot that answers questions about loan products. The security team wants automated alerts when users attempt prompt injection or jailbreak attacks against the model. Which action best meets this requirement?
✓Enable the AI workloads plan in Microsoft Defender for Cloud and connect Azure OpenAI so prompt injection alerts are generated
Correct. The Defender for Cloud AI workloads plan provides threat protection for generative AI, detecting prompt injection, jailbreak, and other model-targeting attacks and surfacing them as security alerts.
・Configure an Azure Monitor diagnostic setting on the Azure OpenAI resource and build a scheduled Log Analytics alert rule
Incorrect. Diagnostic logs capture request telemetry but do not include built-in detection logic for prompt injection or jailbreak attacks against the model.
・Deploy an Azure Application Gateway with Web Application Firewall rules in front of the chatbot endpoint to inspect traffic
Incorrect. A WAF inspects HTTP traffic patterns and does not understand model-layer prompt manipulation or jailbreak attempts.
・Turn on content filtering in Azure AI Content Safety and route every flagged completion to a Logic App for triage
Incorrect. Content Safety filters harmful content in prompts and completions but does not deliver the dedicated prompt-injection threat alerts the AI workloads plan provides.
Explanation
Microsoft Defender for Cloud's AI workloads plan is purpose-built to detect threats such as prompt injection and jailbreak against Azure OpenAI deployments.
Example11 · Securing AI & Cloud Workloads
At a financial services company, data scientists need to call deployed Azure OpenAI models for inference but must not be able to create, modify, or delete deployments. Which approach grants the least privilege required?
・Assign the custom role allowing only data-plane inference and deny all management-plane deployment operations explicitly
Incorrect. Building a custom deny-based role is unnecessary effort when a built-in role already grants exactly the inference-only access needed.
✓Assign the built-in Cognitive Services OpenAI User role scoped to the Azure OpenAI resource
Correct. The Cognitive Services OpenAI User role grants data-plane access to call deployed models without permission to create or manage deployments.
・Assign the Cognitive Services Contributor role so the scientists can manage and invoke the deployed models
Incorrect. The Contributor role grants management-plane rights to create and delete deployments, violating least privilege.
・Assign the Reader role on the resource group so the scientists can view and then call the models
Incorrect. The Reader role grants no data-plane inference permission, so the data scientists could not call the models at all.
Explanation
The Cognitive Services OpenAI User role provides inference (data-plane) access while withholding deployment management, matching the least-privilege requirement.
Example12 · Securing AI & Cloud Workloads
A manufacturing distributor runs an Azure OpenAI deployment that powers a customer-facing order assistant. The security team wants near real-time alerts when attackers attempt prompt injection or try to exfiltrate data through the model. Which action should they take to get these alerts with the least custom development?
✓Enable the AI threat protection plan in Microsoft Defender for Cloud and connect the Azure OpenAI resource to it
Correct. Defender for Cloud's AI threat protection plan natively monitors Azure OpenAI workloads and raises alerts for prompt injection, data leakage, and other model abuse without custom code.
・Build a custom Azure Function that inspects each prompt against a regex deny list before forwarding it to the model
Incorrect. A custom regex Function requires development, maintenance, and misses many injection patterns, so it does not deliver managed near real-time alerting.
・Turn on diagnostic logging for the Azure OpenAI resource and write KQL alert rules in a Log Analytics workspace
Incorrect. Diagnostic logs with hand-written KQL rules can detect some activity but require significant authoring effort and lack built-in AI-specific detections.
・Deploy an Azure API Management gateway in front of the model and enable its request throttling policies
Incorrect. API Management throttling controls request volume but does not analyze prompt content for injection or exfiltration attempts.
Explanation
Defender for Cloud's AI threat protection is purpose-built to monitor generative AI workloads and surface model-specific threats with minimal setup.
Example13 · Securing AI & Cloud Workloads
The distributor's security engineer must ensure that an internal Azure OpenAI chatbot blocks the generation of violent and self-harm content at a strict severity threshold for all employees. Which capability should the engineer configure?
✓A custom Azure OpenAI content filter configuration with category severity thresholds applied to the deployment
Correct. Azure OpenAI content filters let you set per-category severity thresholds for categories such as violence and self-harm, applied directly to a deployment.
・A Microsoft Purview sensitivity label that is published to the Azure OpenAI deployment through a label policy
Incorrect. Purview sensitivity labels classify and protect documents and data, not the real-time content a model generates.
・An Azure Policy definition that denies the creation of any Azure OpenAI deployment in the subscription scope
Incorrect. An Azure Policy deny rule would block deployment creation entirely rather than filter generated content.
・A conditional access policy that restricts which employees can authenticate to the chatbot web application
Incorrect. Conditional access governs who can sign in but does nothing to filter the categories of content the model produces.
Explanation
Content filtering with configurable category severity is the native responsible AI control for restricting harmful model output.
Example14 · Securing AI & Cloud Workloads
A telecom operator runs a customer-support chatbot on an Azure OpenAI deployment. The security team wants runtime alerts for prompt injection, data leakage, and credential theft affecting the generative AI model. Which action enables this threat protection with the least custom development?
✓Enable the AI workloads plan in Microsoft Defender for Cloud on the subscription hosting the Azure OpenAI resource
Correct. The Defender for Cloud AI workloads plan provides built-in runtime threat detection for generative AI resources, surfacing alerts such as prompt injection, sensitive data exposure, and credential access without custom rules.
・Write a custom Azure Monitor log query alert that parses Azure OpenAI request logs for suspicious prompt patterns
Incorrect. A hand-written log query alert requires you to author and maintain detection logic yourself and will not match the breadth of the managed AI threat detections.
・Deploy a third-party web application firewall in front of the Azure OpenAI endpoint to inspect inbound prompts
Incorrect. A web application firewall inspects HTTP traffic patterns but does not understand model-level threats like prompt injection against the Azure OpenAI service.
・Turn on diagnostic settings for the Azure OpenAI resource and forward all logs to a Log Analytics workspace
Incorrect. Forwarding diagnostics to Log Analytics only collects logs; it does not by itself generate the AI-specific threat alerts the team needs.
Explanation
Microsoft Defender for Cloud's AI workloads plan delivers managed, runtime threat protection for generative AI deployments, which is the lowest-effort way to get prompt-injection and data-leakage alerts.
Example15 · Securing AI & Cloud Workloads
During a posture review, a telecom operator's engineer sees a Defender for Cloud recommendation that an Azure OpenAI resource should restrict network access. What is the primary security benefit of acting on this posture recommendation?
・It automatically rotates the API keys used by applications calling the Azure OpenAI resource
Incorrect. Network restriction controls connectivity and does not perform key rotation for the resource.
✓It reduces the exposed attack surface by limiting which networks can reach the AI endpoint
Correct. Restricting network access narrows the set of sources that can reach the endpoint, directly shrinking the attack surface exposed to the internet.
・It encrypts the model's stored fine-tuning data using a customer-managed key in Key Vault
Incorrect. Network access rules govern reachability, not encryption-at-rest configuration for fine-tuning data.
・It blocks prompts that attempt to extract training data from the deployed language model
Incorrect. Limiting networks does not inspect or block the content of prompts targeting the model.
Explanation
Posture recommendations to restrict network access improve security by reducing exposure, not by rotating keys, encrypting data, or filtering prompt content.
▶ Try 10 free questions (graded)