Microsoft SC-500 Practice Test 38
Question 370
A WAF policy blocks legitimate search queries because one managed rule suspects SQL injection. Security wants to keep protection active. What should it do?
- Examine WAF request logs and rule IDs, confirm the false positive and apply a narrow supported exclusion or rule adjustment.
- Turn off the whole managed ruleset for every site because one customer was blocked.
- Allow every request from the internet while logging only successful purchases.
- Change the web app's display name to avoid matching the managed WAF rule.
Explanation
Correct Answer
A:Identify the exact input field and legitimate request pattern, compare blocked samples with the triggered rule and use the smallest supported exception. Test both the valid query and a malicious probe to ensure protection remains effective. Monitor after rollout and document why the exception is justified; disabling the entire WAF would conceal other threats. Retain a test that should still trigger the attack rule, so a false-positive exception does not broaden the bypass.
Incorrect Answers
B:A blanket disablement removes broad protections for unrelated attacks. Tune the specific false positive after reviewing evidence. One blocked search phrase does not justify removing unrelated protections for SQL injection or cross-site scripting.
C:Logging cannot replace enforcement against hostile input. Preserve WAF blocking for genuine attack patterns and correct the narrow exception. A logging-only policy may record attacks while still allowing their requests to reach a vulnerable application backend.
D:WAF analyzes requests and configured conditions, not the friendly resource name alone. Diagnose and tune the actual rule. WAF request matching depends on parameters and rule logic, not the friendly Azure resource display name.
Question 371
A team deploys a new WAF policy to a complex public portal and has not evaluated false-positive rates. Which rollout strategy is most controlled?
- Enable prevention immediately and suppress all denied request reports.
- Leave WAF permanently disabled until the portal has no security incidents.
- Begin with supported detection mode, inspect findings and legitimate traffic, then transition to prevention after validation.
- Grant all developers WAF Administrator so they can bypass blocks in production directly.
Explanation
Correct Answer
C:Collect representative requests, evaluate managed rule hits against application behavior and tune justified exclusions. Once false positives are understood, enable blocking in a controlled release and monitor error rates and attack signals. Maintain application security testing because WAF cannot guarantee all vulnerabilities are prevented. Document targeted exclusions and review results after prevention begins, including unusual API request formats and valid user workflows.
Incorrect Answers
A:Unmeasured blocking can disrupt valid logins or applications, and hiding logs prevents false-positive analysis. Use an observable staged approach. Immediate untested prevention can block legitimate customers and conceal the issue if WAF logging is suppressed.
B:This offers no request protection and provides no data about how rules would behave. Detection mode can supply a safe initial assessment. Detection mode allows observation of real traffic before the team enforces blocks with predictable false-positive rates.
D:Broad administrator access is unrelated to safe policy testing and risks uncontrolled rule changes. Use reviewed tuning and staged enforcement. Unnecessary policy administration grants increase the chance of unreviewed rule bypasses by unrelated developers.
Question 372
A public API is experiencing high-rate automated requests from distributed networks. Its WAF logs show a mixture of legitimate clients and abuse. Which configuration should be evaluated?
- Deny every request from the internet for a year regardless of customer need.
- Increase application thread count only and assume abusive traffic stops.
- Hide the API hostname behind a long random label while preserving public DNS.
- Use supported WAF bot or rate-limiting rules, monitor source patterns and test legitimate client impact.
Explanation
Correct Answer
D:Review the available WAF policy capabilities and configure thresholds or bot detection aligned with observed traffic, accounting for distributed sources and expected bursts. Verify legitimate customers still reach the API and tune narrow exceptions. Combine with authentication and backend quotas because WAF is one layer of abuse protection. Test legitimate application bursts and bot-like patterns separately to avoid denying real customers under the new threshold.
Incorrect Answers
A:A complete outage is not a proportional protection strategy when the API must serve external users. Choose supported rate or bot protections with validated client exceptions. Blocking the entire internet would stop valid application operations and is a last-resort availability decision, not a calibrated anti-bot policy.
B:Capacity can absorb some requests but does not enforce source behavior policies or prevent costly backend abuse. Use request-level controls. More server threads cannot reject malicious request volume or enforce user-level quotas at the network edge.
C:Automated clients can discover public endpoints, and host secrecy is not a reliable anti-bot control. Apply supported edge filtering. API endpoints can be discovered through client code and scans even with long hostnames or hidden documentation.
Question 373
A browser frontend calls a sensitive API through Azure API Management. The backend must reject tokens issued for a different audience. Which policy belongs at the API boundary?
- Trust the frontend's JavaScript to hide API methods from unauthorized users.
- Use appropriate API Management JWT validation for trusted issuer, audience and claims, plus backend authorization.
- Give all API clients subscription Reader so the gateway can accept their token.
- Set a CORS allowlist and assume it blocks nonbrowser callers with incorrect tokens.
Explanation
Correct Answer
B:Configure a supported validate-jwt or equivalent policy for the intended token contract, checking issuer, signature, audience and required claims before forwarding. Apply subscription or rate policies as needed, and retain resource-level authorization in the backend. Test wrong-audience, expired and missing-token requests to confirm the gateway rejects them. Validate a wrong-issuer token, a wrong-audience token and an unauthorized object access before accepting the API boundary.
Incorrect Answers
A:Browser code can be modified or bypassed, so visibility is not an authorization control. The API must validate the caller's credentials independently. Client-side code runs under user control, so hiding a method in JavaScript cannot authorize the actual backend API call.
C:Azure Reader is a management role and does not prove that a token is intended for this API or that the caller may access a particular record. An Azure management Reader role is unrelated to JWT audience validation or fine-grained backend data permissions.
D:CORS controls supported browser behavior, not an authenticated API boundary. Nonbrowser clients can send requests directly unless JWT validation and authorization reject them. Nonbrowser clients ignore CORS policies, making CORS insufficient protection for a sensitive API service.
Question 374
A sensitive API backend receives bursts of expensive queries through Azure API Management, slowing legitimate customers. Which controls should be configured?
- Use supported API Management rate limits and quotas per justified key or identity, then monitor backend behavior.
- Make the API completely anonymous to avoid authentication overhead.
- Increase the API's allowed response size so heavy requests complete more quickly.
- Disable backend telemetry because collecting logs caused every request surge.
Explanation
Correct Answer
A:Set appropriate rate-limit or quota policies matching business capacity and caller segmentation, accounting for the policy's counter scope and distributed gateways. Test 429 handling and Retry-After where supported, and monitor backend saturation. Maintain backend safeguards and authentication; gateway throttling alone does not fix inefficient SQL or authorize user access. Check client-specific limits and observe 429 responses so retries do not overwhelm the backend during a traffic spike.
Incorrect Answers
B:Removing caller identity makes abuse attribution and per-customer limits harder, and can expose sensitive operations. Keep authentication and scope rate limits accordingly. Anonymous access would undermine per-client attribution and make abuse investigation harder after request throttling.
C:Larger payload allowances do not constrain request volume or compute cost. Apply bounded quotas and optimize expensive endpoints where necessary. A larger response budget may increase backend work and does not restrict how frequently clients submit expensive requests.
D:Monitoring may have some cost but is needed to diagnose abusive demand. Removing it does not enforce request limits and conceals attack patterns. Telemetry is necessary to confirm abusive sources and distinguish gateway throttles from actual backend performance bottlenecks.
Question 375
A partner API returns backend records containing internal authorization notes. Partners need only approved summary fields. What should protect the response?
- Rely exclusively on TLS because encrypted responses never expose unwanted fields to the recipient.
- Rename internal JSON properties to shorter strings so partners are unlikely to interpret them.
- Enforce backend field-level authorization and, where suitable, API Management response transformations that exclude private fields.
- Send the full record but ask partners not to store internal attributes.
Explanation
Correct Answer
C:The backend must decide what each caller may read; a gateway can additionally project the approved response schema or remove sensitive properties. Test direct backend access paths and policy bypasses to prevent accidental disclosure. Keep source data permissions narrow and verify the partner receives only the contractually approved values. Test a limited partner identity against a record containing sensitive attributes and verify the unauthorized fields are absent.
Incorrect Answers
A:TLS protects traffic in transit but the authorized receiver can still read all fields delivered. Apply business-level authorization and output minimization. A valid TLS channel can deliver unwanted personal fields perfectly securely to a user who should never receive them.
B:Renaming is obscurity, not access control. Unneeded private fields should not be returned at all. Field renaming changes presentation but does not restrict the data the partner API actually transfers.
D:A contractual expectation cannot undo disclosure of fields the partner has already received. Prevent delivery through authorization and response filtering. Once sensitive fields are delivered to a partner, later promises not to retain them cannot undo the disclosure.
Question 376
A Sentinel workspace contains historical telemetry whose approved retention period has ended, but a legal matter may require preserving some records. What should happen before any forced purge?
- Purge every table immediately because retention expiration always overrides legal preservation obligations.
- Leave all records permanently in interactive analytics without considering policy or cost.
- Verify effective retention rules, legal holds and authorized deletion scope, then use supported lifecycle controls.
- Change the dashboard's date picker so the old data is hidden from analysts.
Explanation
Correct Answer
C:Identify the exact table, time range and data owner, confirm whether preservation applies, and document the approved deletion decision. Prefer configured lifecycle expiration where possible; a forced purge can be difficult to reverse and should be narrowly authorized and auditable. Preserve relevant evidence if an investigation or hold is active. Check whether an archived copy or downstream export is subject to preservation before purging the only remaining evidence.
Incorrect Answers
A:A legal hold or other requirement may require preserving specific evidence even when ordinary retention would otherwise permit deletion. Confirm the authoritative lifecycle decision before irreversible operations. An investigation hold can supersede ordinary deletion schedules for the affected records, requiring specific preservation approval.
B:Indefinite retention can violate data-minimization obligations and increase expense. The correct decision depends on the approved retention schedule, exceptions and applicable holds. Unbounded interactive retention can violate minimization obligations and increase storage cost without helping active investigations.
D:A display filter does not remove stored data or meet a deletion obligation. It can also conceal records from legitimate investigation queries. A display-only filter does not remove underlying copies or change how much sensitive data the service retains.
Question 377
A SOC investigator is checking whether a sensitive SharePoint file was downloaded after an account compromise. Which evidence should they use in the supported Microsoft security experience?
- Only Azure VM CPU events, since downloads always trigger an infrastructure performance spike.
- Search applicable Microsoft Purview Audit activity through the supported Defender XDR experience with appropriate permissions.
- Ask the suspected user to produce a screenshot of their download history and accept it as the sole record.
- Assume any SharePoint link preview proves the entire file was downloaded.
Explanation
Correct Answer
B:Select the relevant SharePoint file and user activity, narrow the timeframe to the incident and inspect the audit record's action, account, object and source properties. Confirm auditing and retention coverage, then correlate sign-ins and other telemetry. Audit events describe recorded actions and may require interpretation before asserting actual data exfiltration. Correlate file operations with tenant audit retention and sign-ins, preserving uncertainty where the selected audit operation is ambiguous.
Incorrect Answers
A:SharePoint file access is a Microsoft 365 audit activity; virtual machine performance cannot reliably prove who downloaded which document. Endpoint CPU activity may occur for unrelated reasons and cannot attribute a particular SharePoint file download to a user.
C:Self-reported screenshots can omit actions or be altered. Use retained audit evidence and correlate it with other verified identity and device events. Screenshots may be incomplete and should not replace authenticated records produced by the Microsoft 365 audit service.
D:Different operations may generate different audit events; a preview, open and download should not be conflated without inspecting recorded operation details. Opening a preview or generating a link can have different audit semantics than explicitly downloading a file.
Question 378
An unusual Exchange mailbox forwarding rule appears shortly before a suspicious sign-in. What should an investigator determine using Purview Audit?
- Whether all mailbox rule changes are attacks, regardless of administrator intent.
- Only the mailbox size, since large mailboxes require automatic forwarding rules.
- Whether an AI assistant describes the rule as malicious in a fluent paragraph.
- Correlate the mailbox-rule audit activity with actor, timestamp, destination and contemporaneous sign-in evidence.
Explanation
Correct Answer
D:Use the applicable audit operation and recorded properties to identify who made the change, whether the destination is approved and whether the session aligns with suspicious authentication. Preserve original record references, investigate the account if needed and avoid declaring compromise from one isolated administrative action. Identify whether the same principal also had unexpected sign-in locations or device events during the relevant interval.
Incorrect Answers
A:Legitimate administrators and users can create forwarding rules. The activity is suspicious in context but needs identity and timing evidence before classification. A suspicious mailbox-rule change could be approved administration, so review the actor and destination before applying containment.
B:Mailbox capacity does not prove why or by whom a rule was created. Investigate the specific operation and associated identity. Mailbox storage size cannot establish whether a forwarding rule was created by an attacker or legitimate user.
C:Generated interpretation can be incorrect and is not a substitute for source audit records, sign-in evidence or policy review. Language-model confidence is not evidence of what Exchange or Purview Audit recorded about the change.
Question 379
A Purview Audit search returns no records for a reported sensitive operation. Before clearing the security alert, what should the analyst verify?
- Audit collection availability, the applicable retention period, permissions, filters and whether the operation produces the expected record.
- Delete the alert immediately because the query returned no rows.
- Enable anonymous SharePoint access so auditing can observe the request more easily.
- Increase the severity of unrelated endpoint alerts until Purview returns the expected event.
Explanation
Correct Answer
A:An empty result can arise from a query outside the stored time window, incorrect workload selection or missing audit privileges. Check the supported search surface and event types, broaden carefully within authorized scope and document any collection gap. Absence of an audit hit alone cannot prove the claimed action never occurred. Cross-check the search time zone and supported record type before concluding that no audit evidence exists.
Incorrect Answers
B:A missing result may be a telemetry or search issue. Closing the case without checking collection coverage could overlook a real incident. A zero-result query could reflect wrong filters or expired data rather than exoneration of the affected account.
C:Public access would create additional exposure and has no justification as an audit-search troubleshooting step. Preserve existing access restrictions. Public sharing would create a new access vulnerability and does nothing to improve historical audit event coverage.
D:Incident severity settings do not retroactively create missing audit records. Investigate the audit pipeline and query parameters directly. Incident alert thresholds and workload audit retention are separate configurations and cannot substitute for each other.
Question 380
An analyst has an endpoint malware alert but needs to reconstruct the associated user's preceding file access and mailbox actions. What additional source should be queried?
- Only the endpoint's boot duration, since that encodes all user activity in the tenant.
- Relevant Purview Audit records through the supported Defender XDR workflow, preserving event provenance.
- An unverified public web search of the user's name as the primary activity log.
- A new workbook with simulated example activity, treated as real logs.
Explanation
Correct Answer
B:Correlate recorded user actions, object identifiers, timestamps and client context with endpoint and sign-in telemetry. Verify event availability and permissions and distinguish observed activities from inferences about intent. Keep original record references so the resulting timeline can be audited rather than treating an AI-written summary as the evidence itself. Preserve object IDs and source event times so an investigator can reconstruct the timeline without relying on summary prose.
Incorrect Answers
A:Boot time is not a comprehensive record of Microsoft 365 user actions. Use workload-specific activity audit events for the relevant operations. An endpoint's boot duration cannot identify every SharePoint file operation or cloud mailbox rule associated with a user.
C:Public search results cannot establish which tenant files the account accessed and may introduce irrelevant personal information. Use authorized audit sources. Public social or search profiles do not contain the tenant's actual privileged data access audit trail.
D:Sample data is useful for query testing but cannot reconstruct historical user behavior. Preserve authentic retained audit events. Synthetic records are suitable for testing queries but cannot be represented as historical actions performed by the suspect.