AZ-700 · Question #37
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 B. rewrites. Azure Application Gateway's rewrite feature allows you to add, modify, or delete HTTP request and response headers, as well as rewrite URLs. Modifying server variables in response headers (such as the 'Server' or 'X-Powered-By' header) is accomplished by configuring rewrite…
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
- AHTTP settings
- Brewrites
- Crules
- Dlisteners
How the community answered
(14 responses)- B79% (11)
- C14% (2)
- D7% (1)
Explanation
Azure Application Gateway's rewrite feature allows you to add, modify, or delete HTTP request and response headers, as well as rewrite URLs. Modifying server variables in response headers (such as the 'Server' or 'X-Powered-By' header) is accomplished by configuring rewrite rules on AppGW1. HTTP settings (A) control how AppGW communicates with backend servers (protocol, port, cookie affinity). Rules (C) define the overall routing logic (listener → backend mapping). Listeners (D) define what front-end traffic AppGW accepts. None of A, C, or D provide the ability to inspect or modify response headers.
Community Discussion
No community discussion yet for this question.