AZ-700 · Question #365
You have an Azure application gateway named AppGW1 that balances requests to a web app named App1. You need to modify the server variables in the response header of App1. What should you configure…
The correct answer is A. URL rewrite rules. To modify server variables within the response header from a backend web app using Azure Application Gateway, URL rewrite rules must be configured.
Question
You have an Azure application gateway named AppGW1 that balances requests to a web app named App1. You need to modify the server variables in the response header of App1. What should you configure on AppGW1?
Options
- AURL rewrite rules
- Bpath-based rules
- Clisteners
- DHTTP settings
How the community answered
(36 responses)- A81% (29)
- B11% (4)
- C6% (2)
- D3% (1)
Why each option
To modify server variables within the response header from a backend web app using Azure Application Gateway, URL rewrite rules must be configured.
Azure Application Gateway's URL rewrite rules feature allows for the modification of various aspects of a request or response, including headers and server variables. By configuring rewrite rules, you can specifically target and alter server variables in the response header before it is sent back to the client.
Path-based rules are used for routing requests to different backend pools based on the URL path, not for modifying response headers or server variables.
Listeners define how Application Gateway accepts incoming client connections (e.g., ports, protocols, SSL certificates), but they do not provide functionality to modify response headers.
HTTP settings define properties for how Application Gateway communicates with the backend pool (e.g., port, protocol, cookie affinity), but they do not directly offer capabilities to modify response headers.
Concept tested: Application Gateway response header modification
Source: https://learn.microsoft.com/en-us/azure/application-gateway/rewrite-http-headers-url
Community Discussion
No community discussion yet for this question.