SC-500 practice, week 7: 5 questions (when the bad day comes)
DEV Community

SC-500 practice, week 7: 5 questions (when the bad day comes)

This week is about the bad day: a sign-in that looks risky, backups a ransomware gang wants to delete, a flood of traffic at your public site, an AI search index that answers with an API key, and a security recommendation you decided to accept on purpose.

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

  • Q031: A risky user is still a user, until a policy says otherwise
  • Q032: The ransomware gang wants your backups first
  • Q033: A flood at the front door, and a bill to match
  • Q034: The AI app searches company files with an admin key
  • Q035: We accept this risk, on purpose, until March
  • Cheat sheet
  • Coming next

Q031: A risky user is still a user, until a policy says otherwise

Identity and access · Yes/No series · standalone page

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

contoso.com has Microsoft Entra ID P2. Microsoft Entra ID Protection marked the user l***@contoso.com as high user risk two days ago (leaked credentials). Nothing happened. She kept signing in, and so did someone else.

Goal:

  • Users with high user risk must do a secure password change (after MFA) before they get in.
  • Sign-ins with medium or high sign-in risk must pass MFA.
  • The setup must keep working after the old Identity Protection policy pages are gone.

Solution 1: You open Entra ID Protection and turn on the legacy user risk policy and sign-in risk policy there. Does this meet the goal?

  • ▢ Yes
  • ▢ No

Solution 2: You create two Conditional Access policies: one with condition User risk: High and grant Require risk remediation (users with a password do a secure password change after MFA); one with condition Sign-in risk: Medium and High and grant Require multifactor authentication. You test them in report-only mode first, then turn them on. Does this meet the goal?

  • ▢ Yes
  • ▢ No

Solution 3: You create one Conditional Access policy that blocks all users with any risk level. Does this meet the goal?

  • ▢ Yes
  • ▢ No

Answer

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

Solution 1 fails goal 3. The legacy risk policies in Identity Protection are retired (Microsoft gave 1 October 2026 as the date), and new ones could not be created for a long time before that. Microsoft's guidance is to use risk-based Conditional Access instead.

Solution 2 meets all three goals. These are the two Microsoft-recommended risk policies, built in Conditional Access, with all its features: exclusions, report-only mode, and the same place as every other policy.

Solution 3 is safe and useless. Blocking does not fix the risk; the user cannot do the password change that would clear it, so the helpdesk gets every call. It also blocks low risk, which is often noise.

Gotcha: the secure password change only works when the user is already registered for MFA, and for hybrid users it needs password writeback so the new password reaches on-premises AD. Exclude break-glass accounts, as always.

Sources: Risk-based access policies · Configure risk policies

Q032: The ransomware gang wants your backups first

Storage, databases and networking · Hot area (Yes/No) · standalone page

The container backups in the storage account stlabbackup01 holds nightly database exports. A ransomware report says attackers now go for backups before they encrypt anything. The security team sets a time-based retention policy of 30 days on the container and then locks it.

Separately, legal asks to keep the exports of one customer, forever, for a court case.

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

    1. During the 30 days, a user with Storage Blob Data Owner can still delete an export.
    • ▢ Yes / ▢ No
    1. After the policy is locked, you can increase the retention to 60 days.
    • ▢ Yes / ▢ No
    1. After the policy is locked, you can decrease the retention to 7 days.
    • ▢ Yes / ▢ No
    1. A legal hold keeps data until the hold is removed, with no fixed end date.
    • ▢ Yes / ▢ No
    1. While the policy is unlocked, it can be deleted, so it does not count as compliant for strict regulations.
    • ▢ Yes / ▢ No

Answer

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

No. Immutable means WORM (write once, read many): nobody can change or delete a protected blob during the retention period, not even an Owner. That is the whole point.

Yes. A locked policy can only be extended, a limited number of times.

No. A locked policy cannot be shortened or deleted. If you set 10 years by mistake, you pay for 10 years.

Yes. A legal hold protects data until you clear the hold, with no time limit. It is tagged, so you know why it is there.

Yes. An unlocked policy is for testing. Lock it to meet rules such as SEC 17a-4(f).

Gotcha: immutability protects the data, not the account. An attacker with control-plane access can still try to delete the whole storage account: add a resource lock (CanNotDelete) and keep owner rights tight. And test the lock on a test container first: a locked policy is very hard to undo.

Sources: Store business-critical blob data with immutable storage · Time-based retention policies · Legal holds

Q033: A flood at the front door, and a bill to match

Networking · Hot area · standalone page

contoso.com runs its customer site behind one public IP on an Application Gateway, agw-lab-web, in vnet-lab-web. A competitor's site went down for a day after a DDoS attack, and the board asks what you have. Two candidates: DDoS Network Protection and DDoS IP Protection.

The team cares about:

  • Protection for this one public IP, at the lowest cost.
  • Access to the DDoS Rapid Response team during an attack.
  • Cost protection: credits for the scale-out costs caused by a documented attack.

Pick the right value for each line:

  • What / Your choice
  • Tier that is billed per protected public IP
    • ▢ Network Protection / ▢ IP Protection
  • Tier that is billed per virtual network plan (covers up to 100 public IPs)
    • ▢ Network Protection / ▢ IP Protection
  • Tier that includes DDoS Rapid Response
    • ▢ Network Protection / ▢ IP Protection / ▢ Both
  • Tier that includes cost protection
    • ▢ Network Protection / ▢ IP Protection / ▢ Both
  • If only goal 1 matters, pick
    • ▢ Network Protection / ▢ IP Protection

Answer

IP Protection / Network Protection / Network Protection / Network Protection / IP Protection

IP Protection is enabled per public IP and billed per IP. Good for one or a few IPs. Network Protection is a plan you link to virtual networks; one plan covers up to 100 public IPs, and more are billed extra. Both give the same core mitigation and telemetry.

Network Protection adds DDoS Rapid Response support, cost protection and a WAF discount. IP Protection does not. So for goal 1 alone, IP Protection is cheaper. If goals 2 and 3 matter to the board, pay for Network Protection.

Gotcha: all Azure public IPs get infrastructure-level protection for free, but it is tuned for Azure as a whole, not for your app. And DDoS protection works at layers 3 and 4: for HTTP floods at layer 7, you also need a WAF on the Application Gateway or Front Door.

Sources: Azure DDoS Protection overview · About DDoS Protection tier comparison

Q034: The AI app searches company files with an admin key

Secure compute (AI) · Build list · standalone page

The chat app app-lab-hrbot answers HR questions. It uses the Azure AI Search service srch-lab-hr to find the right policy pages (retrieval-augmented generation). Today the app uses the search admin API key, which can also create, change and delete indexes. The app only needs to read the index idx-hr-policies.

The security team wants:

  • The app uses its managed identity and Microsoft Entra ID, no API keys.
  • Least privilege: query only, no index changes.
  • API keys stop working on srch-lab-hr.

Which four actions should you perform in sequence?

Actions:

  • A. On srch-lab-hr, set the API access control to Both (role-based access control and API keys).
  • B. Assign the app's managed identity the Search Index Data Reader role on srch-lab-hr (or on the index).
  • C. Assign the app's managed identity the Search Service Contributor role.
  • D. Update the app to request Entra tokens and test a query.
  • E. Set the API access control to Role-based access control only.
  • F. Move the admin key into Key Vault.

Answer

A → B → D → E.

A: turn on role-based access alongside keys, so nothing breaks while you switch.

B: Search Index Data Reader gives read access to index content: exactly what a query needs.

D: change the app to use tokens and run a real query. Do not skip the test.

E: once the app works with tokens, switch to role-based access control only. Keys are refused from then on.

Why not the others: C is the service admin role: full control plane, it can create and change indexes, and it can even fetch the admin keys. Far too much power for an app that only reads. F keeps a key in the design. A key in a vault is still a key.

Gotcha: role assignments can take a few minutes to apply. And the AI model calls from the same app need their own role on the Foundry resource; one keyless service does not make the other keyless.

Sources: Connect to Azure AI Search using roles · Enable or disable role-based access control

Q035: We accept this risk, on purpose, until March

Defender for Cloud and Sentinel · Single choice · standalone page

Defender for Cloud shows the recommendation "Storage accounts should restrict network access" as unhealthy for stlabpublic01. This account hosts public product images for the website. It is supposed to be reachable from the internet, and the security lead signed off on it. The recommendation drags the secure score down every week, and every new analyst opens an investigation.

The security team wants:

  • stlabpublic01 no longer counts against the score for this one recommendation.
  • The decision is documented as an accepted risk, with an expiry date, so someone looks at it again.
  • Every other storage account is still checked.

What should you do?

  • A. Disable the recommendation for the whole subscription.
  • B. Create an exemption for stlabpublic01 on that recommendation, category Risk accepted (waiver), with an expiration date and a description.
  • C. Create an exemption for stlabpublic01, category Mitigated.
  • D. Move stlabpublic01 to a subscription without Defender for Cloud.

Answer

B. An exemption removes one resource (or scope) from one recommendation, without hiding it from everyone else. The Risk accepted (waiver) category says "we know, we accept the risk". The expiration date makes the decision come back for review, and the description tells the next analyst why.

Why not the others: A stops checking every storage account in the subscription. The next storage account that is open by mistake goes unnoticed. C is the wrong story. Mitigated means "resolved through a third-party service" that Defender for Cloud does not track. Nothing mitigates this one; you accepted it. Auditors read these categories. D hides the problem by moving it out of sight. That is not a control.

Gotcha: to create an exemption you need Owner or Security Admin on the scope, plus rights on every policy initiative that contains the recommendation. And keep an eye on them: an exemption list that only grows is a second, hidden backlog.

Sources: Exempt resources from recommendations · Azure Policy exemption structure

Cheat sheet

The same five ideas in plain words, for the manager who asks "so what?". Share it with 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: ▶️ YouTube (daily Shorts + explainers): CD Security Lab 💼 LinkedIn: Cuong Do 📘 Facebook: CD Security Lab 📸 Instagram: @cdsecuritylab 📝 More posts like this: Dev.to

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

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.