Microsoft SC-500 Practice Test 15
Question 140
Developers need to initiate outbound SSH connections from a controlled admin subnet to test machines, but external hosts must never initiate SSH back into the admin subnet. Which design is correct?
- Create only a single NSG inbound allow for TCP 22 from Internet
- Allow the required outbound SSH flows while separately denying unauthorized new inbound management connections
- Assume a single outbound deny automatically prevents all inbound SSH attempts
- Use a DNS conditional forwarder to block port 22 instead of network rules
Explanation
Correct Answer
B:NSG rules have separate inbound and outbound directions, and established return traffic is handled according to stateful behavior. Allow the required outbound initiation to approved targets and deny unauthorized inbound initiation, checking effective rules and any additional firewall or routing constraints. Test both flows to verify that the intended asymmetry holds.
Incorrect Answers
A:An Internet-wide inbound SSH allow would directly violate the requirement not to accept connections initiated by external hosts. It also increases brute-force exposure. Restrict the inbound direction and source range rather than expose the subnet.
C:An outbound deny does not express a deliberate allow for required outbound SSH and does not substitute for inbound policy. The administrator needs one directional capability while the opposite initiation direction remains restricted. Configure both sets of rules explicitly.
D:DNS resolution determines names and addresses, not whether a TCP connection to port 22 is authorized. Even an unresolved name could be bypassed using an IP address. Use network security rules and approved endpoints to control SSH access.
Question 141
A network security team manages application groups across several Azure VNets and wants NSG rules to use ASGs consistently. One engineer proposes associating a NIC in an unrelated virtual network with the same ASG. What should be validated?
- Only the VM naming convention; ASGs ignore resource placement
- That the NIC and ASG satisfy supported virtual network and region membership requirements before association
- That all VMs are public-IP enabled
- That the ASG contains the same password as the NIC identity
Explanation
Correct Answer
B:Application security groups are associated with supported NICs and used by NSGs under documented placement constraints. Check that the intended members can legally participate in the same group and that NSG rules reference the expected ASG. If the architecture spans incompatible networks, design separate group/rule targets rather than force an invalid association.
Incorrect Answers
A:Names help identify resources but do not override how Azure validates ASG associations. A named security group is a supported network-policy object with membership constraints, not a tag that can attach to any resource regardless of placement.
C:Public addressing is unrelated to whether an ASG is an eligible NSG rule target. Publishing IP addresses could add unnecessary attack surface and would not repair a membership constraint. Keep application traffic private where possible.
D:An ASG is not a password or identity provider, and matching secrets do not make two NICs eligible members. Security rules depend on supported associations and traffic attributes. Inspect resource membership and network design instead of credential strings.
Question 142
An HTTPS connection fails between two private application tiers. Network Watcher shows the relevant subnet and NIC NSG rules allow the flow. What should engineers investigate before adding another NSG allow?
- The VM guest firewall, effective routes and any intermediate firewall or service access policy
- Only the username of the person viewing the Azure portal
- A different NSG rule for unrelated outbound DNS queries
- The time a developer last renamed the subnet
Explanation
Correct Answer
A:Network access can still fail after NSG filtering because a guest operating-system firewall, user-defined route, virtual appliance, listener binding or intermediate security service denies the connection. Inspect connection diagnostics, route tables and host logs for the actual source and destination. A redundant NSG allow cannot solve a problem in another layer.
Incorrect Answers
B:Portal operator identity affects management permissions but does not generally determine whether two workloads can establish the described application TCP connection. The runtime packet path needs inspection independently of who opened the dashboard.
C:DNS is relevant when name resolution fails, but the scenario already identifies a particular HTTPS flow with known NSG decisions. An unrelated DNS rule would not address a dropped packet farther along the route. Follow the observed connection path.
D:Renaming a subnet is an administrative event, not a diagnostic of guest firewall or routing behavior. Network path verification should use effective routes and endpoints, not naming history. Diagnose packet drops.
Question 143
A central network team needs the same inbound management-port restrictions across dozens of Azure spoke VNets in several regions. Individual NSGs differ between teams. Which centralized mechanism best supports this baseline?
- Ask every VM owner to copy a local firewall rule by email
- Put one broad internet-facing NSG on a single hub VM
- Use Azure Virtual Network Manager security admin configuration applied to the intended network groups and deployed regions
- Change VNet DNS servers to enforce management-port policy
Explanation
Correct Answer
C:Azure Virtual Network Manager can deploy security admin rules to selected network groups across supported regions within its management scope. This provides central enforcement before local NSGs while allowing deliberate exceptions according to policy. Validate group membership, deployment status and effective traffic behavior after rollout.
Incorrect Answers
A:Manual copies create inconsistent priorities and may leave new or reorganized VNets unprotected. The team needs one centrally maintained policy with verifiable deployment scope rather than relying on dozens of independent edits.
B:A security group on one hub machine does not automatically enforce inbound restrictions on every spoke virtual network. It might protect traffic traversing that particular instance but not all east-west or direct flows. Use a network-wide policy mechanism.
D:DNS controls name resolution, not the authorization of inbound RDP or SSH packets. Attackers or administrators can use IP addresses directly. Security admin rules and NSGs, rather than resolver settings, govern these network flows.
Question 144
A company wants to block inbound SSH from the public Internet across selected VNets even when an application owner has an NSG allow for port 22. Which Azure Virtual Network Manager rule behavior enforces that baseline?
- A security admin Deny rule evaluated before downstream NSGs
- A security admin Allow rule that continues to NSG evaluation
- A higher-numbered NSG allow rule on every VM
- A security admin Always Allow rule for all inbound management traffic
Explanation
Correct Answer
A:When an applicable security admin rule denies a matching flow, Azure blocks it before the lower-priority NSG stage. Deploy it through the correct network group and region, and test exceptions carefully. This prevents local application teams from overriding the prohibited SSH access with ordinary NSG allow entries.
Incorrect Answers
B:A security admin Allow rule does not produce the required central block; it passes matching traffic to NSG evaluation. A local allow could then permit inbound SSH. Use the Deny action for a mandatory organization-wide prohibition.
C:NSG rules use their own priorities and cannot override a matching higher-level security admin Deny. More allows at the NIC or subnet may increase noise but do not change this precedence. A central rule is appropriate.
D:Always Allow terminates evaluation by permitting matching traffic, contrary to the requirement to block public SSH. It can bypass downstream NSGs and therefore increase exposure if used for broad internet management.
Question 145
New application VNets are created weekly under resource groups with a designated policy tag. A security baseline currently relies on administrators manually adding each VNet to the correct Virtual Network Manager group. What should be evaluated?
- Delete the tags so policy cannot include new VNets accidentally
- Use dynamic network-group membership based on supported conditions and validate that newly created VNets join the correct group
- Add a fixed allow-all rule to every new VNet before any security baseline is applied
- Create one public VPN connection for each new VNet to enforce the tag automatically
Explanation
Correct Answer
B:Azure Virtual Network Manager supports dynamically populated network groups using defined policy conditions. Configure a rule matching the intended VNet properties, deploy the security configuration to the group and test new resources and changes in membership. Account for evaluation delay and governance of the selector so mis-tagged networks do not escape controls.
Incorrect Answers
A:Removing metadata would make classification and policy ownership harder. The tag is a useful selector when used through supported Azure Policy conditions and verified resource state. Data cleanup does not automate membership.
C:An unrestricted network rule would weaken defenses at the moment of resource creation. The objective is automatic inclusion in a restricted baseline, not a temporary open state. Use supported policy-driven membership and controlled deployment.
D:A VPN connection creates network connectivity, not automatic policy group membership. It may increase topology complexity and cost without addressing the membership gap. Use conditions and security administration, not unnecessary gateways.
Question 146
A central security configuration should apply only to production VNets in two approved regions. An engineer plans to deploy it globally to every group to avoid missing resources. Which deployment choice best meets the stated boundary?
- Enforce the configuration at tenant root for all networks without checking business ownership
- Put unrelated development VNets into the production group before deployment
- Scope network group membership and configuration deployment to the intended production VNets and regions
- Remove the security configuration from its network manager and use default allow rules
Explanation
Correct Answer
C:Security admin configurations are deployed to selected network groups in specified regions. Validate the network manager scope, group membership, regions and deployment status before rollout. This lets production receive its required baseline without accidentally modifying excluded VNets and provides a verifiable audit trail for the chosen target set.
Incorrect Answers
A:Tenant-wide application could impose inappropriate restrictions on development systems and violate the explicit regional scope. Broader is not automatically safer when policies differ by environment. Determine targeted resources and authorized geography first.
B:Merging development and production groups defeats segmentation and can create unintended connectivity or policy conflicts. Keep membership aligned with the business and regulatory scope rather than manipulating it for convenience.
D:Deleting the intended security configuration would remove central enforcement and make the defined production baseline harder to maintain. Preserve the configuration and choose a precise deployment boundary. Preserve deliberate exclusions.
Question 147
A central Virtual Network Manager policy denies most inbound SSH, but a designated incident-response network must still reach servers on port 22 subject to local NSGs. How should this exception be expressed?
- Add an unconditional Always Allow rule for SSH from every Internet address
- Create a higher-priority scoped security admin Allow rule for the authorized management source/group, then retain downstream NSG evaluation
- Ask incident responders to disable the network manager during emergencies
- Add a local NSG allow while retaining a matching central Deny that takes precedence
Explanation
Correct Answer
B:A higher-priority security admin Allow can match an authorized management flow before a broader lower-priority Deny, and normal NSG policy can still apply. Use explicit management source conditions, verify the rule’s priority and deployment scope, and test both approved and unapproved SSH sources to avoid exposing the fleet.
Incorrect Answers
A:An Internet-wide Always Allow could bypass local NSG restrictions and greatly exceed the narrow emergency access need. The exception must be constrained by source, destination and appropriate network group membership.
C:Disabling centralized security during incidents risks removing unrelated safeguards. A documented narrow exception is more reliable and auditable than broad operational bypass, especially under attack conditions. Keep the incident controls enforced and observable.
D:An ordinary NSG allow cannot override a matching upstream security admin Deny because the Deny terminates evaluation first. The exception must be represented at the central policy level with correct precedence.
Question 148
A security team updated a Virtual Network Manager security admin policy, but two VNets still show the old restrictions. Local NSG entries look unchanged. What should the team check before changing each NSG?
- Only the VM operating-system patch level
- Whether the security configuration was deployed to those regions, and whether the VNets belong to the targeted network group
- Update matching local NSG rules in the two affected VNets without confirming security admin policy deployment or network-group membership
- The default DNS time-to-live for the virtual network
Explanation
Correct Answer
B:Virtual Network Manager separates defining a security configuration from deploying it to target network groups and regions. Confirm each VNet’s actual membership, the deployment’s region and status, and propagation. Once the policy is confirmed active, inspect effective security behavior. Changing local NSGs first may not affect an upstream rule and can weaken protections.
Incorrect Answers
A:Guest patching can be important for server health but does not prove a central network-policy deployment. The reported difference across VNets points first to the targeted configuration and membership. Confirm deployment scope.
C:Local NSGs are evaluated after applicable security admin rules, so changing them may not explain why a centralized configuration was never applied. First check whether the Virtual Network Manager policy was deployed to the required region and targets the affected VNets. Changing application rules prematurely can cause configuration drift without fixing the assignment gap.
D:DNS caching can influence name resolution but does not determine whether a security admin configuration applies to a VNet. Inspect the manager deployment and group, not resolver TTL. Check active assignments.
Question 149
A central network administrator wants to permit a category of partner traffic under Azure Virtual Network Manager, while application teams retain the ability to deny that traffic with their own NSGs. Which security admin action is required?
- Always Allow, so no local NSG can block the flow
- Deny, with the assumption that an NSG can later override it
- Allow, which permits downstream NSG evaluation to continue
- Disable all security admin rules for the partner network
Explanation
Correct Answer
C:The Allow action in a security admin configuration lets traffic continue to normal NSG evaluation rather than permanently overriding it. An app team can then restrict the partner source or port according to its local risk. Confirm the higher-priority central rules and the intended network group before validating packet flow.
Incorrect Answers
A:Always Allow is a terminal action: applicable NSG rules are bypassed. It would remove the application team’s ability to apply its stricter policy and therefore conflict with the requirement. That would negate the intended ability of each application team to reject the partner connection.
B:A Deny rule stops matching traffic before NSG evaluation; an application NSG cannot reverse that central decision. It would not create a selectively permitted flow. Central denial remains authoritative before NSGs.
D:Disabling central rules might restore local control but also remove other enterprise controls. The user asked for a centrally expressed category that local NSGs can still filter. Choose Allow instead of deleting the whole configuration.
Question 150
A business has separate production and research VNet populations with conflicting security requirements. Both are currently in a broadly tagged Virtual Network Manager group, causing policy exceptions to affect the wrong networks. What is the best correction?
- Keep one broad group and choose random priorities for conflicting rules
- Create distinct membership groups with deliberate scope and precedence-aware security configurations
- Remove all central controls and allow teams to configure arbitrary local rules
- Use the same unrestricted Always Allow for both environments
Explanation
Correct Answer
B:Create network groups that accurately reflect production and research ownership, optionally using supported dynamic conditions. Apply appropriate security configurations to each group and review interactions where memberships overlap. Test both authorized and unauthorized flows to ensure exceptions remain confined to the intended network population. Record rule precedence.
Incorrect Answers
A:Random priorities make enforcement unpredictable and can create broad exceptions. The underlying problem is that distinct business policies were combined under one group. Separate their policy scopes first and give rules intentional, tested precedence.
C:Abandoning centralized controls would not ensure a consistent enterprise security baseline and could leave newly created networks unprotected. Central administration can express different policies when group targeting is correct. Apply differentiated baselines.
D:Always Allow bypasses NSG filtering for matched flows and is not an appropriate blanket compromise between environments with conflicting security requirements. It could open sensitive production paths that research systems should not reach.