Q: 20
HOTSPOT You have an Azure application gateway. You need to create a rewrite rule that will remove the origin port from the HTTP header of incoming requests that are being forwarded to the backend pool. How should you configure each setting? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Your Answer
Discussion
Which HTTP header would you target for removing just the port info in this rewrite?
Makes sense-you want to strip just the port. Set X-Forwarded-Host header to
host.I think you'd want to use X-Forwarded-For here instead of X-Forwarded-Host, since that's a common trap on this type of rewrite.
If the question asked for the most secure config instead of just removing the port, would setting a custom header change your choice? Official guide and exam labs have conflicting approaches sometimes.
Be respectful. No spam.
