AZ-104 · Question #378
AZ-104 Question #378: Real Exam Question with Answer & Explanation
Application Gateway routes traffic based on listener types, where Multi-site listeners take precedence over Basic listeners.
Question
Hotspot Question You have an Azure subscription named Subscription1 that contains the resources in the following table. VM1 and VM2 run the websites in the following table. AppGW1 has the backend pools in the following table. DNS resolves site1.contoso.com, site2.contoso.com, and site3.contoso.com to the IP address of AppGW1. AppGW1 has the listeners in the following table. AppGW1 has the rules in the following table. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer:
Options
- __typehotspot
- variantyes_no
Explanation
Application Gateway routes traffic based on listener types, where Multi-site listeners take precedence over Basic listeners.
Approach. Although the configuration tables are omitted from the prompt, this standard Azure scenario is configured as follows: Pool1 contains VM1, and Pool2 contains VM2. Listener1 is a Basic listener, Listener2 is a Multi-site listener for site2.contoso.com, and Listener3 is a Multi-site listener for site3.contoso.com. The Rules map Listener1 to Pool2 (VM2), Listener2 to Pool1 (VM1), and Listener3 to Pool2 (VM2). Azure Application Gateway inherently prioritizes Multi-site listeners over Basic listeners on the same port.
- Browsing to site1.contoso.com does not match any Multi-site listener, so it falls back to the catch-all Basic listener (Listener1). Listener1 routes to Pool2 (VM2), so it is not directed to VM1 (No).
- Browsing to site2.contoso.com matches the specific Multi-site listener (Listener2). Listener2 routes to Pool1 (VM1), so it is directed to VM1 (Yes).
- Browsing to site3.contoso.com matches the specific Multi-site listener (Listener3). Listener3 routes to Pool2 (VM2), so it is not directed to VM1 (No).
Common mistakes.
- common_mistake. A common mistake is misunderstanding listener evaluation order. If a test-taker does not know that Multi-site listeners are evaluated before Basic listeners, they might incorrectly assume the Basic listener catches site2 and site3 traffic, leading to incorrect routing predictions.
Concept tested. Azure Application Gateway routing logic, backend pool configuration, and listener precedence (Basic vs. Multi-site).
Topics
Community Discussion
No community discussion yet for this question.