Microsoft SC-500 Practice Test 4
Question 30
Only two approved application subnets may reach a storage account. Which initial firewall policy is most appropriate?
- Allow all networks, then depend on the application code not to reveal credentials
- Add each subnet to the storage firewall and set the default network action to deny
- Disable all application logging so blocked clients cannot reveal the account
- Give the subnets Azure subscription Owner role rather than configure network rules
Explanation
Correct Answer
B:Storage network rules can restrict which supported networks reach the service. Configure default deny, authorize the precise virtual networks/subnets through the applicable service endpoint or private access design, and test both allowed and disallowed sources. Confirm application identity permissions separately because firewall admission is not equivalent to data authorization.
Incorrect Answers
A:Credential secrecy does not limit unwanted network exposure. The account can still receive probes and unauthorized requests from elsewhere. The firewall policy should explicitly limit permitted source networks and complement access authorization.
C:Logging is useful for investigations and for detecting policy errors, and disabling it does not prevent connections. Preserve required diagnostics while limiting inbound access through the correct firewall and network configuration.
D:RBAC Owner grants management privileges to a principal; network subnets are not users that receive Azure roles. Even correctly assigned RBAC does not substitute for an intended network filter. Apply storage network rules and separate data-plane identities.
Question 31
An Azure application is denied by a storage account IP firewall after its outbound traffic is routed through a new NAT service. What should the engineer verify first?
- Whether the storage blob container has an appealing name
- Whether the user's sign-in password contains a special character
- The application's actual egress public IP and current firewall allow rules
- Whether at-rest encryption is enabled on every object
Explanation
Correct Answer
C:NAT or routing changes can alter the egress public IP seen by Azure Storage. Confirm the true source address from appropriate diagnostic or network evidence, compare it with allowed IP rules, and update a narrow rule if justified. Also verify whether a virtual network or private endpoint path is more appropriate for long-term access.
Incorrect Answers
A:Names do not explain a firewall decision because the account evaluates source network information rather than semantic names. Inspect the request network path, actual egress address and policy, not its storage naming or displayed container label.
B:Authentication can fail independently, but the scenario identifies an IP firewall denial after a routing change. Diagnose the observed source address before rotating credentials or changing identity policy. A valid password cannot override a network restriction.
D:Encryption at rest does not determine whether an IP address is permitted through a network firewall. The account may be correctly encrypted yet refuse a request from an unapproved egress address. Keep encryption controls and troubleshoot network admission separately.
Question 32
A VM in a peered VNet should use the private endpoint of a storage account. It still resolves the Blob hostname to a public IP. What should be inspected?
- Only the storage account lifecycle deletion policy
- Only the VM operating system activation status
- Only the application's OAuth permission grant
- The private DNS zone record, VNet links and DNS resolver path
Explanation
Correct Answer
D:Private endpoint connectivity normally requires clients to resolve the service FQDN through an appropriate private DNS zone or corporate resolver. Confirm the correct subresource zone, record, VNet links and forwarding path from the peered network, then test traffic. A private endpoint alone does not guarantee every client uses it.
Incorrect Answers
A:Lifecycle deletion determines when old data is removed, not whether the private endpoint hostname resolves to the correct private address. Check private DNS and endpoint configuration instead of altering retention, which may remove needed historical data.
B:An unactivated operating system might affect operations, but it does not explain consistent public resolution for a specific storage hostname. DNS is the identified mismatch. Verify resolution from the affected workload network.
C:OAuth permissions determine whether the identity can read storage data once it reaches the service. They do not create the private endpoint DNS record. Fix name resolution before making unrelated authorization changes.
Question 33
A storage account has IP firewall rules and virtual network service endpoint rules. A client unexpectedly uses a public route from a changed subnet. Which action is best?
- Identify the actual endpoint and subnet path, then evaluate the applicable network rule
- Disable both firewall rule types and rely on the application's identity
- Increase the SAS validity period to overcome the routing problem
- Change the account replication option to improve IP filtering
Explanation
Correct Answer
A:Service endpoint and IP-based firewall rules apply according to the request network path and supported service behavior. Validate which subnet, route, endpoint and source identity the client actually uses, then correct a narrow network configuration. Avoid changing unrelated authentication or storage durability settings while diagnosing an access-policy mismatch.
Incorrect Answers
B:Disabling network restrictions would remove defense in depth without establishing why access failed. Identity is required for data authorization but does not implement the organization's network admission requirement. Repair the intended path and keep explicit firewall boundaries.
C:SAS lifetime defines when a grant expires and does not alter the client network or firewall rule selection. Extending it may increase credential exposure while leaving the blocked route unchanged. Diagnose endpoint reachability first.
D:Replication affects data durability and geographic copies, not how source IP or subnet security rules are selected for an access request. Changing it creates cost and operational risk without addressing the firewall condition.
Question 34
A Microsoft-managed service cannot reach a restricted storage account. The team proposes enabling Allow trusted Microsoft services on the storage firewall. Which verification is necessary?
- Assume every Azure-hosted resource qualifies and enable the exception globally
- Check whether the exact service is documented as trusted and what access it still requires
- Grant the service an unrelated Security Reader role in Microsoft Entra
- Remove firewall restrictions from every storage account in the subscription
Explanation
Correct Answer
B:Validate that the caller and scenario appear in Azure Storage trusted-service guidance, and check whether additional identity or resource instance permissions are required. If unsupported, use an approved private connectivity or explicit network rule instead. The goal is a narrow functional exception, not unconditional trust in all platform traffic.
Incorrect Answers
A:Trusted-service exceptions cover only specifically supported Microsoft services and workflows. Azure hosting alone does not guarantee eligibility. Confirm documented behavior and maintain separate authorization. Blindly broadening the exception can expose resources beyond the intended integration.
C:Security Reader is a directory/security visibility role, not a storage firewall bypass or an automatic Blob Data Reader assignment. The request may need data-plane authorization after network access is resolved. Diagnose both controls independently.
D:Global firewall removal significantly increases attack surface and is unjustified by one blocked service. Use the specific documented service exception or supported private network architecture and validate connectivity from that workload.
Question 35
Untrusted users upload documents into Blob Storage, and the processing application must avoid opening malware. Which Azure control should be added?
- Allow all uploaded files into production because Blob Storage encrypts them
- Enable Microsoft Defender for Storage malware scanning and act on scan outcomes
- Only classify each filename by its extension, then trust the file contents
- Delete all upload logs so malicious files are not discoverable
Explanation
Correct Answer
B:Defender for Storage provides supported malware scanning for Blob uploads. Enable the correct feature, evaluate scan status and event delivery, and quarantine or hold suspicious files before downstream processing. Test timeout and unsupported-file conditions; a successful upload is not the same as a clean scan result.
Incorrect Answers
A:Encryption at rest protects stored content but does not determine whether an uploaded executable or document is malicious. The application still needs malware classification and a safe quarantine/processing workflow before consuming untrusted files, particularly when automated parsers run with privileged identities.
C:Extensions can be renamed and often do not accurately describe content. Filename screening alone cannot detect embedded malicious code or active content. Use malware detection and secure downstream parsers rather than making trust decisions from a suffix.
D:Removing logs reduces the ability to investigate upload origin and detection errors. Keep appropriate audit data with privacy controls and implement malware scanning before the uploaded document reaches sensitive processing systems.
Question 36
Defender for Storage reports unusually large and frequent Blob reads from a service identity. What should incident responders do first?
- Delete all account backups so attackers cannot access historical copies
- Restart every Azure VM in the region regardless of connection
- Ignore the alert because high throughput always indicates healthy performance
- Investigate the alert with Storage access logs and identity context, then contain confirmed misuse
Explanation
Correct Answer
D:Start with the relevant Defender alert evidence, storage diagnostic logs, identity sign-ins or workload credentials, and known jobs. Determine whether the volume and destinations are authorized, then revoke or restrict compromised access as justified. Record impacted blobs and incident scope instead of automatically treating every large read as malicious.
Incorrect Answers
A:Deleting backups would damage recoverability and may remove crucial evidence. The suspicious activity concerns possible exfiltration through a storage identity. Preserve relevant logs and recoverability while investigating and containing the actual exposure.
B:Restarting unrelated virtual machines does not revoke storage credentials or explain Blob read activity. A broad reboot could interrupt business operations without reducing exfiltration risk. Focus on the service identity, requests and network sources involved.
C:Large reads can be legitimate batch activity, but a Defender alert indicates behavior worth verifying. Throughput alone cannot distinguish benign backup jobs from unauthorized data transfer. Correlate the identity and object-access pattern with expected workload behavior.
Question 37
A Logic App imports files whenever BlobCreated fires. Defender for Storage malware scanning completes separately. Select TWO safeguards that prevent untrusted uploads from reaching sensitive processing.
- Require a clean malware scan result for the exact blob version before processing it
- Assume the upload event means the file has already passed every security scan
- Ignore the scan results if the sender has an Azure Reader role
- Use the document's filename length as a substitute for a scan verdict
- Hold or quarantine malicious, pending, or inconclusive scan outcomes pending approved handling
Explanation
Correct Answers
A:A BlobCreated notification shows that a file was stored, not that it has been inspected for malware. Require a valid clean Defender for Storage scan result matching the specific blob and version before promotion. The workflow must correlate the event and scan verdict, handle delays and errors, and ensure a later object overwrite does not reuse a prior clean result.
E:A pipeline must not treat missing, pending, unsupported or malicious scan results as if they were clean. Hold the object in a restricted state or quarantine it, applying a defined investigation and release policy. This protects downstream systems even when a scan never completes or an attacker repeatedly resubmits files. Record why each blocked file was rejected or released.
Incorrect Answers
B:Malware scanning is a distinct analysis process that can complete after the upload event. A BlobCreated trigger does not by itself certify content. Wait for the supported scan signal and apply policy to clean, suspicious and unknown outcomes.
C:Reader is a management authorization role and does not prove that an uploaded file is benign. Even authenticated sources can be compromised. Trust the scan and file-handling policy, not an unrelated role title.
D:Filename length has no meaningful relationship to embedded malware. An attacker can choose any length for a harmful file. Use actual content scanning and quarantine decisions before promoting untrusted uploads.
Question 38
Multiple subscriptions appear to be billed for overlapping storage threat-protection features. The security team wants to reduce unnecessary spending without losing coverage. What should it review?
- Disable every Defender plan immediately to guarantee the lowest bill
- Increase all storage account throughput quotas so scanning appears cheaper
- Examine the enabled Defender for Storage plan scopes and feature settings before changing them
- Grant application teams permanent subscription Owner so they can ignore billing alerts
Explanation
Correct Answer
C:Defender protection plans and their optional features can be scoped and priced according to supported configurations. Inventory covered storage accounts, subscriptions and features, identify any unintended overlap, and change only the confirmed redundancy. Verify alert and scanning coverage afterward so savings do not create a silent security gap.
Incorrect Answers
A:Disabling plans would remove malware and threat detection without understanding whether duplication is real. Cost changes should preserve required coverage and compliance. Investigate the actual configuration rather than respond blindly to the invoice.
B:Throughput quota does not determine whether a subscription is enabling redundant protection. Raising quota may alter availability or cost characteristics without correcting plan scope. Evaluate the Defender feature selections and billing configuration instead.
D:Owner role has broad infrastructure privileges and does not remediate duplicate licensing. Expanding permanent access worsens security posture. Assign appropriate billing or security read permissions and use configuration evidence for the cost investigation.
Question 39
A reporting service needs to download blobs but must not modify or delete them. It runs with a managed identity. Which Azure RBAC role should be assigned?
- Subscription Owner, because it includes every storage permission
- Security Reader, because it can read security alerts
- Storage Blob Data Reader scoped to the required storage resource
- Virtual Machine Contributor because the client runs on a VM
Explanation
Correct Answer
C:Storage Blob Data Reader permits the required read operations on Blob data when assigned at an appropriate scope. Give it to the application managed identity only for the account or container it uses, then test access and confirm writes remain denied. Management-plane Reader alone does not automatically provide Blob data reads.
Incorrect Answers
A:Subscription Owner provides extensive management authority and exceeds the read-only Blob requirement. It also introduces avoidable risk if the managed identity is compromised. A specific storage data-plane role is a better fit.
B:Security Reader is intended for viewing certain security information, not Blob object content. Data-plane authorization must match the storage service and operation. Choose a storage-specific read role and validate actual blob access.
D:VM Contributor governs management of virtual machines and does not provide Blob data access. It could grant unrelated compute operations without enabling the requested download. Assign storage data-plane permissions to the workload principal.
Question 40
A customer needs to download one private Blob file for the next 30 minutes without receiving a storage account key. Which Azure Storage authorization is a strong fit?
- Create a user delegation SAS with only required read permission and short expiration
- Share the storage account master key for one hour by email
- Enable anonymous public access to the entire container
- Grant the customer permanent Storage Blob Data Owner for the subscription
Explanation
Correct Answer
A:A user delegation SAS, where supported, can be authorized through Microsoft Entra credentials and grant limited Blob access without distributing the account key. Restrict the resource, read permission, validity window and HTTPS usage as appropriate. Deliver the token through a controlled channel and review expiration and revocation options before use.
Incorrect Answers
B:An account key provides far broader authority than a single time-bounded download and can be reused outside the intended request. Email delivery compounds exposure. Use a scoped short-lived access grant instead.
C:Anonymous container access makes the resource readable by anyone with the URL while public access remains configured. It does not enforce the named customer's permission or expiry requirement. Retain private container settings.
D:A permanent high-privilege Blob Data Owner assignment greatly exceeds a 30-minute read operation and expands the potential blast radius. Use a temporary scoped grant with limited actions and expiry instead.