DEV Community

Cover image for SC-500 practice, week 6: 5 questions (proof, not promises)
CD Security Lab
CD Security Lab

Posted on Originally published at gitlab.com

SC-500 practice, week 6: 5 questions (proof, not promises)

This week: admins who need a sign-in that phishing cannot steal, network logs that are about to stop, the right Bastion for your admins, an AI resource that should not be on the internet at all, and how to stop paying for logs nobody reads.

How to use these: read the question, pick your answer before you open Answer, and write it down (or in the comments). Then check the "why not the others" part even if you got it right: that is where the exam traps live. Every scenario, name and number is made up by me; only the question formats follow the real exam.

Table of contents

Q026: MFA is on, and admins still got phished

Identity and access · Single choice · standalone page

In contoso.com, every admin uses MFA with push notifications in Microsoft Authenticator. Last month an attacker ran an adversary-in-the-middle phishing page. The admin typed the password, approved the push, and the attacker kept the session cookie. MFA "worked". The attacker got in anyway.

The security team wants this:

  • When a user with an admin role signs in, only phishing-resistant methods are accepted: FIDO2 security keys, Windows Hello for Business, or passkeys.
  • Normal users keep their current MFA.

What should you configure?

  • A. A Conditional Access policy for directory roles (the admin roles), Grant: Require authentication strength, strength: Phishing-resistant MFA.
  • B. A Conditional Access policy for the admin roles, Grant: Require multifactor authentication, plus number matching in Authenticator.
  • C. In the Authentication methods policy, turn off SMS and voice call for all users.
  • D. A Conditional Access policy for the admin roles with sign-in frequency set to 1 hour.

Answer

A. Authentication strengths let Conditional Access say which methods are good enough, not just "some MFA". The built-in Phishing-resistant MFA strength accepts only FIDO2 security keys (including passkeys), Windows Hello for Business and certificate-based authentication (multifactor). These methods are bound to the real site, so a fake page cannot replay them. Target the policy at the directory roles, so new admins are covered on day one.

Why not the others:

  • B makes push approvals harder to fool by accident, but it is still a push. An adversary-in-the-middle page relays it just the same.
  • C removes the weakest methods for everyone, which is good hygiene, but admins can still sign in with plain push. It does not force anything phishing-resistant.
  • D shortens the session, but the attacker in the story just needs one hour.

Gotcha: register the keys before you turn the policy on, or your admins lock themselves out. Test in report-only mode first, and keep your break-glass accounts excluded (with their own FIDO2 keys).

Sources: Conditional Access authentication strengths · Require phishing-resistant MFA for administrators


Q027: Network logs that will simply stop one day

Networking · Hot area (Yes/No) · standalone page

vnet-lab-prod has 12 subnets and 9 network security groups. Since 2023, NSG flow logs send records to the storage account stlabflowlogs, and traffic analytics sends them to law-lab-sec. The SOC uses them in every network investigation. Someone mentions that "NSG flow logs are going away". The SOC lead asks you what is true.

For each statement, select Yes if it is true. Otherwise, select No.

Statement Yes No
1. You can still create a new NSG flow log today for a new NSG. ▢ ▢
2. Existing NSG flow logs keep working until their retirement date, 30 September 2027. ▢ ▢
3. Virtual network flow logs can be enabled on a whole virtual network, a subnet, or a network interface. ▢ ▢
4. Virtual network flow logs also record traffic that is allowed or denied by Azure Virtual Network Manager security admin rules, which NSG flow logs cannot see. ▢ ▢
5. Traffic analytics works with virtual network flow logs too. ▢ ▢

Answer

1. No · 2. Yes · 3. Yes · 4. Yes · 5. Yes

  1. No. Since 30 June 2025, creating new NSG flow logs is not supported.
  2. Yes. Existing NSG flow logs keep running until 30 September 2027. After that, the NSG flow log resources are deleted. Records you already collected stay, based on their retention.
  3. Yes. Virtual network flow logs work at the virtual network, subnet or network interface level, so one setting can cover a whole VNet.
  4. Yes. That is one of the gaps they close: they see traffic regardless of which rule made the decision, including Virtual Network Manager security admin rules, and they also show encryption status for virtual network encryption.
  5. Yes. Traffic analytics supports virtual network flow logs, so the SOC keeps its maps and queries (the table names change, so update saved queries).

Gotcha: do not run both on the same traffic for long. You pay twice and the SOC sees duplicates. Network Watcher has a migration script, and Azure Policy can turn on VNet flow logs at scale.

Sources: NSG flow logs overview (retirement) · Virtual network flow logs · Migrate to virtual network flow logs


Q028: No public IP on VMs, and admins still need RDP and SSH

Networking · Hot area · standalone page

The VMs in vnet-lab-prod have no public IPs, on purpose. Admins still need to reach them. The team wants:

  1. Admins connect from their own laptop using the native RDP client (mstsc) and the Azure CLI for SSH, not only the browser.
  2. A contractor gets a link to one VM for one day, without an Azure account.
  3. Sessions are recorded, for the auditor.
  4. The jump host itself is not reachable from the internet; admins come in over the company VPN.

Pick the lowest Azure Bastion SKU for each need:

Need Your choice
1. Native client (RDP and SSH from your laptop) ▢ Developer ▢ Basic ▢ Standard
2. Shareable link ▢ Basic ▢ Standard ▢ Premium
3. Session recording ▢ Standard ▢ Premium
4. Private-only deployment (no public IP on Bastion) ▢ Standard ▢ Premium
So, for all four needs ▢ Standard ▢ Premium

Answer

Standard / Standard / Premium / Premium / Premium

  • Native client support and shareable links start at Standard. Basic gives browser-based RDP and SSH only. Developer is a free, shared option for dev and test with one connection at a time, not for production.
  • Session recording and private-only deployment are Premium features.
  • So this team needs Premium.

Gotcha: Bastion needs its own subnet named exactly AzureBastionSubnet (/26 or larger). And Bastion gets you in without public IPs on the VMs, but it does not replace who-can-connect controls: use RBAC on the VMs (Reader on the VM, the NIC and Bastion) and Microsoft Entra sign-in for the VMs where you can.

Sources: Azure Bastion SKUs and features · Configuration settings: SKUs · Session recording


Q029: The AI resource answers anyone on the internet who has a key

Secure compute (AI) · Yes/No series · standalone page

Yes/No series: same scenario, a different solution each time. Some scenarios have several right solutions, some have none.

The Microsoft Foundry resource aif-lab-01 serves models to apps in vnet-lab-ai. Today its endpoint is open to all networks. The security team wants:

  1. aif-lab-01 is not reachable from the public internet.
  2. Apps in vnet-lab-ai still reach it, and its host name resolves to a private IP inside the VNet.

Solution 1: You set Public network access to Disabled on aif-lab-01, create a private endpoint for it in snet-lab-ai, and link the private DNS zones that the wizard proposes (for example privatelink.cognitiveservices.azure.com and privatelink.openai.azure.com) to vnet-lab-ai.
Does this meet the goal? ▢ Yes ▢ No

Solution 2: You keep public access on, and add the outbound public IP of the company to the resource's firewall list.
Does this meet the goal? ▢ Yes ▢ No

Solution 3: You set Public network access to Disabled and create a private endpoint, but you do not create or link any private DNS zone. The apps keep using the normal host name.
Does this meet the goal? ▢ Yes ▢ No

Answer

Solution 1: Yes · Solution 2: No · Solution 3: No

  • Solution 1 meets both goals. With public access disabled, the resource only takes traffic through private endpoints. The private DNS zones make the normal host name resolve to the private endpoint's IP inside the VNet, so the apps need no code change.
  • Solution 2 narrows who can reach the public endpoint. It is still a public endpoint. Goal 1 says not reachable from the internet.
  • Solution 3 blocks the internet, and the apps too. Without the private DNS zone, the host name still resolves to the public IP, which is now closed. The apps break, and you spend a day on "but the private endpoint is green".

Gotcha: a Foundry resource can need more than one private DNS zone, depending on the APIs you use (Cognitive Services, OpenAI, and the AI services endpoint). Let the private endpoint wizard create them, then check resolution from a VM in the VNet with nslookup. Developers who used the Foundry portal from home will also lose access: plan VPN or a jump box for them.

Sources: Configure a private link for Microsoft Foundry · Azure Private Endpoint DNS zone values


Q030: Half the Sentinel bill is one event ID nobody reads

Defender for Cloud and Sentinel · Build list · standalone page

The Sentinel workspace law-lab-sec gets Windows Security events from 300 servers through the Azure Monitor Agent and the data collection rule dcr-lab-winsec. The bill shows that half of the SecurityEvent volume is event 4662 from one noisy app on srv-lab-file01, and nobody has ever used it in a rule or a hunt.

The security team wants this:

  • Drop event 4662 from srv-lab-file01 only, before it is stored, so you do not pay to keep it.
  • Keep every other event, including 4662 from all other servers.

Which three actions should you perform in sequence?

Actions:

  • A. Write a KQL transformation: source | where not(EventID == 4662 and Computer startswith "srv-lab-file01").
  • B. Add the transformation as transformKql on the data flow for SecurityEvent in dcr-lab-winsec.
  • C. Create a Sentinel analytics rule that closes incidents for event 4662.
  • D. Check the result with a query on SecurityEvent for the last hour, grouped by EventID and Computer.
  • E. Set the SecurityEvent table retention to 7 days.
  • F. Uninstall the Azure Monitor Agent from srv-lab-file01.

Answer

A → B → D.

  • A: a transformation is a KQL query that runs on every incoming record, with source as the input. Records that the where filters out are dropped before they are stored.
  • B: put it on the data flow in the data collection rule. For agent data, the transformation lives in the DCR the agent uses.
  • D: always prove it. Wait a few minutes, then count events by ID and computer. 4662 from srv-lab-file01 should be gone; the rest should not.

Why not the others:

  • C hides alerts, but you still pay to ingest every event.
  • E shortens retention, but ingestion is where most of the cost sits. The data still arrives and is still billed.
  • F stops all security events from that server, including the ones you need for real attacks.

Gotcha: filtering in the agent's XPath query (the "custom" event list in the DCR) is another option, and it saves the data from even leaving the server. Use a transformation when the filter needs fields that XPath cannot express well, like this "event ID and computer" mix. And write down what you drop and why: the next auditor will ask.

Sources: Data collection transformations in Azure Monitor · Ingestion-time transformations in Microsoft Sentinel


Cheat sheet

The same five ideas in plain words, for the manager who asks "so what?". Share it with them.

Cheat sheet titled Proof, not promises, one row per idea: admins sign in with a key a fake site cannot use, old network logs stop in 2027 so move to the new kind, admins reach servers with no public address, the AI service only answers inside the company network, and noisy logs are dropped before you pay for them.

Coming next

Next Thursday brings more SC-500 questions, with AI security in every week. The skill areas are in the SC-500 study guide. All questions live in the practice folder.

Got one wrong? Good. That is one fewer surprise in the exam room. Drop your answers in the comments.


Thanks for reading! I'm Cuong, and on CD Security Lab I rebuild real Microsoft security cases in a safe lab and explain them simply. Follow along:

Got a question about your own tenant? Drop it in the comments.

Top comments (0)