Microsoft SC-500 Practice Test 21
Question 200
An appliance sends CEF logs, but the parsed Sentinel fields mix source and destination addresses because of malformed separators in the vendor payload. What should the team do?
- Declare every CEF event malicious and delete the records
- Increase the Azure subscription quota for VMs
- Validate the appliance CEF format, escaping, delimiters and supported vendor mapping, then test the parsed fields
- Turn off the workspace data retention schedule to force parser repair
Explanation
Correct Answer
C:CEF fields use a defined record structure and escaping conventions. Compare representative raw messages against the supported format, inspect appliance configuration and the AMA forwarding path, and confirm mapping into CommonSecurityLog. Correct the emitter or transformation and test that source and destination attributes remain distinct.
Incorrect Answers
A:Parsing errors do not establish that the appliance was attacked. Deleting all logs can discard valuable evidence and impede investigation. Validate format and source before assigning security meaning. Retain raw evidence.
B:Compute quota determines how many resources can be deployed, not the structure of device event strings. Increasing it cannot correct a malformed CEF payload or an incompatible parser. Review protocol compliance.
D:Retention governs how long records persist and does not alter the parser’s interpretation of delimiters. Removing retention safeguards might also violate compliance requirements. Fix the raw message schema. Preserve the audit trail.
Question 201
A finance application must retrieve a Key Vault secret without exposing the vault through a public endpoint. Clients use a peered virtual network. Which configuration meets the private-only requirement?
- Allow public access from the application's current outbound IP and keep the default vault endpoint.
- Enable the trusted Microsoft services bypass for every Azure application and remove private DNS links.
- Deploy a vault private endpoint, configure private DNS resolution and restrict the public network access setting.
- Assign the Key Vault Secrets User role and assume role assignment also makes the vault private.
Explanation
Correct Answer
C:A Key Vault private endpoint gives the application a private address for vault traffic. The team should link or forward the relevant privatelink DNS zone to the actual client networks and restrict public reachability. It must also grant the workload's identity appropriate vault permissions because network access alone does not authorize secrets. Verify both a successful app secret retrieval and a denied connection from an unauthorized network to prove the full boundary.
Incorrect Answers
A:An IP allowlist still leaves the service reachable through a public network path, and outbound addresses can change across scaled application instances. The stated design requires private reachability and a deliberate DNS path, not a fragile public exception. An app instance might also change its outbound IP during scale-out, leaving a stale exception that breaks production access.
B:The trusted-services exception is limited to documented supported services and scenarios; it is not a wildcard for arbitrary workloads. Removing the DNS path can cause clients to resolve the public endpoint or fail even when a private connection exists. An unsupported trusted-service bypass may never match the application's requests even when a Microsoft-hosted resource originated them.
D:The data-plane role addresses authorization for an identity but does not prevent a reachable public endpoint. To meet the network restriction, combine a private endpoint, working private DNS and public-access settings with least-privilege authorization. The caller could have the right role yet fail the network check, so compare both decisions separately during testing.
Question 202
An Azure App Service now receives a Key Vault firewall denial although its managed identity still has the correct secrets permission. What should the engineer establish first?
- Identify the application's actual network integration and outbound route used to reach the vault.
- Add the application hostname to a list of public IP address exceptions.
- Grant subscription Owner to the managed identity so it overrides the Key Vault firewall.
- Disable Key Vault diagnostic logs because logging can block secret retrieval.
Explanation
Correct Answer
A:Vault network rules evaluate where requests arrive, which can differ from the app's apparent inbound host address. Verify VNet integration, route-all configuration, NAT or private endpoint and actual DNS answer. Then change only the relevant network allowance rather than weakening the firewall because the identity role was already verified. Capture the resolved vault hostname and effective route from the failing instance rather than using inbound application addresses as evidence.
Incorrect Answers
B:A DNS hostname is not interchangeable with a verified outbound address or private endpoint configuration. The application may use multiple outbound addresses, and an arbitrary exception could unintentionally admit traffic unrelated to the workload. Inspect its true egress path first. Confirm any permitted source addresses actually belong to the approved client, and avoid admitting neighboring services unnecessarily.
C:Azure management permissions cannot magically bypass a vault's network controls. Escalating to Owner needlessly expands the application's privileges while leaving the actual connectivity failure unresolved. Use the existing scoped secret permission with correct routing. Document why increased management privilege cannot repair a firewall denial and test the unchanged identity after route correction.
D:Diagnostic settings record operations; they are not a substitute for network configuration or identity authorization. Turning off logs would remove useful evidence about denied access without addressing the underlying firewall or DNS restriction. Retain denied-operation records so investigators can distinguish network policy failures from a credential outage after remediation.
Question 203
A team enables the Key Vault firewall option to allow trusted Microsoft services. It expects an arbitrary custom Azure-hosted microservice to access the vault without a network path. What should be checked?
- Assume any resource with an Azure subscription automatically qualifies for the bypass.
- Create a broad public IP range allowance because all cloud services use the same addresses.
- Make the application's service principal a global administrator to trigger trusted-service treatment.
- Verify the particular service and operation are on Microsoft's documented trusted-services exception list.
Explanation
Correct Answer
D:Only supported services and qualifying scenarios can use the exception. Check Microsoft's eligibility documentation for the exact integration and verify identity permissions separately. If the custom service does not qualify, configure the approved private endpoint and DNS or narrowly scoped network path rather than assuming a cloud resource automatically bypasses rules. Review the exact Microsoft integration and access path, not just the vendor name, and test a disallowed service separately.
Incorrect Answers
A:The exception does not include every workload that happens to run in Azure. A custom application must use a documented supported network path, such as approved private connectivity or a verified outbound allow rule, while retaining data-plane authorization. The exception list has specific service integration rules, so a custom app cannot inherit eligibility merely from subscription ownership.
B:Azure services do not share one safely universal egress block for individual customer applications. Broad public allowances weaken the vault's boundary and still do not establish whether the purported trusted-service exception covers this operation. Even if a wide range temporarily works, it leaves the vault exposed to traffic outside the application's actual trust zone.
C:The bypass eligibility is based on documented service behavior, not whether a principal has a highly privileged tenant role. Elevating directory permissions would create significant exposure without solving the vault network restriction. Use a dedicated workload identity and check supported network bypass eligibility independently of that identity's directory roles.
Question 204
A workload on a second VNet gets a 403 while reaching a vault through its private endpoint. Its vault role assignment is already correct. Which investigation best distinguishes connectivity from authorization?
- Replace all role assignments with subscription Contributor and retry the same public DNS name.
- Check the client's resolved vault address, private DNS links, VNet route and vault network policy before altering roles.
- Delete the private endpoint and enable all public networks to see whether requests succeed.
- Disable soft delete on the vault so the service stops returning forbidden responses.
Explanation
Correct Answer
B:A 403 can result from network rules as well as missing identity permission. Resolve the actual vault hostname from the failing VNet, test private address reachability, inspect routing and applicable vault restrictions, and compare the request's authenticated identity. This isolates a broken private-network path without expanding already-adequate permissions. If one VNet resolves an address differently from another, investigate zone links or forwarders before changing security roles.
Incorrect Answers
A:Contributor is a management-plane role and may not grant the required vault data-plane access. Increasing its scope does not demonstrate whether the workload resolves the private endpoint or traverses an approved virtual-network route. A wider management role may still fail because vault data access and private name resolution follow different enforcement paths.
C:That test discards the required security boundary and may expose sensitive secrets to unintended networks. It is not a necessary diagnostic for a private endpoint: verify DNS, endpoint approval and routing within the approved topology. That destructive test could create a separate public access path while leaving the original private DNS defect uncorrected.
D:Soft delete controls recovery of deleted objects and does not diagnose private endpoint name resolution. Disabling recovery protection would weaken resilience while leaving access and routing errors unresolved. Soft delete and purge protection address accidental or malicious deletion, not basic connection routing or data-plane authorization.
Question 205
A payment application uses a Key Vault secret that expires next week. The replacement must be rolled out without interrupting production. What is the safest sequence?
- Monitor expiry, create the replacement secret version, update and validate consumers, then retire the old credential.
- Disable the current value immediately, then inform applications they must find a new version.
- Extend the secret's description field and assume its expiration is automatically renewed.
- Copy the secret into an unencrypted deployment variable so every service can keep using it.
Explanation
Correct Answer
A:Rotation is a coordinated service-and-client change. Alert early, distribute a new value through approved configuration, confirm that each dependent process authenticates correctly, and revoke the prior credential after a controlled overlap when supported. Record which version was used so failures can be investigated without logging the secret itself. Monitor expiry in advance, record the dependent application version and confirm no old client keeps presenting the retired value.
Incorrect Answers
B:Immediate revocation may be warranted for compromise but can interrupt healthy production consumers during routine expiry rotation. For planned renewal, prepare and validate the replacement before disabling the original unless the risk demands emergency containment. A planned rotation should include a tested overlap where the issuing service supports it; emergency revocation follows different risk criteria.
C:Metadata changes do not extend the lifetime of an external credential or update a relying service. The team must rotate the real credential, publish an appropriate secret version and verify client use before the old value expires. Credential expiration is normally imposed by its issuer or vault metadata, not a free-text label that applications ignore.
D:Distributing a static clear-text copy increases exposure and bypasses controlled vault renewal. Consumers should retrieve the approved value securely and be tested against the replacement, rather than embed a soon-to-expire secret in application artifacts. Any unencrypted environment copy can survive in crash reports or deployment artifacts long after the original vault version changes.
Question 206
A key-encryption key in Key Vault must rotate every 90 days. Stored data must remain decryptable after rotations. What configuration and validation are appropriate?
- Delete the old key versions as soon as each new version is created.
- Rotate the secret's display name and assume encrypted payloads use the renamed object.
- Configure the vault's key rotation policy and test version-aware encryption, unwrap and recovery behavior.
- Replace the vault key with a TLS certificate and require every storage client to use that certificate.
Explanation
Correct Answer
C:Rotation can create a new key version on the configured schedule, but consumers must know which version protected each object. Test new writes, decryption of old data, rewrapping when required, and alerting for policy failures. Maintain recoverability of older key versions under the approved retention policy rather than deleting them blindly. Test that fresh writes use the current version while old ciphertexts remain decryptable through retained approved key versions.
Incorrect Answers
A:Deleting versions that previously wrapped data encryption keys can make protected material unrecoverable when the application needs to unwrap it. Retention and access to historic versions require explicit cryptographic lifecycle planning. Keep historical key material recoverable as policy permits, especially for data wrapped under key-version-specific identifiers.
B:A display or label change is not a cryptographic key rotation. Ciphertexts and wrapped data keys may reference a key identifier and version that must remain available for supported decryption or rewrap workflows. An unchanged cryptographic key behind a different name leaves rotation requirements unmet and may break clients referencing its old identifier.
D:Certificates typically provide identity and asymmetric-key capabilities under their own lifecycle. They do not transparently replace an encryption key used by existing wrap or unwrap operations, and the conversion would not preserve ciphertext compatibility. A TLS identity certificate answers different trust questions and cannot unwrap existing encrypted application data without supported migration.
Question 207
A web app uses a Key Vault-managed TLS certificate that approaches expiration. What should the operator configure and verify?
- Treat the certificate as an ordinary symmetric encryption key and rotate its bytes without checking the bound hostname.
- Download the certificate's private key to every developer laptop as the default renewal workflow.
- Remove the certificate from the vault as soon as a new certificate request is submitted.
- Set appropriate renewal notifications or policy, obtain the new version and validate the consuming TLS binding.
Explanation
Correct Answer
D:Check renewal timing, issuer integration or approved manual issuance, chain validity, hostname, private-key permissions and application binding. Deploy the renewed certificate where the service actually terminates TLS and test connections before retiring the older version. A valid vault object alone does not prove the web endpoint has switched to it. Observe the certificate presented over an actual TLS connection, not merely a new version displayed inside Key Vault.
Incorrect Answers
A:TLS requires a valid certificate chain, host-name binding and supported key material. Rotating unrelated symmetric data would not renew the public-key certificate trusted by browsers or update the application's TLS endpoint. TLS clients validate hostnames and issuer chains, so replacing unrelated symmetric bytes would not renew the certificate they see.
B:Unnecessary private-key export expands compromise risk and may violate the certificate's export policy. Use supported certificate lifecycle integrations and controlled access, with private key use restricted to approved endpoints. Protect exportable private keys through narrow operational roles; prefer integrations that keep key material out of general developer machines.
C:Issuance can fail or take time, and the live endpoint may still reference the old version. Removing the working object before the replacement is issued, deployed and tested risks a TLS outage without improving security. Confirm successful issuance and live binding before retirement, because a vault renewal request is not an installed certificate.
Question 208
An access token for a partner API was accidentally committed to a public repository. The same value is stored in Key Vault. What is the correct response?
- Remove the displayed token from the repository and assume all downloaded copies have disappeared.
- Revoke the exposed token with its issuing service, deploy a replacement through the vault and review access logs.
- Enable Key Vault soft delete and keep the public token valid until it naturally expires.
- Rename the Key Vault secret and preserve the compromised value in the application configuration.
Explanation
Correct Answer
B:Containment depends on invalidating the real credential at the authority that honors it. Create a replacement, update authorized consumers securely, audit recent token use and clean repository history or artifacts as appropriate. Keep the recovery process auditable without reproducing secret values in tickets or logs. Confirm the partner system rejects the compromised token before completing the incident, and record any suspicious requests.
Incorrect Answers
A:Deleting a commit or changing the vault display does not revoke values already copied by others. The exposed token may remain in forks, caches or build artifacts; treat it as compromised and coordinate revocation and usage investigation. Review token access during the interval between repository publication and revocation because deletion cannot undo earlier downloads.
C:Soft delete protects recoverability of vault objects, not misuse of a leaked API token. Continuing to accept a known public credential creates a window for unauthorized partner API activity. Even a short remaining token lifetime can permit unauthorized calls, so emergency rotation must target the real issuer.
D:A new secret name changes the lookup label, not the credential itself. Applications and attackers could still present the same token to the partner API until the issuer revokes it. Rotating labels does not affect bearer token validity; the consuming API evaluates the presented credential rather than the vault path.
Question 209
Defender CSPM identifies a cloud access credential embedded in a published build package. Which remediation best addresses this finding?
- Suppress the finding permanently because the secret was inside a compiled artifact, not source code.
- Update the application's README to warn developers not to reuse the credential.
- Identify the leaked secret's owner and exposure path, revoke or rotate it, and remove secret injection from builds.
- Allow the credential unrestricted storage access so pipeline failures stop occurring.
Explanation
Correct Answer
C:Use the CSPM exposure evidence to locate the affected package and credential, verify which service accepts it, and coordinate rotation or revocation. Replace embedded credentials with managed identity or approved secret retrieval where applicable, then rebuild and rescan outputs to confirm the leak is no longer reproducible. Check both source and generated package for new copies, and ensure the replacement identity cannot access unnecessary resources.
Incorrect Answers
A:Build outputs can expose credentials to everyone able to download, unpack or inspect them. The packaging format does not protect a static token; validate the finding and remediate both the credential and the artifact distribution route. An attacker who obtains the released artifact can recover static strings regardless of whether developers originally wrote them in code.
B:Documentation is valuable for prevention but cannot invalidate an already exposed credential. Attackers may have obtained the artifact before the warning was written, so revocation and deployment fixes are required. Documentation may improve future habits, but revocation and fresh build provenance are necessary for the already exposed release.
D:An exposed credential should have reduced or revoked access, not broader privilege. Expanding authorization compounds potential damage while leaving the build artifact and distribution failure uncorrected. Broader access turns the same leak into a more severe incident; preserve a narrow production permission model.
Question 210
A CSPM secret scan flags an unfamiliar token pattern in an archived image. The team cannot tell whether it is active or which service owns it. What should happen first?
- Validate the finding, credential ownership, effective scope and exposed location before targeted containment.
- Revoke every tenant application credential regardless of its relationship to the artifact.
- Dismiss the issue solely because the image is labeled archived.
- Send the full detected token to an external troubleshooting forum for identification.
Explanation
Correct Answer
A:The string could be a real active secret, a revoked token or a noncredential sample. Inspect the asset, associated identity and exposure path using controlled procedures; urgently contain any confirmed active high-impact credential. This avoids blindly disabling unrelated business systems while still treating credible exposure as a material risk. Record the finding's artifact, exact resource association and observed exposure before making a material credential ownership decision.
Incorrect Answers
B:Mass revocation can cause broad outages and may leave the actual leaked credential untouched if it belongs to another service. Start with evidence linking the detected material to its issuer and owner, then act on affected credentials. An unscoped response could stop independent production applications and complicate incident investigation without reducing the confirmed exposure.
C:Archived packages can still be downloaded or copied, and a secret can remain valid after an application stops being deployed. Determine whether the value is real and active before deciding the incident is harmless. An archive still creates a reachable disclosure path if it can be downloaded or indexed by unauthorized principals.
D:Publishing a suspected secret to a new audience can create the very exposure under investigation. Validate identifiers and scope through authorized internal systems without copying sensitive values into public discussion spaces. Use secret-redacted identifiers and internal ownership lookup rather than transmitting the suspected full token to unapproved parties.