Microsoft SC-500 Practice Test 24
Question 230
An Azure VPN tunnel repeatedly drops after IKE negotiation. Application NSG rules already permit expected internal traffic. Which test should precede changing application permissions?
- Compare IKE phase proposals, rekey lifetimes, authentication secrets and tunnel diagnostics at both peers.
- Temporarily assign every VM a public IP address to bypass the VPN.
- Remove every NSG in both networks as the default troubleshooting step.
- Disable all gateway logs because heavy logging is known to cause key mismatches.
Explanation
Correct Answer
A:A tunnel may establish partially or fail at IPsec security association negotiation when algorithms, lifetime settings or authentication differ. Read the gateway connection status and both device logs, identify the failed phase, and correct the supported proposal mismatch. NSG permissions cannot repair an unestablished encrypted tunnel. Gather errors for the exact renegotiation event and verify both sides derive compatible security associations throughout the session.
Incorrect Answers
B:This changes the architecture and exposes workloads without diagnosing negotiation. Preserve the approved private site-to-site path while investigating the gateway and peer settings. Public IP workarounds can expose services outside the approved tunnel, risking data access before the root cause is resolved.
C:Broadly removing filters is risky and unlikely to affect key negotiation, which occurs at VPN endpoints. Application NSGs can be checked after tunnel establishment if internal forwarding still fails. A blocked internal application port is separate from a phase-two failure between VPN gateways and should be tested later.
D:Logs are needed to distinguish proposal, authentication and timeout problems. The mere existence of diagnostics is not proof that it caused rekey failure. Preserving IKE diagnostics helps identify proposal mismatches or secret errors without guessing based on application symptoms.
Question 231
Remote engineers need VPN access from laptops to internal Azure subnets. What is the appropriate VPN pattern and control?
- Create a site-to-site IPsec tunnel from every roaming laptop using the branch appliance shared key.
- Configure point-to-site VPN with supported per-user Entra authentication or certificate controls and scoped routes.
- Expose each private service on a public IP and rely only on port obscurity.
- Give all roaming engineers Azure Owner so the VPN client can discover the gateway.
Explanation
Correct Answer
B:Point-to-site connectivity is intended for remote clients. Select a supported VPN gateway protocol and authentication method, deliver approved client profiles, and restrict reachable networks through routing and authorization. Test device and user revocation as well as access to the specific applications engineers require. Validate a legitimate remote connection and a revoked user's failed login, including the intended split-tunnel routes.
Incorrect Answers
A:Site-to-site tunnels connect defined network peers; sharing branch credentials with every user device undermines accountability and does not provide a suitable remote-user identity experience. Point-to-site authentication should identify individual users, whereas a site-to-site shared credential is intended for managed network gateways.
C:Public endpoints expand attack surface and do not reproduce the private access requirement. A controlled remote access VPN or suitable Zero Trust private application service is safer. Internet publication can add multiple attack paths and does not enforce the organization's authorized VPN client and user policies.
D:Azure RBAC management rights do not configure encrypted connectivity from a laptop. Privileged Owner access is unrelated and excessively broad for routine remote application access. Management-plane Owner rights do not establish a secure user VPN session or authorize access to protected applications.
Question 232
A branch changes its public IP frequently and advertises several internal networks to Azure. Which routing approach should an architect evaluate?
- Manually append every historical branch public address to each VM's allowlist forever.
- Configure a static route to the branch's current DHCP public address on every workload server.
- Change the Azure subscription region whenever the branch public address changes.
- Use supported VPN gateway/peer configurations and BGP route exchange where applicable, validating changing endpoints.
Explanation
Correct Answer
D:Check the gateway SKU, connection features, supported dynamic peer addressing and BGP ASN/peer settings. Exchange intended internal prefixes rather than maintain stale static routes, and test failover or public-address changes. Dynamic routing cannot substitute for the correct VPN endpoint authentication and connection prerequisites. Check both the dynamic routing configuration and how the connection recognizes the current branch gateway endpoint.
Incorrect Answers
A:Obsolete IP exceptions accumulate exposure and do not manage the branch's changing internal routes. Network design should use supported VPN peer and dynamic routing capabilities. A stale allowlist can unintentionally preserve access after a branch changes networks or ownership of an IP range.
B:Hardcoding unstable external addresses across applications creates fragile configuration and does not establish how internal prefixes are advertised over the VPN tunnel. Maintaining peer endpoints and internal advertised routes requires a supported gateway configuration, not static per-host public addresses.
C:Cloud resource region is unrelated to branch-side dynamic address assignment. Migrating workloads would be costly, disruptive and leave the address-management issue intact. An Azure region change is unrelated to a branch IP lease and cannot ensure cryptographic peer identity.
Question 233
An on-premises subnet and Azure application VNet both use 10.5.0.0/16, causing VPN traffic to reach the wrong destination. What is the best correction?
- Add a new Any-Any NSG rule so packets choose the correct subnet.
- Set both virtual networks to the same DNS suffix and restart the VPN.
- Renumber one side or implement a supported address translation plan with validated routes and return paths.
- Disable packet encryption so the gateways can identify the target by inspecting application payloads.
Explanation
Correct Answer
C:Duplicate prefixes create an addressing and routing ambiguity across the tunnel. Design nonoverlapping address space or a documented NAT approach supported by the chosen gateway, update route advertisements and test each application path. Maintain existing security restrictions rather than opening the entire address range. Test each translated destination and return route with real internal services, preserving source identity and logging requirements.
Incorrect Answers
A:NSGs filter packets after routing decisions; allowing all traffic cannot disambiguate two identically addressed networks. It also weakens segmentation unrelated to the conflict. Security-group permits cannot fix overlapping 10.5.0.0/16 routes selected before the packet is evaluated by a destination firewall.
B:A DNS suffix affects names but not the identity of IP destination prefixes. Routing tables still cannot uniquely identify which network a 10.5.x.x address belongs to. Name lookup can succeed while packets still reach the wrong of two identically numbered networks.
D:Encryption is not the cause of duplicate CIDRs, and plaintext traffic exposes data in transit. Source and destination routing must be corrected without sacrificing IPsec protection. Removing encryption changes confidentiality without making the overlapping private destination addresses distinguishable to the routers.
Question 234
During a VPN high-availability exercise, the team wants the branch to keep reaching Azure if one tunnel fails. Which verification is most relevant?
- Test supported active-active gateway connections, independent tunnels, route preference and failover from both sides.
- Confirm that the VPN gateway's resource name includes the words 'high availability'.
- Make a backup of the firewall rule list and assume it will take over encryption automatically.
- Assign the VPN gateway service account an additional Azure Reader role.
Explanation
Correct Answer
A:A second gateway instance or tunnel is useful only when peers and routes can actually use the surviving path. Confirm supported high-availability topology, independent tunnel status, BGP or route switching, and successful application traffic after controlled failure. Document reconvergence and any asymmetric-return problems before accepting the design. Exercise one failed peer or tunnel while observing traffic continuity and route reconvergence from the actual branch applications.
Incorrect Answers
B:Labels cannot demonstrate surviving peer connectivity. Failover depends on physical/logical tunnel paths and actual forwarding decisions, which should be tested under a failed connection. A service name is administrative metadata; high availability must be proven through independent tunnel paths and forwarding.
C:A saved configuration file is useful for disaster recovery but is not an active VPN peer or alternate tunnel. Redundancy must be implemented and proven end to end. Configuration backups help restoration, but they do not automatically forward packets when the primary encrypted path fails.
D:Reader grants management visibility, not tunnel redundancy. Authentication, peer availability and route behavior determine whether a branch stays connected through failure. Reader permissions do not affect the gateway's IKE/IPsec redundancy, route selection or peer-device configuration.
Question 235
A remote user's point-to-site VPN authentication certificate expired. Security staff propose disabling certificate checks for all clients. What is the appropriate remediation?
- Disable encryption so an expired certificate is no longer required.
- Issue an approved renewed client certificate, update trust and revoke invalid credentials according to policy.
- Reuse another employee's VPN certificate until a new one arrives.
- Permit anonymous VPN access from the user's home IP as a permanent exception.
Explanation
Correct Answer
B:Validate the issuing CA and gateway authentication configuration, provide an appropriate replacement to the legitimate user, and confirm the client can establish a secure tunnel. Revoke a compromised certificate where applicable and remove expired credentials from use. The renewal should not weaken certificate validation for everyone else. Check the renewed client chain against the gateway's trusted authority and confirm the old certificate cannot be used if revoked.
Incorrect Answers
A:Removing confidentiality and identity verification contradicts the security purpose of the VPN. The team should repair the trusted credential chain, not bypass it. Allowing plaintext traffic could expose sensitive employee application sessions over untrusted networks rather than fixing certificate trust.
C:Shared client credentials prevent reliable attribution and may violate private-key handling policies. A separate approved certificate or supported user authentication should be provisioned for each authorized employee. A second employee's certificate would break attribution and could accidentally authorize an ex-employee after staff changes.
D:Residential IP addresses can change or be shared and are not identity proof. Anonymous exceptions weaken the access boundary and still fail to restore controlled certificate-based access. An IP-based exception cannot prove the client holds an approved individual certificate or is still employed.
Question 236
A site-to-site VPN is successfully encrypted, but the branch should reach only an inventory API, not sensitive HR services. What additional controls are needed?
- Trust the encrypted tunnel to permit any destination because only branch users can use it.
- Provide the branch with the full internal address map and rely on secrecy of service names.
- Configure segmented routes and network/application access rules for approved destinations, and test denied flows.
- Delete the site-to-site VPN and make the inventory API publicly writable.
Explanation
Correct Answer
C:Permit the branch's legitimate inventory API path while denying HR subnets through appropriate firewall, NSG or policy controls. Validate effective routes, source identity where applicable and application authorization. Test attempts to reach prohibited endpoints to prove the tunnel is not an unintended universal trust path. Verify a permitted API request as well as a prohibited HR TCP connection to make segmentation evidence meaningful.
Incorrect Answers
A:An encrypted channel protects traffic in transit; it does not establish application entitlement or restrict which private services a compromised branch device may contact. Enforcing only tunnel encryption cannot stop a compromised branch system from reaching unrelated internal payroll hosts.
B:Publishing or hiding an inventory does not enforce access. Hosts can connect by IP, so actual routing and security policies must limit reachability by destination and port. Inventory confidentiality and authorization boundaries separately; knowledge of destination IPs does not create an approved access role.
D:Publicly exposing a business API introduces a different and potentially wider risk, while removing the approved encrypted path. Enforce least privilege within the desired VPN topology instead. Opening a public write endpoint creates a broader exposure than the approved VPN and cannot establish least privilege.
Question 237
Employees need a legacy private TCP application while working remotely. The team wants identity-aware access without publishing the app's private server address to the internet. Which service design fits?
- Give the server a public IP and hide the login page behind a nonstandard TCP port.
- Add every employee's home IP to the corporate firewall and skip user authentication.
- Require all remote employees to join the office LAN through unrestricted site-to-site routing.
- Publish the supported private application through Microsoft Entra Private Access with appropriate connector and access policy.
Explanation
Correct Answer
D:Private Access can broker supported private-app access without directly exposing an internal server as a public endpoint. Define the correct app segment and connector reachability, then enforce Entra identity and Conditional Access where supported. Validate that users can reach only approved destinations and that unauthorized identities are denied. Test that a permitted user's client resolves the private app segment correctly and an unassigned identity cannot connect.
Incorrect Answers
A:A nonstandard port is not a security boundary; scanning can discover the endpoint. It exposes the legacy application instead of preserving its private address and identity-aware access. Network scans can find alternative public ports even when the URL is absent from search results or documentation.
B:Home networks are mutable and shared. Source IP does not establish the authorized person or device, and endless allowlists are difficult to revoke reliably. Dynamic consumer IP addresses do not correlate reliably with employees or compliance state, making revocation unsafe.
C:A broad network-level connection exposes more internal services than the specific application requires. The request calls for app-scoped, identity-aware access rather than unrestricted network reachability. Permitting wide network transit invites attempts to reach private servers not part of the approved business application.
Question 238
Two departments need different access to the same private finance application delivered through Entra Private Access. What should define their permissions?
- Verified Entra users or groups, application assignments and applicable Conditional Access controls.
- Their public ISP addresses alone, regardless of which person signs in.
- The department name typed into the private application's login form.
- One broad access policy that permits every tenant user to reach the finance port.
Explanation
Correct Answer
A:Authorize each departmental identity for the intended private resource, using verified group membership and any required MFA or device controls. Keep application back-end authorization in place too; connectivity permission alone should not make every user a finance administrator. Test a denied user and an authorized user to validate the rule boundaries. Enforce roles at the backend for data operations, because Private Access assignment grants connectivity rather than every finance action.
Incorrect Answers
B:Many people share provider addresses, and remote users frequently change networks. IP-based assumptions cannot replace identity and group authorization for department-specific private app access. Multiple employees may share one corporate NAT address, making per-person entitlements impossible to infer from network origin.
C:User-supplied text is not proof of department membership and can be forged. Evaluate authoritative identity claims rather than relying on an editable label. An attacker can write any department name unless membership is established through trusted authentication and directory controls.
D:A tenant-wide allow rule ignores the requirement that departments have distinct access. Assign scoped segments and authorized groups while retaining application-level permissions. Wide tenant access would let unrelated departments scan the finance service port before even passing application login.
Question 239
An Entra Private Access application is correctly assigned to users, but its private server is unreachable from the connector network. What should operations check?
- Disable Conditional Access for the whole tenant because the network connection failed.
- Verify connector placement, health, private DNS resolution and routing to the application server.
- Make the private server publicly reachable to bypass the connector indefinitely.
- Grant each user subscription Owner so they can access the private server.
Explanation
Correct Answer
B:The connector must reach the designated private resource over the intended network path. Check its service status, firewall/port restrictions, DNS answer and return routing before modifying who is authorized. Fixing a connector reachability problem is different from an Entra sign-in failure, so preserve working access policies during diagnosis. Test the connector host's name resolution and TCP reachability to the precise private application's listening port.
Incorrect Answers
A:Identity policy changes cannot establish connectivity between a connector and a private server. Such an action would weaken unrelated applications while leaving network reachability unresolved. Preserve Conditional Access until sign-in logs show a genuine policy failure; a connector error is a distinct fault domain.
C:Public exposure defeats the private-access objective and can create additional attack surface. Repair connector routing or deploy an appropriate connector group instead. Exposing a public path to bypass a failed private connector creates an avoidable alternative route for attackers.
D:Subscription management privileges do not cause packets to traverse a broken connector path. Giving remote staff Owner would be unnecessary, risky and unrelated to the connection failure. Azure subscription Owner does not help the connector resolve or route packets to a private server.
Question 240
The Global Secure Access client connects, but a private app FQDN resolves incorrectly and never reaches its connector. Which configuration should be examined?
- The end user's screen resolution and browser zoom.
- The number of Microsoft Sentinel workbooks available to the user.
- The defined private-app FQDN/segment, client traffic forwarding and private-side DNS resolution.
- The Azure Key Vault certificate rotation policy for unrelated application secrets.
Explanation
Correct Answer
C:Check that the requested host matches a published application definition and that the client and connector follow supported DNS and traffic handling. Verify the connector can resolve and reach the server privately, then test user access. Correct name matching instead of broadening permissions or exposing a public endpoint. Compare the entered hostname with configured app segments, including wildcards and supported port definitions, before changing grants.
Incorrect Answers
A:Visual display settings do not determine how private application names resolve or which app segment is intercepted. Investigate FQDN definitions and DNS handling. Screen resolution only changes local display and cannot influence the client traffic forwarding policy for a specific FQDN.
B:Sentinel reporting content is unrelated to the traffic-forwarding definition for a private TCP application. A workbook count cannot explain the DNS failure. Sentinel reporting content has no role in resolving a private application hostname from the connector or client.
D:A disconnected vault rotation setting has no demonstrated link to this hostname resolution failure. Use the access service's client, connector and DNS evidence first. An unrelated certificate renewal policy cannot fix a private application name that the client fails to match.