Tüm alıştırma soruları

1252 soru

Soru 781Soru

You plan to deploy an Azure Firewall instance. You need to create a dedicated subnet for the firewall within an existing VNet. Which two configuration requirements must be met for this subnet? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: The subnet must be named AzureFirewallSubnet.; The subnet address prefix must be /26/26 or larger.

Cevap

The dedicated subnet hosting Azure Firewall must be named exactly 'AzureFirewallSubnet' and must have an address prefix of /26/26 or larger.
For a successful Azure Firewall deployment, the firewall subnet must be named exactly 'AzureFirewallSubnet' and have an IP address range of /26/26 or larger to accommodate firewall scaling and management.

Adım Adım Çözüm

1
Identify the naming requirement for the Azure Firewall subnet.
The subnet name must be exactly 'AzureFirewallSubnet'.
Azure Firewall looks for this specific subnet name during deployment.
2
Determine the minimum subnet size (CIDR block) required for the firewall.
The subnet prefix size must be /26/26 or larger.
This provides sufficient IP addresses for scaling and maintenance operations.
3
Verify if external security groups like NSGs are allowed on this subnet.
No NSG should be associated with the 'AzureFirewallSubnet'.
NSGs can disrupt stateful packet inspection and lead to routing issues.

Anahtar Kavram

Azure Firewall Subnet Requirements
Soru 782Soru

An administrator is configuring a hub-and-spoke network topology in Azure. The environment contains the following resources:

* A hub virtual network named VNet-Hub (10.100.0.0/1610.100.0.0/16) that contains a subnet named Subnet-Hub where a virtual machine named VM-Hub is deployed. VNet-Hub also contains an active virtual network gateway.
* A spoke virtual network named VNet-Spoke1 (10.101.0.0/1610.101.0.0/16) that contains a subnet named Subnet-Spoke1 where a virtual machine named VM-Spoke1 is deployed.
* A spoke virtual network named VNet-Spoke2 (10.102.0.0/1610.102.0.0/16) that contains a subnet named Subnet-Spoke2 where a virtual machine named VM-Spoke2 is deployed.

Virtual network peering is configured between VNet-Hub and VNet-Spoke1, and between VNet-Hub and VNet-Spoke2.

You need to configure the network to meet the following requirements:
1. VM-Spoke1 must be able to communicate with on-premises networks using the virtual network gateway in VNet-Hub.
2. VM-Spoke1 must be able to communicate directly with VM-Spoke2.
3. VM-Spoke2 must not be able to use the virtual network gateway in VNet-Hub.

Which three configurations should you implement? (Select THREE.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure a direct virtual network peering connection between VNet-Spoke1 and VNet-Spoke2.; On the peering connection from VNet-Hub to VNet-Spoke1, select the option to allow gateway transit.; On the peering connection from VNet-Spoke1 to VNet-Hub, select the option to use remote gateways.

Cevap

To meet the requirements, you must configure a direct virtual network peering connection between VNet-Spoke1 and VNet-Spoke2, select 'Allow gateway transit' on the peering from VNet-Hub to VNet-Spoke1, and select 'Use remote gateways' on the peering from VNet-Spoke1 to VNet-Hub.
To satisfy the requirements, direct spoke-to-spoke communication must be established using a direct peering connection, as peering is non-transitive. Additionally, using VNet-Hub's gateway from VNet-Spoke1 requires enabling gateway transit on the hub-side peering and enabling remote gateways on the spoke-side peering. To prevent VNet-Spoke2 from using the gateway, the remote gateway setting must remain disabled on its peering connection.

Adım Adım Çözüm

1
Address the communication requirement between VM-Spoke1 and VM-Spoke2.
Configure a direct virtual network peering connection between VNet-Spoke1 and VNet-Spoke2.
Because virtual network peering is non-transitive by default, VM-Spoke1 cannot communicate with VM-Spoke2 through VNet-Hub. A direct peering is required.
2
Allow VNet-Spoke1 to use VNet-Hub's gateway.
On the peering connection from VNet-Hub to VNet-Spoke1, select the option to allow gateway transit.
This configuration permits the virtual network gateway in the hub network to share its transit capability with the peered spoke network.
3
Enable the transit routing from VNet-Spoke1's side.
On the peering connection from VNet-Spoke1 to VNet-Hub, select the option to use remote gateways.
This configures VNet-Spoke1 to route on-premises bound traffic to the virtual network gateway in VNet-Hub.
4
Ensure VNet-Spoke2 cannot use VNet-Hub's gateway.
Do not select the option to use remote gateways on the peering connection from VNet-Spoke2 to VNet-Hub.
Leaving this setting disabled prevents VM-Spoke2 from sending transit traffic through the hub's virtual network gateway.

Anahtar Kavram

Virtual network peering transitivity and gateway transit configuration.
Soru 783Soru

Your company has an Azure subscription containing two peered virtual networks: `VNet1` (10.10.0.0/1610.10.0.0/16) and `VNet2` (10.20.0.0/1610.20.0.0/16). `VNet1` contains a subnet named `Subnet-Web` (10.10.1.0/2410.10.1.0/24) and a subnet named `Subnet-Sec` (10.10.10.0/2410.10.10.0/24). A Network Virtual Appliance (NVA) with the private IP address 10.10.10.410.10.10.4 is deployed in `Subnet-Sec` and has IP forwarding enabled on its network interface. `VNet2` contains two subnets named `Subnet-App` (10.20.1.0/2410.20.1.0/24) and `Subnet-DB` (10.20.2.0/2410.20.2.0/24). You associate a user-defined route table named `RT-Web` with `Subnet-Web`. You must ensure that traffic from `Subnet-Web` destined for the database servers in `Subnet-DB` is routed through the NVA for security inspection, while traffic destined for the application servers in `Subnet-App` continues to use the direct peering connection. Which route should you add to `RT-Web`?

Cevabı ve açıklamayı göster

Cevap: Address prefix: 10.20.2.0/2410.20.2.0/24, Next hop type: Virtual appliance, Next hop IP address: 10.10.10.410.10.10.4

Cevap

Address prefix: 10.20.2.0/2410.20.2.0/24, Next hop type: Virtual appliance, Next hop IP address: 10.10.10.410.10.10.4
The correct configuration uses the address prefix 10.20.2.0/2410.20.2.0/24 to match only the database subnet traffic. By specifying the next hop type as 'Virtual appliance' and the next hop IP address as 10.10.10.410.10.10.4, traffic to the database subnet is redirected to the NVA. Traffic destined for the application subnet (10.20.1.0/2410.20.1.0/24) does not match this prefix and instead falls back to the default peered virtual network system route (10.20.0.0/1610.20.0.0/16), fulfilling all requirements.

Adım Adım Çözüm

1
Identify the target destination subnet and its IP range.
The target destination for the security inspection is `Subnet-DB` which has the prefix 10.20.2.0/2410.20.2.0/24.
We need to ensure that only traffic destined for this specific subnet is routed to the NVA.
2
Determine the required route prefix to satisfy the routing requirements.
Using a prefix of 10.20.2.0/2410.20.2.0/24 targets only `Subnet-DB`. Using a prefix of 10.20.0.0/1610.20.0.0/16 would also route `Subnet-App` (10.20.1.0/2410.20.1.0/24) traffic through the NVA, which violates the requirement to use the direct peering connection.
Azure routing uses the Longest Prefix Match (LPM) rule. If we define a route for 10.20.2.0/2410.20.2.0/24, it is a more specific match than the system route for VNet peering (10.20.0.0/1610.20.0.0/16) and will override it for `Subnet-DB` traffic. `Subnet-App` traffic will still match the system route.
3
Select the correct next hop type and next hop IP address.
The next hop type must be 'Virtual appliance', and the next hop IP address must be the private IP of the NVA, which is 10.10.10.410.10.10.4.
An NVA is a custom virtual machine that acts as a router/firewall. Traffic must be directed to its specific interface IP address using the 'Virtual appliance' type.

Anahtar Kavram

Azure User-Defined Routes (UDR) override system routes when a user-defined route has a matching or more specific prefix (Longest Prefix Match). For routing traffic through a Network Virtual Appliance (NVA), the next hop type must be 'Virtual appliance' and the next hop IP address must match the NVA's interface IP.
Soru 784Soru

An organization plans to deploy a public Azure Load Balancer named LB1LB1 to distribute HTTPS traffic across three virtual machines: VM1VM1, VM2VM2, and VM3VM3. The virtual machines are configured as follows:

* VM1VM1 and VM2VM2 are member instances of an Availability Set named AS1AS1.
* VM3VM3 is a standalone virtual machine.
* VM1VM1 has a public IP address named IP1IP1 that uses the Basic SKU.

You plan to configure LB1LB1 using the Standard SKU. Which two actions must you perform to ensure that all three virtual machines can be successfully configured in the backend pool of LB1LB1 and receive load-balanced traffic?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Disassociate the Basic SKU public IP address from VM1VM1 or upgrade it to a Standard SKU public IP address.; Associate a Network Security Group (NSG) with the subnet of the virtual machines and create an inbound rule to allow the load-balanced traffic.

Cevap

The administrator must disassociate the Basic SKU public IP address from the virtual machine or upgrade it to a Standard SKU public IP address, and associate a Network Security Group (NSG) with the subnet of the virtual machines to allow inbound traffic.
To use a Standard Load Balancer, all public IP addresses on the network interfaces of VMs in the backend pool must also be of the Standard SKU, or be disassociated. In addition, Standard SKU resources are secure by default, meaning inbound flows are blocked unless explicitly allowed by a Network Security Group (NSG) associated with the subnet or network interface.

Adım Adım Çözüm

1
Analyze backend pool requirements for Standard SKU Load Balancers.
Standard SKU load balancers allow a mix of standalone VMs and VMs in availability sets, meaning VM3 does not need to be re-created in the availability set.
To verify if VM3 needs to be modified to match the availability set configuration of VM1 and VM2.
2
Inspect public IP SKU compatibility on the backend network interfaces.
VM1 has a Basic SKU public IP. Standard Load Balancer backend pool members cannot have Basic SKU public IPs associated with their NICs.
To identify SKU mismatches on backend pool members that would block the deployment.
3
Remediate the SKU mismatch on the backend network interface.
Disassociate the Basic SKU IP from VM1 or upgrade it to Standard SKU.
To satisfy the SKU uniformity requirement of the Standard Load Balancer.
4
Determine the default security behavior of the Standard SKU Load Balancer.
Standard SKU resources are secure by default. Traffic is blocked without an explicit permit rule.
To ensure traffic can flow to the backend virtual machines once they are added to the pool.
5
Configure a Network Security Group (NSG) to allow inbound traffic.
Associate an NSG with the subnet and add an inbound security rule allowing the load-balanced traffic.
To permit inbound flow through the Standard Load Balancer to the backend VMs.

Anahtar Kavram

Standard SKU Load Balancer configuration requirements, backend pool SKU alignment, and secure-by-default architecture.
Tahmini Süre:3m 0s
Soru 785Soru

A cloud architect is designing a high-availability solution for an application running on three standalone Azure virtual machines. The virtual machines are named VM-App1, VM-App2, and VM-App3, and they are deployed in the East US region. These virtual machines are not associated with any Availability Sets or Virtual Machine Scale Sets. You need to configure a public-facing Azure Load Balancer to distribute inbound traffic across these three virtual machines.

Which two configuration choices must you make to ensure the load balancer functions correctly? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Deploy the load balancer as a Standard SKU load balancer.; Associate a Standard SKU public IP address with the frontend IP configuration.

Cevap

Deploy the load balancer as a Standard SKU load balancer, and associate a Standard SKU public IP address with the frontend IP configuration.
Deploying the load balancer as a Standard SKU and associating a Standard SKU public IP address with the frontend IP configuration is correct. Standard Load Balancers support backend pools consisting of standalone virtual machines in a virtual network, whereas Basic Load Balancers require virtual machines to be part of the same Availability Set or Virtual Machine Scale Set. Additionally, Standard Load Balancers require Standard SKU public IP addresses for their frontend configurations; mixing Standard Load Balancers with Basic SKU public IP addresses is not supported.

Adım Adım Çözüm

1
Analyze the backend pool resource requirements.
The target virtual machines are standalone and not part of an Availability Set or Virtual Machine Scale Set.
This constraint dictates the SKU of the load balancer, as Basic Load Balancers do not support backend pools containing standalone virtual machines.
2
Select the correct Load Balancer SKU.
Standard SKU Load Balancer is selected.
Only the Standard SKU Load Balancer can distribute traffic to standalone virtual machines across a virtual network.
3
Determine the public IP address SKU requirement for the frontend configuration.
Standard SKU public IP address is selected.
Standard Load Balancers require that all associated IP resources, including the frontend IP configurations, use the Standard SKU.

Anahtar Kavram

Azure Load Balancer SKU features and IP compatibility constraints require matching SKUs (Standard Load Balancer with Standard Public IP) and define which backend pool member types (such as standalone VMs) are supported.
Soru 786Soru

An administrator is configuring security rules for a virtual network named `VNet1` in an Azure subscription. `VNet1` contains two subnets: `Subnet-Web` (10.0.1.0/2410.0.1.0/24) and `Subnet-App` (10.0.2.0/2410.0.2.0/24).

The following virtual machines are deployed:
- `VM-Web1` in `Subnet-Web`
- `VM-App1` and `VM-App2` in `Subnet-App`

An Application Security Group (ASG) named `ASG-App` is created, and the network interface of `VM-App1` (`nic-app1`) is associated with `ASG-App`.

A Network Security Group (NSG) named `NSG-SubnetApp` is associated with `Subnet-App` and contains the following inbound rules:

PrioritySourceSource PortDestinationDestination PortProtocolAction
150`VirtualNetwork``*``ASG-App`443TCPAllow
200`*``*``*``*``*`Deny

Another NSG named `NSG-NICApp2` is associated with the network interface of `VM-App2` (`nic-app2`) and contains the following inbound rule:

PrioritySourceSource PortDestinationDestination PortProtocolAction
110`10.0.1.0/24``*``*`443TCPDeny

Currently, HTTPS traffic from `VM-Web1` can reach `VM-App1` on port 443, but cannot reach `VM-App2` on port 443.

Which two actions should you perform to allow HTTPS traffic on port 443 from `VM-Web1` to `VM-App2`?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Associate `nic-app2` with `ASG-App`.; In `NSG-NICApp2`, add an inbound security rule with a priority of 100 that allows TCP traffic on port 443 from `10.0.1.0/24` to any destination.

Cevap

Associate the network interface of the target virtual machine with the Application Security Group, and add an inbound security rule to the network interface's security group with a priority of 100 that allows TCP traffic on port 443 from the source subnet to any destination.
To allow HTTPS traffic to the target virtual machine, traffic must pass both the subnet-level NSG and the network interface (NIC)-level NSG. First, the subnet NSG has an inbound rule that allows HTTPS traffic from the virtual network to the Application Security Group (ASG). Associating the target virtual machine's network interface with this ASG allows the traffic to pass the subnet NSG instead of being blocked by the lower-priority catch-all deny rule. Second, the NIC-level NSG has a rule that explicitly denies port 443 traffic from the source subnet. To permit the traffic, a new inbound rule must be created on this NIC-level NSG with a priority value lower than 110 (such as 100) to override the existing deny rule, as rules with lower priority numbers have higher precedence in Azure NSGs.

Adım Adım Çözüm

1
Evaluate the subnet-level security rules to identify why traffic is blocked at the subnet boundary.
The subnet-level NSG has a rule at priority 150 allowing port 443 traffic specifically to the Application Security Group (ASG), followed by a deny-all rule at priority 200. Since the target network interface is not associated with the ASG, its traffic is blocked by the priority 200 rule.
Understanding which subnet-level rule is blocking or allowing the traffic is the first step in resolving the connectivity issue.
2
Associate the target network interface with the Application Security Group.
Traffic destined for the target virtual machine now matches the priority 150 allow rule in the subnet-level NSG and passes the subnet boundary.
This allows the traffic to bypass the subnet-level deny-all rule.
3
Evaluate the network interface (NIC)-level security rules for the target virtual machine.
The NIC-level NSG contains a rule at priority 110 that explicitly denies port 443 traffic from the source subnet.
Even though traffic passes the subnet-level NSG, it is still blocked at the NIC boundary.
4
Add a higher-precedence allow rule to the NIC-level NSG.
Creating an allow rule for port 443 traffic with a priority of 100 overrides the deny rule at priority 110.
In Azure NSGs, rules with lower priority numbers have higher precedence. A priority 100 rule is evaluated before priority 110, allowing the connection to succeed.

Anahtar Kavram

Azure NSG rule evaluation logic requires that traffic must be allowed at both the subnet level and the network interface (NIC) level. Within an NSG, rules are processed in priority order (lowest number first) until a match is found.
Soru 787Soru

An administrator is configuring network security for a multi-tier application in an Azure subscription. The environment contains a virtual network named `VNet1` (10.1.0.0/1610.1.0.0/16) with two subnets: `Subnet-Web` (10.1.1.0/2410.1.1.0/24) and `Subnet-App` (10.1.2.0/2410.1.2.0/24).

- `Subnet-Web` is associated with a Network Security Group (NSG) named `NSG-Subnet-Web`.
- `Subnet-Web` contains a virtual machine named `VM-Web`. The network interface of `VM-Web` is associated with an Application Security Group (ASG) named `ASG-Web-Servers` and an NSG named `NSG-NIC-Web`.
- `Subnet-App` is associated with an NSG named `NSG-Subnet-App` that contains only default rules.
- `Subnet-App` contains a virtual machine named `VM-App` (10.1.2.410.1.2.4). The network interface of `VM-App` is associated with an ASG named `ASG-App-Servers`.

The inbound security rules for the NSGs are configured as follows:

NSG-Subnet-Web Inbound Rules:
PrioritySourceSource PortDestinationDestination PortProtocolAction
11010.1.2.0/24**443TCPAllow
140ASG-App-Servers*ASG-Web-Servers443TCPDeny
NSG-NIC-Web Inbound Rules:
PrioritySourceSource PortDestinationDestination PortProtocolAction
120ASG-App-Servers*ASG-Web-Servers443TCPDeny
15010.1.2.0/24**443TCPAllow

A user attempts to establish an HTTPS connection from `VM-App` to `VM-Web`.

What is the result of the connection attempt?

Cevabı ve açıklamayı göster

Cevap: The connection is blocked at the network interface level (NSG-NIC-Web) because the rule with priority 120 takes precedence over the rule with priority 150.

Cevap

The connection is blocked at the network interface level (NSG-NIC-Web) because the rule with priority 120 takes precedence over the rule with priority 150.
For inbound traffic, Azure processes the subnet-level NSG rules first, followed by the network interface (NIC)-level NSG rules. At the subnet level, the rule with priority 110 (Allow) takes precedence over the rule with priority 140 (Deny) because lower priority numbers have higher precedence. Thus, the traffic is allowed through the subnet. At the NIC level, the rule with priority 120 (Deny) takes precedence over the rule with priority 150 (Allow). Since the source VM-App is associated with the Application Security Group ASG-App-Servers, the rule with priority 120 blocks the connection at the NIC level. Because both levels must allow the traffic, the connection is blocked at the NIC level.

Adım Adım Çözüm

1
Evaluate the inbound traffic at the subnet level using NSG-Subnet-Web rules.
Traffic is allowed through the subnet.
The incoming packet has a source IP of 10.1.2.4 (which matches 10.1.2.0/24) and is destined for VM-Web on port 443. NSG-Subnet-Web has two matching rules: priority 110 (Allow) and priority 140 (Deny). Since 110 is a lower number, it has higher precedence and the traffic is allowed at the subnet level.
2
Evaluate the inbound traffic at the network interface (NIC) level using NSG-NIC-Web rules.
Traffic is blocked at the NIC level.
NSG-NIC-Web has two matching rules: priority 120 (Deny) and priority 150 (Allow). The source VM-App is associated with the Application Security Group ASG-App-Servers, which matches the priority 120 rule. Since 120 is lower than 150, the Deny rule takes precedence and blocks the traffic.
3
Determine the final connection outcome.
The connection attempt fails.
For inbound traffic to be successfully established, the network traffic must be allowed by both the subnet-level NSG and the network interface-level NSG. Because the traffic was blocked at the NIC level, the connection attempt is denied.

Anahtar Kavram

Inbound NSG rule processing order and priority evaluation.
Soru 788Soru

An administrator is configuring a public Azure Load Balancer using the Standard SKU. The load balancer will distribute traffic to virtual machines. Which two of the following resources can be associated with this Standard Load Balancer? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: A frontend public IP address configured with the Standard SKU.; Backend virtual machines deployed across multiple Availability Zones in the same virtual network.

Cevap

A frontend public IP address configured with the Standard SKU, and backend virtual machines deployed across multiple Availability Zones in the same virtual network.
Standard Load Balancers require a frontend public IP address configured with the Standard SKU to ensure SKU consistency. Additionally, they support high availability by allowing backend pool virtual machines to be distributed across multiple Availability Zones within the same virtual network.

Adım Adım Çözüm

1
Determine the SKU requirements for the frontend IP address of a Standard Load Balancer.
The frontend public IP address must also use the Standard SKU, as SKU mixing between the Load Balancer and its frontend IP is not supported.
Azure enforces SKU consistency for load balancers and their associated public IP resources.
2
Determine backend pool compatibility across zones and SKU constraints for the virtual machines.
Standard Load Balancers support virtual machines spanning multiple Availability Zones, but all associated resources (such as public IPs on VM NICs) must be of the Standard SKU.
Standard Load Balancers support high-availability zone designs, but do not allow association with Basic SKU network resources.

Anahtar Kavram

Azure Load Balancer SKU compatibility and configuration constraints
Soru 789Soru

An organization uses Azure Firewall to secure traffic. The firewall has DNAT rules, network rules, and application rules configured. When processing a connection request, which of these rule types is evaluated first by the firewall?

Cevabı ve açıklamayı göster

Cevap: DNAT rules

Cevap

DNAT rules are evaluated first by the firewall.
The correct option is DNAT rules. Azure Firewall rule processing follows a fixed hierarchy: DNAT rules are evaluated first. If a match is found, the firewall translates the destination IP address and port and creates an implicit network rule to allow the translated traffic. Network rules are evaluated second, and application rules are evaluated last.

Adım Adım Çözüm

1
Analyze the rule type hierarchy of Azure Firewall.
The built-in evaluation order for Azure Firewall is DNAT rules first, then network rules, and finally application rules.
This static order is hardcoded into the firewall's processing engine to ensure security logic is applied consistently.
2
Determine if collection priority overrides the rule type hierarchy.
Collection priority determines evaluation order within the same type of rules, but cannot override the global rule type sequence.
Therefore, even a network rule with a high priority will be evaluated after all DNAT rules.

Anahtar Kavram

Azure Firewall rule processing logic and evaluation order
Soru 790Soru

An administrator is configuring a hub-and-spoke network topology in Microsoft Azure. The hub virtual network (VNet-Hub) contains an Azure Firewall deployed with the private IP address 10.0.1.410.0.1.4. Two spoke virtual networks, VNet-Spoke1 (containing Subnet-App with address space 10.1.1.0/2410.1.1.0/24) and VNet-Spoke2 (containing Subnet-DB with address space 10.2.1.0/2410.2.1.0/24), are peered with VNet-Hub.

The administrator associates a route table with Subnet-App containing a route for destination 10.2.1.0/2410.2.1.0/24 with a next hop type of Virtual appliance and a next hop address of 10.0.1.410.0.1.4. In the Azure Firewall, a Network Rule is configured to allow TCP traffic on port 14331433 from 10.1.1.0/2410.1.1.0/24 to 10.2.1.0/2410.2.1.0/24.

A virtual machine in Subnet-App (10.1.1.410.1.1.4) attempts to establish a SQL database connection to a database server in Subnet-DB (10.2.1.410.2.1.4). The connection fails, even though no Network Security Groups (NSGs) are blocking the traffic and the database server is configured to accept connections.

Which of the following is the most likely cause of this connection failure?

Cevabı ve açıklamayı göster

Cevap: The route table associated with Subnet-DB does not contain a user-defined route for 10.1.1.0/2410.1.1.0/24 with the next hop pointing to the Azure Firewall, resulting in asymmetric routing where the firewall drops the stateful TCP connection.

Cevap

The connection failure occurs because the route table on the database subnet (Subnet-DB) is missing a route back to the application subnet (Subnet-App) via the Azure Firewall's private IP, leading to asymmetric routing where the firewall drops the connection due to state mismatch.
For stateful firewalls like Azure Firewall to work correctly, routing must be symmetric. When the source VM sends traffic, it is routed to the firewall due to the UDR on Subnet-App. However, when the database server responds, the lack of a corresponding UDR on Subnet-DB causes the return traffic to bypass the firewall and go directly to Subnet-App. The firewall drops the connection because it cannot complete the stateful TCP handshake tracking.

Adım Adım Çözüm

1
Trace the outbound traffic path from the source VM (10.1.1.410.1.1.4) in Subnet-App to the destination database server (10.2.1.410.2.1.4) in Subnet-DB.
Traffic destined for 10.2.1.0/2410.2.1.0/24 matches the User-Defined Route (UDR) on Subnet-App and is successfully forwarded to the Azure Firewall (10.0.1.410.0.1.4) as its next hop.
To ensure traffic is inspected by the firewall, a UDR must intercept the default system route and redirect it to the firewall's private IP.
2
Evaluate the firewall rule matching for the outbound connection.
The outbound TCP port 14331433 traffic from 10.1.1.0/2410.1.1.0/24 to 10.2.1.0/2410.2.1.0/24 matches the configured Network Rule and is permitted to pass through the firewall to the destination.
Azure Firewall rules are evaluated in order; matching an allow network rule permits the traffic to continue to its destination.
3
Trace the return path of the response traffic from the database server (10.2.1.410.2.1.4) back to the source VM (10.1.1.410.1.1.4).
Since there is no UDR configured on Subnet-DB directing 10.1.1.0/2410.1.1.0/24 traffic back to the firewall, the response traffic follows the default system route (VNet Peering) directly to Subnet-App, bypassing the hub firewall.
Azure system routes automatically route peered virtual networks directly unless overridden by a custom route table.
4
Determine the state tracking outcome at the Azure Firewall.
The firewall receives the initial SYN packet and subsequent ACK packet from the source VM, but never sees the intermediate SYN-ACK packet from the database server. Because Azure Firewall is stateful, it detects this asymmetric routing and drops the connection.
Stateful firewalls require symmetric routing (both request and response paths flowing through the firewall) to maintain TCP state tables and validate connection integrity.

Anahtar Kavram

Stateful packet inspection and routing symmetry in Azure Firewall
Soru 791Soru

You are deploying different containerized workloads to Azure Container Instances (ACI). You need to configure the appropriate restart policy for each workload. Match each workload scenario to its corresponding container group restart policy.

Soldaki öğeye tıklayın, sonra eşleşen sağdaki öğeye tıklayın

Öğeler

A containerized API gateway that listens for incoming HTTP requests and must remain continuously available.
A nightly batch job that downloads transaction files, updates a database, and must terminate when the task completes successfully or retry if the container exits with an error.
A database schema migration container that runs a setup script once upon deployment, and must not execute again even if the initialization fails.

Eşleşmeler

Cevabı ve açıklamayı göster

Cevap

The API gateway matches the Always restart policy; the nightly batch job matches the OnFailure restart policy; the database schema migration matches the Never restart policy.
Matching the API gateway to Always ensures continuous uptime. Matching the batch job to OnFailure ensures retries only occur when errors happen. Matching the database migration to Never prevents unintended reruns.

Adım Adım Çözüm

1
Analyze the lifecycle requirements of the API gateway workload.
The API gateway must run indefinitely and handle continuous traffic, meaning it should always be restarted upon termination.
Web services require the Always restart policy.
2
Analyze the nightly batch job workload.
The batch job runs to completion. It should stop on success but restart if a failure occurs.
This behavior aligns with the OnFailure restart policy.
3
Analyze the database schema migration workload.
The migration script must run exactly once and must not rerun on failure.
To avoid corruption from duplicate attempts, the Never restart policy is required.

Anahtar Kavram

Azure Container Instances restart policies determine the container lifecycle behavior based on exit conditions.
Tahmini Süre:1m 30s
Soru 792Soru

An administrator is configuring access to an Azure Storage account named auditstore77 that contains a blob container named archives. A group of external auditors named AuditTeam must be able to navigate the Azure portal to find the storage account and download the blobs within the container. The auditors will authenticate using Microsoft Entra ID. You need to assign Azure Role-Based Access Control (RBAC) roles to AuditTeam to meet the requirements using the principle of least privilege. Which two roles should you assign? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Storage Blob Data Reader; Reader

Cevap

Assign the Reader and Storage Blob Data Reader roles to the AuditTeam group.
To fulfill the requirements with least privilege, two roles are needed: one for the control plane to navigate the Azure portal and one for the data plane to access the blobs. The Reader role allows the AuditTeam to view the storage account in the portal without modifying it. The Storage Blob Data Reader role provides the necessary read-only permissions to download blobs from the container using Microsoft Entra ID authentication.

Adım Adım Çözüm

1
Identify the data plane access requirement.
The AuditTeam needs to download blobs. This requires read permissions to the data within the blob container.
Data plane access is managed separately from control plane operations using specific data roles.
2
Select the appropriate data plane role.
The Storage Blob Data Reader role is selected.
This role provides read-only access to blob containers and data, adhering to the principle of least privilege.
3
Identify the portal navigation requirement.
The AuditTeam needs to locate the storage account using the Azure portal.
Without a control plane role, users cannot see the storage account resource in the portal interface even if they have data plane permissions.
4
Select the appropriate control plane role.
The Reader role is selected.
The Reader role allows users to view resources in the portal without granting modification rights, satisfying the portal navigation requirement with least privilege.

Anahtar Kavram

Separation of control plane and data plane RBAC roles for Azure Storage authentication with Microsoft Entra ID.
Soru 793Soru

NovaByte Research has an Azure subscription named sub-novabyte-core. You are configuring customer-managed keys (CMK) for an Azure Storage account named sanovabytearchive. You create a user-assigned managed identity named uami-storage-enc to be used for Key Vault access. The Azure Key Vault named kv-novabyte-secure is configured to use Azure role-based access control (Azure RBAC) for authorization. Which of the following actions must you perform to successfully configure the storage account to use customer-managed keys from the key vault? (Select two)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Enable purge protection on kv-novabyte-secure.; Assign the Key Vault Crypto Service Encryption User role for kv-novabyte-secure to uami-storage-enc.

Cevap

Enable purge protection on the key vault and assign the Key Vault Crypto Service Encryption User role to the user-assigned managed identity.
To successfully configure customer-managed keys (CMK) for a storage account using Azure RBAC, two main requirements must be met: the Key Vault must have purge protection enabled to protect the encryption keys from accidental deletion, and the managed identity assigned to the storage account must be granted the Key Vault Crypto Service Encryption User role to allow it to perform data-plane encryption and decryption operations.

Adım Adım Çözüm

1
Enable purge protection on kv-novabyte-secure.
Purge protection is enabled, satisfying the Azure Storage requirement that keys cannot be permanently deleted immediately.
Azure Storage requires both soft-delete (enabled by default) and purge protection to be active on the key vault to guard against accidental deletion of the encryption key.
2
Assign the Key Vault Crypto Service Encryption User role to uami-storage-enc.
The identity is granted data-plane access to read, wrap, and unwrap keys within the key vault.
Since the key vault is configured to use Azure RBAC for authorization, data-plane access for cryptographic operations must be explicitly granted via RBAC roles rather than Key Vault access policies.

Anahtar Kavram

Configuring Azure Storage encryption with customer-managed keys requires Key Vault protection settings (soft-delete and purge protection) and appropriate data-plane permissions (using Azure RBAC or Key Vault access policies) for the storage account's managed identity.
Soru 794Soru

Your company has an Azure Virtual Machine Scale Set named vmss-processing. The scale set is configured with autoscale rules and currently runs five instances. One of the instances, vmss-processing_3, is currently running a critical, long-running database validation task that must not be interrupted. The remaining instances are idle. You expect a scale-in event to be triggered shortly due to low overall CPU utilization. You need to prevent vmss-processing_3 from being terminated during the scale-in event, without affecting the scaling behavior of the other instances. What should you do?

Cevabı ve açıklamayı göster

Cevap: From the scale set instances blade, select vmss-processing_3 and enable instance protection.

Cevap

From the scale set instances blade, select vmss-processing_3 and enable instance protection.
Enabling instance protection on a specific scale set instance ensures that the autoscale engine will not select it for termination during a scale-in event. Other, unprotected instances remain subject to normal scale-in actions, ensuring correct overall scaling behavior without interrupting the critical task running on the protected instance.

Adım Adım Çözüm

1
Identify the instance performing the critical task, which is vmss-processing_3.
Target instance identified.
We must selectively protect only this instance from being terminated.
2
Apply instance protection to the target instance.
The instance vmss-processing_3 is excluded from scale-in selection.
Instance protection is designed to prevent the autoscale engine from terminating specific instances while keeping normal autoscale functions active for the rest of the scale set.

Anahtar Kavram

Instance Protection in Azure Virtual Machine Scale Sets allows administrators to protect specific virtual machine instances from being terminated during autoscale scale-in events.
Soru 795Soru

Your organization manages its Azure environment with the following hierarchy:

* Management Group: `MG-Corporate`
* Subscription: `Sub-Production`
* Resource Group: `RG-DataStorage` (contains multiple Azure Storage accounts)

A security group named `Data-Auditors` needs to inspect the configuration settings of the storage accounts within `RG-DataStorage` to verify compliance. The auditors must not have access to read, write, or delete the actual blob data stored inside these storage accounts, nor should they be able to modify the configurations of the storage accounts. To apply the principle of least privilege, which role assignment should you configure?

Cevabı ve açıklamayı göster

Cevap: Assign the Reader role to the Data-Auditors group at the scope of the RG-DataStorage resource group.

Cevap

Assign the Reader role to the Data-Auditors group at the scope of the RG-DataStorage resource group.
Assigning the Reader role at the resource group scope (RG-DataStorage) provides read-only access to the control plane configurations of all resources within that resource group. Because the Reader role does not grant data-plane operations, the members of the security group cannot access the actual blob data inside the storage accounts. This configuration satisfies the requirements of configuration auditing and the principle of least privilege.

Adım Adım Çözüm

1
Analyze the access requirements for the Data-Auditors group.
The group requires read-only access to configuration settings (control plane) but must not access actual data (data plane) or modify any resources.
This establishes the minimum permissions needed under the principle of least privilege.
2
Determine the appropriate scope for the assignment.
The scope should be limited to the RG-DataStorage resource group, rather than the entire management group (MG-Corporate), to prevent unnecessary access to other resources.
Restricting the scope ensures permissions do not inherit down to other unrelated resources.
3
Select the Azure RBAC role that separates control plane from data plane access.
The Reader role allows viewing resource configurations on the control plane but does not grant data-plane access (unlike Storage Blob Data Reader) or tenant-level admin permissions.
Matching the role to the control plane fulfills the least privilege compliance auditing requirement.

Anahtar Kavram

Azure RBAC scopes, control plane versus data plane access, and role inheritance.
Tahmini Süre:1m 30s
Soru 796Soru

An administrator configures a route table named `RT-Prod` and associates it with `Subnet-1` (10.1.1.0/2410.1.1.0/24) in `VNet-1` (10.1.0.0/1610.1.0.0/16). `VNet-1` is peered with `VNet-2` (10.2.0.0/1610.2.0.0/16).

The route table `RT-Prod` contains the following two user-defined routes:
* Route1: Destination prefix 10.2.0.0/1610.2.0.0/16, Next hop type: Virtual appliance, Next hop IP address: 10.1.1.410.1.1.4
* Route2: Destination prefix 10.2.2.0/2410.2.2.0/24, Next hop type: Virtual Network Gateway

A virtual machine in `Subnet-1` sends a packet to a destination IP address of 10.2.2.5010.2.2.50 in `VNet-2`.

Which next hop will the traffic use to reach the destination?

Cevabı ve açıklamayı göster

Cevap: The virtual network gateway

Cevap

The traffic will use the virtual network gateway.
The correct answer is the virtual network gateway because Azure's routing engine uses the Longest Prefix Match (LPM) algorithm. The destination IP address 10.2.2.5010.2.2.50 matches Route2 (10.2.2.0/2410.2.2.0/24) with a 24-bit match, which is more specific than the 16-bit match of Route1 (10.2.0.0/1610.2.0.0/16) and the VNet Peering system route (10.2.0.0/1610.2.0.0/16). Therefore, Route2 is selected, and its next hop is the virtual network gateway.

Adım Adım Çözüm

1
Identify all matching routes for the destination IP address 10.2.2.5010.2.2.50.
The matching routes are: the system peering route (10.2.0.0/1610.2.0.0/16), Route1 (10.2.0.0/1610.2.0.0/16 pointing to 10.1.1.410.1.1.4), and Route2 (10.2.2.0/2410.2.2.0/24 pointing to the Virtual Network Gateway).
Before choosing a route, Azure evaluates all candidate routes in the routing table (both system and user-defined) that match the destination IP address.
2
Apply the Longest Prefix Match (LPM) rule to select the most specific route prefix.
The prefix 10.2.2.0/2410.2.2.0/24 has a longer match (24 bits) than 10.2.0.0/1610.2.0.0/16 (16 bits).
Azure's routing decision engine always prioritizes the most specific route prefix (the one with the largest subnet mask length) regardless of whether it is a system route or a UDR.
3
Identify the next hop type associated with the winning route.
The winning route is Route2, which has a next hop type of Virtual Network Gateway.
Since Route2 has the longest prefix match, its defined next hop is used to route the traffic.

Anahtar Kavram

Azure routes traffic based on the Longest Prefix Match (LPM) algorithm across all system and user-defined routes. Only when prefixes are identical does the route source priority (UDR > BGP > System) resolve the conflict.
Soru 797Soru

An Azure subscription contains a virtual network named vnetmanufacturingvnet-manufacturing that has an address space of 10.80.0.0/2110.80.0.0/21. You are configuring the subnets for this virtual network to support hybrid connectivity and a new application workload. The configuration must meet the following requirements:
- Create a subnet named GatewaySubnetGatewaySubnet to support a VPN gateway.
- Create a subnet named snetappsnet-app to host 28 virtual machines.
- Minimize the address space allocated to each subnet.

Which two subnets should you create to meet the requirements? Select two.

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: GatewaySubnetGatewaySubnet with the address range 10.80.0.0/2910.80.0.0/29; snetappsnet-app with the address range 10.80.1.0/2610.80.1.0/26

Cevap

The correct subnets to create are GatewaySubnet with the address range 10.80.0.0/29 and snet-app with the address range 10.80.1.0/26.
The GatewaySubnet must be at least /29 to support Azure VPN Gateway. A /29 subnet is the smallest valid subnet size that meets this requirement. For the snet-app subnet, hosting 28 virtual machines requires a total of 33 IP addresses (28+5=3328 + 5 = 33) due to the 5 IP addresses reserved by Azure in each subnet. A /27 subnet provides 32 addresses (27 usable), which is not enough. A /26 subnet provides 64 addresses (59 usable), which is the smallest subnet size that can support the workload.

Adım Adım Çözüm

1
Determine the minimum size of the GatewaySubnet.
The GatewaySubnet must be configured with a prefix length of /29 or larger.
Azure VPN Gateway requires a dedicated subnet named GatewaySubnet, and Azure mandates a minimum size of /29 for this subnet. Therefore, a /29 subnet represents the smallest allocation.
2
Calculate the minimum subnet size for snet-app to host 28 virtual machines.
A subnet with a /26 prefix length is required.
Azure reserves 5 IP addresses in every subnet (the first four and the last one). To host 28 virtual machines, the subnet must have a total capacity of at least 33 IP addresses (28+5=3328 + 5 = 33). A /27 subnet provides only 32 IP addresses (27 usable), whereas a /26 subnet provides 64 IP addresses (59 usable).

Anahtar Kavram

Azure subnet sizing and IP address reservation rules, including the minimum size requirement for a GatewaySubnet and the 5 reserved IP addresses per subnet.
Soru 798Soru

An administrator is configuring a new public Azure Load Balancer named `LB1` using the Standard SKU. The administrator plans to associate an existing public IP address named `PubIP1` with the frontend IP configuration of `LB1`. `PubIP1` is currently configured with the Basic SKU. Which of the following describes the outcome when the administrator attempts to save this configuration?

Cevabı ve açıklamayı göster

Cevap: The configuration fails because a Standard SKU load balancer can only be associated with a Standard SKU public IP address.

Cevap

The configuration fails because a Standard SKU load balancer can only be associated with a Standard SKU public IP address.
The configuration fails because Azure enforces strict SKU consistency between the Load Balancer and its frontend IP configuration. A Standard SKU Load Balancer must use a Standard SKU Public IP address, and a Basic SKU Load Balancer must use a Basic SKU Public IP address.

Adım Adım Çözüm

1
Identify the SKU of the Load Balancer and the SKU of the Public IP address being associated.
The Load Balancer is Standard SKU, and the Public IP address is Basic SKU.
This establishes the parameters for the SKU compatibility check.
2
Apply Azure's SKU matching rule for Load Balancers and public IP configurations.
Standard SKU Load Balancer requires Standard SKU Public IP. Basic SKU Load Balancer requires Basic SKU Public IP.
Azure enforces strict SKU matching between the Load Balancer resource and its frontend IP configurations.
3
Determine the deployment outcome based on the SKU mismatch.
The deployment or configuration update fails due to a SKU validation error.
Since the SKUs do not match, the configuration cannot be saved.

Anahtar Kavram

Azure Load Balancer and Public IP SKU compatibility requirements
Soru 799Soru

To meet security compliance requirements, an organization decides to inspect all traffic moving between application tiers within a single virtual network. The deployment consists of a virtual network named `VNet-SecureHub` (192.168.0.0/16192.168.0.0/16) with three subnets:
* `Subnet-App` (192.168.1.0/24192.168.1.0/24)
* `Subnet-Appliance` (192.168.2.0/24192.168.2.0/24)
* `Subnet-Data` (192.168.3.0/24192.168.3.0/24)

A firewall virtual machine named `FW1` is deployed in `Subnet-Appliance` and is assigned the private IP address 192.168.2.4192.168.2.4.
You need to ensure that all traffic sent from `Subnet-App` to `Subnet-Data` is routed through `FW1` for inspection.
Which two configuration steps should you perform? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: In a route table associated with Subnet-App, configure a route for destination 192.168.3.0/24192.168.3.0/24 with the next hop type set to Virtual appliance and the next hop IP address set to 192.168.2.4192.168.2.4.; Enable IP forwarding on the network interface (NIC) of FW1.

Cevap

Configure a user-defined route in a route table associated with the application subnet pointing to the firewall's IP address as a Virtual appliance, and enable IP forwarding on the firewall's network interface.
Routing traffic through an NVA requires overriding system routes by associating a route table with the source subnet. The route must specify the destination IP prefix, use Virtual appliance as the next hop type, and specify the NVA's IP address. Additionally, the NVA's network interface must have IP forwarding enabled so that Azure does not drop packets destined for other IP addresses.

Adım Adım Çözüm

1
Define a route table and add a route targeting the data subnet.
A route table is created with a route for destination 192.168.3.0/24192.168.3.0/24, next hop type set to Virtual appliance, and next hop IP address set to 192.168.2.4192.168.2.4.
Azure system routes route traffic directly between subnets within the same VNet by default. A user-defined route (UDR) is required to override this behavior and force traffic through the firewall.
2
Associate the route table with the application subnet.
The route table is associated with Subnet-App.
A route table only applies to network traffic originating from resources within a subnet once the route table is explicitly associated with that subnet.
3
Enable IP forwarding on the network interface (NIC) of FW1.
The network interface of FW1 is configured to allow traffic not destined for its own IP address.
By default, Azure drops traffic sent to a virtual machine if the destination IP address does not match the VM's interface IP. Enabling IP forwarding permits the firewall VM to receive and forward transit traffic.

Anahtar Kavram

Routing subnet traffic through a Network Virtual Appliance (NVA) requires creating a User-Defined Route (UDR) with the Virtual appliance next hop type, associating it with the source subnet, and enabling IP forwarding on the NVA's network interface.
Soru 800Soru

Your company has an Azure subscription that contains a resource group named rg-finance. Within rg-finance, there is an Azure Storage account named stfinrecords that hosts a blob container named historical-data. A financial analyst named Taylor needs to read the blobs in the historical-data container. You must configure access to meet the following requirements:
- Taylor must authenticate by using Microsoft Entra ID.
- Taylor must be prevented from modifying any data or storage account configurations.
- The solution must follow the principle of least privilege.
Which role should you assign to Taylor?

Cevabı ve açıklamayı göster

Cevap: Storage Blob Data Reader assigned at the historical-data container level

Cevap

Storage Blob Data Reader assigned at the historical-data container level
Assigning the Storage Blob Data Reader role at the container level is correct because it grants read-only data plane access to the specific container using Microsoft Entra ID credentials. It ensures the user can read the blobs without granting control plane management permissions or key access, satisfying the principle of least privilege.

Adım Adım Çözüm

1
Identify the authentication mechanism required for data access.
Microsoft Entra ID authentication is specified, meaning Azure RBAC roles governing the data plane must be used.
Traditional control plane roles (like Owner or Reader) do not automatically grant data plane permissions when authenticating with Entra ID.
2
Select the correct role that offers read-only access to the blobs.
The Storage Blob Data Reader role is identified as the standard role for reading blob content.
This role grants data-level read permissions while preventing any write or delete actions on the blobs.
3
Scope the role assignment to enforce the principle of least privilege.
Assign the role at the scope of the historical-data container rather than the storage account or resource group.
This limits Taylor's access to only the specific container required for the task, preventing access to other containers or storage resources.

Anahtar Kavram

Azure RBAC Control Plane versus Data Plane Roles for Storage
Tahmini Süre:1m 30s
ÖncekiSayfa 40 / 63Sonraki
Tüm alıştırma soruları — Microsoft Azure Administrator (AZ-104) | Examkin