AZ-700 Question 204
Select 2You have deployed an Azure Application Gateway to distribute traffic to a set of backend web servers. Your application must receive the original host header for licensing checks, and you also need session-based persistence. Which two settings should you configure in the Application Gateway� HTTP settings to fulfill these requirements? (Choose two.)
- A
Disable the 'Override with a specific domain name' setting
- B
Enable 'Cookie-based affinity'
- C
Enable 'Override with a specific domain name' and provide the custom domain
- D
Specify a custom path override (e.g., /myapp/)
- E
Configure Connection Draining
Show answer and explanation
Correct answers: A, B
Explanation
To configure HTTP settings on an Azure Application Gateway so that the backend servers receive the original host header (critical for applications relying on it) and to maintain session-based persistence, you must disable overrides that would replace or modify the incoming host header and enable cookie-based affinity. Refer to Microsoft Documentation on Azure Application Gateway (https://learn.microsoft.com/azure/application-gateway/configuration-overview#http-settings) to see how host header preservation and cookie-based affinity are configured under HTTP settings.
- A. Correct.
Option 1: Correct. Disabling the 'Override with a specific domain name' means the Application Gateway will pass the original host header to the backend, preserving upstream data needed for licensing checks.
- B. Correct.
Option 2: Correct. Enabling 'Cookie-based affinity' ensures that each client stays on the same backend server, providing session persistence.
- C. Incorrect.
Option 3: Incorrect. Enabling this override would replace the original host header with a custom domain name, which would break the licensing checks that depend on the original host header.
- D. Incorrect.
Option 4: Incorrect. Specifying a custom path override adjusts the path portion of the request, not the host header or session affinity. It� unrelated to preserving the original host header or managing session-based persistence.
- E. Incorrect.
Option 5: Incorrect. Connection Draining is useful when removing backend instances but does not affect host headers or session-based persistence settings.