LevelUpWith

Explore / Microsoft Cloud and AI Security Engineer (SC-500) Exam Prep / Practice questions

Microsoft Cloud and AI Security Engineer (SC-500) practice questions

10 questions from the bank behind this course's timed mock. Free to read and to answer, no account needed, and each has its answer and an explanation. They belong to Microsoft Cloud and AI Security Engineer (SC-500) Exam Prep.

Answer them one at a time →Read lesson 1 free

  1. Question 1

    You are a security engineer taking SC-500. You are halfway through, and you have marked three questions for review because you were unsure. You now want a break. You must not lose the chance to revisit those three questions. What should you do?

    1. Open Microsoft Learn during the break to research the marked questions
    2. Leave the marked questions unanswered so they count as unscored items
    3. Start the break now and revisit the marked questions when you come back
    4. Review and finalize the marked questions before you start the break
    Show the answer

    Answer: D. Review and finalize the marked questions before you start the break

    Microsoft's exam experience page says that once you start a break you cannot return to questions you have already seen, so you must finish the marked questions first. Starting the break now is the nearest distractor, but after the break those questions are locked.

  2. Question 2

    You are a security engineer. Several months ago users consented to a third-party app's delegated Files.Read.All permission. Today you change User consent for applications to 'Do not allow user consent' and select Save. The next day, audit logs show the app is still reading files on behalf of those users. You need to stop this access. What should you do?

    1. Revoke the app's existing delegated grants with Microsoft Graph PowerShell, for example with Remove-MgOauth2PermissionGrant
    2. Switch the user consent setting to 'Let Microsoft manage your consent settings' so that high-risk scopes are blocked
    3. Turn on the admin consent workflow so that the existing grants are sent to reviewers for approval
    4. Wait up to one hour for the new user consent setting to apply to existing grants
    Show the answer

    Answer: A. Revoke the app's existing delegated grants with Microsoft Graph PowerShell, for example with Remove-MgOauth2PermissionGrant

    Changing the consent settings only affects future consent, so grants that already exist stay in place until you revoke them. User-consented grants cannot be revoked in the portal, which is why Graph PowerShell is used. Waiting an hour is wrong: the one-hour delay applies to switching on the admin consent workflow, and no setting change removes existing grants.

  3. Question 3

    You are a security engineer. You created a custom policy definition that requires a specific tag, and you saved it with its Definition location set to subscription Sub-A. The CISO now wants the policy applied to every subscription under the management group MG-Prod, which contains Sub-A. You want the fewest assignments to manage. What should you do first?

    1. Assign the definition at Sub-A with a system-assigned managed identity so it can reach the other subscriptions
    2. Create an exemption at MG-Prod that references the definition saved at Sub-A
    3. Assign the definition at Sub-A and set notScopes to include the other subscriptions in MG-Prod
    4. Save the custom definition at the MG-Prod management group (or a parent of it), then assign it at MG-Prod
    Show the answer

    Answer: D. Save the custom definition at the MG-Prod management group (or a parent of it), then assign it at MG-Prod

    A custom definition can only be assigned at its definition location or below, so to cover all of MG-Prod it must be saved at MG-Prod or higher. A managed identity only gives remediation permissions. It does not change where a definition can be assigned.

  4. Question 4

    A security engineer finds that an account SAS for a storage account has leaked. It was generated ad hoc from key1, and no stored access policies exist on the account. The token grants read and write access to the Blob and Queue services. What must the engineer do to make the leaked token stop working?

    1. Regenerate key1, the storage account key that signed the SAS
    2. Remove the Storage Blob Data Contributor role assignments at the storage account scope
    3. Create a stored access policy on each container and set its expiry to a time in the past
    4. Run az storage account revoke-delegation-keys on the storage account
    Show the answer

    Answer: A. Regenerate key1, the storage account key that signed the SAS

    You cannot link an account SAS to a stored access policy, so the only way to revoke an ad hoc account SAS is to rotate the key that signed it. revoke-delegation-keys invalidates only user delegation SAS tokens, which are signed with a user delegation key and not the account key.

  5. Question 5

    A network engineer at Contoso creates a Custom Azure Policy definition with mode Microsoft.Network.Data and the addToNetworkGroup effect. The definition targets VNets tagged NetworkType=Prod and uses the full resource ID of the ng-prod network group. The tenant has 40 subscriptions. Two hours later, ng-prod still has no members, even though several tagged VNets are in the network manager's scope. What should the engineer do first?

    1. Assign the policy definition at the subscription or management group scope that contains the tagged VNets
    2. Wait up to 24 hours, because policy-based membership is evaluated once a day
    3. Change the policy definition mode from Microsoft.Network.Data to All so that it evaluates network resources
    4. Redeploy the security admin configuration to the regions where the tagged VNets are located
    Show the answer

    Answer: A. Assign the policy definition at the subscription or management group scope that contains the tagged VNets

    A policy definition does nothing until it is assigned. With fewer than 1,000 subscriptions, membership updates within minutes of assignment. Waiting up to 24 hours only applies to tenants with more than 1,000 subscriptions, and redeploying the configuration does not fill the group because membership comes from the policy.

  6. Question 6

    You are a security engineer at a consulting firm. An administrator at a partner site, using the static public IP 203.0.113.25, needs RDP access to a spoke VM (10.1.2.10) through the public IP of the Azure Firewall in your hub. You must keep exposure as small as possible and add only the rules you need. What should you configure in the firewall policy?

    1. A DNAT rule with source * that translates TCP 3389 to 10.1.2.10, plus a network rule that allows TCP 3389 from 203.0.113.25 to 10.1.2.10
    2. A DNAT rule with source 203.0.113.25, destination the firewall's public IP on TCP 3389, and translated address 10.1.2.10, with no other rule
    3. A network rule that allows TCP 3389 from 203.0.113.25 to the firewall's public IP, plus an NSG on AzureFirewallSubnet that limits RDP to that address
    4. An application rule that allows 203.0.113.25 to reach the target FQDN of the VM on port 3389
    Show the answer

    Answer: B. A DNAT rule with source 203.0.113.25, destination the firewall's public IP on TCP 3389, and translated address 10.1.2.10, with no other rule

    A matching DNAT rule both translates and allows the traffic, so you don't need a separate network rule, and a specific source IP limits exposure. The option with source * plus a network rule leaves the DNAT open to any source and adds a rule you don't need, because the DNAT match ends processing.

  7. Question 7

    You are a security engineer for a Foundry resource that has public network access disabled to meet a compliance requirement. You must add an AI Gateway so that the gateway and the resource communicate only over private networking, and the setup must support production workloads. Which API Management configuration should you use?

    1. Use an existing Standard v2 or Premium v2 instance with a private endpoint, or a Premium v2 instance injected into a virtual network
    2. Use an existing Developer tier instance deployed into a virtual network
    3. Use an existing Basic v2 instance and add an IP filter policy that allows only the Foundry resource
    4. Select Create new in Manage > AI Gateway to provision a Basic v2 instance
    Show the answer

    Answer: A. Use an existing Standard v2 or Premium v2 instance with a private endpoint, or a Premium v2 instance injected into a virtual network

    When public network access is disabled on the Foundry resource, the APIM instance must also be private: Standard v2 or Premium v2 with a private endpoint, or Premium v2 with virtual network injection. Microsoft also suggests these tiers for production. Create new gives you Basic v2, which is designed for development and testing and does not meet the private networking requirement.

  8. Question 8

    You are a security engineer rolling out a TLS hardening setting to Windows servers with Azure Machine Configuration. The setting must be applied to every server once. Application owners may later change it locally for troubleshooting, and the platform must not overwrite their change, but every change must appear as non-compliant in Azure Policy. Which assignment type should you use?

    1. ApplyAndAutoCorrect
    2. A built-in Azure Policy definition with the modify effect
    3. ApplyAndMonitor
    4. Audit
    Show the answer

    Answer: C. ApplyAndMonitor

    ApplyAndMonitor applies the setting once and after that only reports drift, so local changes stay in place but show as non-compliant. ApplyAndAutoCorrect would put the setting back whenever it drifts, which the owners do not want, and Audit would never apply it in the first place.

  9. Question 9

    You are a security engineer for a company with 150 Azure subscriptions under one management group. The CISO wants regulatory compliance data from every subscription sent continuously to one central Log Analytics workspace. New subscriptions must be covered without manual setup. What should you do?

    1. Assign the Azure Policy DeployIfNotExist template for continuous export at the management group
    2. Assign the regulatory compliance standard at the management group from Manage compliance policies
    3. Create a workflow automation that starts a Logic App to write compliance changes to the workspace
    4. Open Environment settings in each subscription and configure Continuous export to the central workspace
    Show the answer

    Answer: A. Assign the Azure Policy DeployIfNotExist template for continuous export at the management group

    The DeployIfNotExist policy templates are the way to configure continuous export across many subscriptions, and they also cover subscriptions added later. Setting up export in each subscription by hand does work, but it does not scale and it misses new subscriptions.

  10. Question 10

    Your company is onboarding an on-premises Linux server as a CEF log forwarder for Microsoft Sentinel. The server already runs the Azure Arc Connected Machine agent. A security engineer must create a data collection rule in the Common Event Format (CEF) via AMA connector and have it deploy the Azure Monitor Agent to this server. You must use least privilege. Which two roles should the engineer have? (Select TWO.)

    More than one answer is right.

    1. Microsoft Sentinel Reader
    2. Virtual Machine Contributor
    3. Azure Connected Machine Resource Administrator
    4. Monitoring Contributor
    5. Log Analytics Reader
    Show the answer

    Answers: C. Azure Connected Machine Resource Administrator; D. Monitoring Contributor

    Deploying the agent to an Arc-enabled machine needs Azure Connected Machine Resource Administrator, and creating or editing the DCR needs Monitoring Contributor. Virtual Machine Contributor is the role for deploying the agent to Azure VMs, not to Arc machines.

The full timed mock

50 questions in 100 minutes, with a pass mark of 70%. Each paper is drawn from a bank of questions written for the mock alone, and these 10 are left out of it. Full access opens it, with every level of the course.

See the course →See the plans

LevelUpWith is independent of the organisation that sets this exam. These questions were written for this course; they are not taken from the exam.