AZ-800 Application Gateway and WAF 3 — Questions and Answers
Question 1: An Application Gateway is configured with URL path-based routing. Requests to '/images/*' should go to Pool-A and all other requests to Pool-B. Which Application Gateway component defines these path-to-pool mappings?
- HTTP Settings
- URL Path Map (Correct answer)
- Routing Rule
- Backend Pool
Correct answer: URL Path Map
A URL Path Map defines which URL path patterns route to which backend pools in path-based routing scenarios.
Question 2: A company hosts two websites on the same Application Gateway: api.contoso.com and www.contoso.com. Which listener type must be used to support both sites on port 443?
- Basic listener
- Multi-site listener (Correct answer)
- Wildcard listener
- Path-based listener
Correct answer: Multi-site listener
Multi-site listeners allow a single Application Gateway to host multiple websites by routing based on the HTTP Host header.
Question 3: An Application Gateway rule is needed to redirect all HTTP traffic on port 80 to HTTPS on port 443. Which type of redirect should be configured in the routing rule?
- Temporary redirect (302)
- Permanent redirect (301) (Correct answer)
- Found redirect (302)
- See Other (303)
Correct answer: Permanent redirect (301)
A permanent redirect (301) is the recommended setting for HTTP-to-HTTPS redirection as it tells browsers and search engines to always use HTTPS.
Question 4: An Application Gateway v2 routing rule must rewrite the response header 'Server' to remove the backend server identity. Which feature enables this?
- Custom HTTP Settings
- Rewrite Rules (Correct answer)
- Routing Rule conditions
- WAF custom rules
Correct answer: Rewrite Rules
Application Gateway Rewrite Rules allow modification of HTTP request and response headers and URL paths.
Question 5: A developer wants to route requests based on query string parameters, sending requests with '?version=v2' to a new backend pool. Which Application Gateway v2 routing feature supports query string conditions?
- URL Path Maps only
- Rewrite Rules with conditions
- Request routing rules with multi-condition support (Correct answer)
- HTTP Settings overrides
Correct answer: Request routing rules with multi-condition support
Application Gateway v2 request routing rules support conditions including query string matching to direct traffic to different backend pools.
Question 6: An Application Gateway listener is configured on port 443 with SSL termination. The backend pool members are IIS servers listening on port 80. Which component translates the port from 443 to 80 for backend communication?
- The listener configuration
- HTTP Settings (Backend settings) (Correct answer)
- The routing rule priority
- The backend health probe
Correct answer: HTTP Settings (Backend settings)
HTTP Settings (also called Backend Settings) define the protocol and port used to communicate with backend pool members, independent of the listener port.
Question 7: A company needs Application Gateway to maintain user session affinity so that each user is consistently routed to the same backend server. Which setting enables this?
- Connection Draining
- Cookie-based affinity in HTTP Settings (Correct answer)
- Sticky sessions in the WAF policy
- Round-robin weight assignment
Correct answer: Cookie-based affinity in HTTP Settings
Enabling cookie-based affinity in HTTP Settings causes Application Gateway to issue an affinity cookie that pins each client session to a specific backend.
An Application Gateway is configured with URL path-based routing.
Requests to '/images/*' should go to Pool-A and all other requests to Pool-B.
Which Application Gateway component defines these path-to-pool mappings?