Skip to content

AZ-700 · Domain 3: Design and implement application delivery services · 18% of the exam

Task 3.2: Design and implement Azure Application Gateway

Application Gateway use cases and scaling, backend pools, health probes, listeners, routing rules, backend settings, TLS and rewrite rule sets.

Study it

  • Application Gateway: listeners, routing rules, probes, backend settings, TLS and rewrites

    Partly covered by: Load Balancing

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

An Application Gateway v2 has these scaling settings and state: Scaling mode: Autoscale; Minimum instance count: 2; Maximum instance count: 20; Current instance count: 14. To cap costs, you change the maximum instance count to 10 while traffic is still high. What happens?

  1. AThe gateway removes four instances at once to meet the new maximum
  2. BThe change is rejected, because the maximum instance count can't be set below the gateway's current instance count
  3. CThe 14 instances stay until a scale-in brings the count below 10, and the new maximum applies from then on
  4. DThe gateway switches to manual mode with a fixed count of 10
Show the answer and why
  • AThe gateway removes four instances at once to meet the new maximum

    Incorrect

    A maximum below the current count doesn't take effect immediately.

  • BThe change is rejected, because the maximum instance count can't be set below the gateway's current instance count

    Incorrect

    The update is accepted; it's only enforced later.

  • CThe 14 instances stay until a scale-in brings the count below 10, and the new maximum applies from then on

    Correct

    The new maximum is enforced only after a scale-in operation brings the current count below it.

  • DThe gateway switches to manual mode with a fixed count of 10

    Incorrect

    Changing the maximum doesn't change the scaling mode.

When the maximum instance count of an autoscaling gateway is set below the current count, the new maximum isn't enforced right away; it applies once a scale-in operation brings the count under it.

Question 2 · choose 1

An Application Gateway v2 sends traffic to an App Service app: Backend pool: contoso-app.azurewebsites.net; Backend setting: HTTPS 443, Pick host name from backend address: No, no host name override; Health probe: Default probe. Clients reach the gateway on www.contoso.com, which isn't configured on the app. Backend health shows the app as unhealthy. What should you configure?

  1. AA custom probe with path / and host 127.0.0.1
  2. BThe app's inbound IP address as the backend pool member
  3. CA custom probe with a longer timeout
  4. DPick host name from backend address in the backend setting, with a custom probe that takes its host name from the backend setting
Show the answer and why
  • AA custom probe with path / and host 127.0.0.1

    Incorrect

    An App Service app answers only the host names configured for it, and 127.0.0.1 is what the default probe sends already.

  • BThe app's inbound IP address as the backend pool member

    Incorrect

    App Service is multitenant and shares its IP address, so it needs the host name, not an address.

  • CA custom probe with a longer timeout

    Incorrect

    The probe already gets an answer; the host name it sends, and the one requests carry, is the problem.

  • DPick host name from backend address in the backend setting, with a custom probe that takes its host name from the backend setting

    Correct

    The requests and the probes then carry the app's own host name, which the multitenant service answers.

App Service shares one IP address between tenants and serves only the host names configured for an app. The default probe sends 127.0.0.1 unless the backend setting provides a host name, so pick the host name from the backend address for requests, and let a custom probe use the backend setting's host name.

Question 3 · choose 1

During rolling deployments, VMs leave an Application Gateway backend pool, and clients downloading large reports, which take up to 10 minutes, get cut off. The backend setting was last changed with az network application-gateway http-settings update --gateway-name agw-prod --resource-group rg-web --name bs-reports --connection-draining-timeout 0. What should you change in bs-reports?

  1. ASet the connection draining timeout to 900 seconds
  2. BSet the request timeout to 900 seconds
  3. CEnable cookie-based affinity
  4. DAssociate a custom probe with a shorter interval
Show the answer and why
  • ASet the connection draining timeout to 900 seconds

    Correct

    A value of 0 disables draining; with 900 seconds, deregistering VMs get no new requests but keep existing connections for longer than a download takes.

  • BSet the request timeout to 900 seconds

    Incorrect

    The request timeout is how long the gateway waits for a backend response; it doesn't keep connections to a VM that is leaving the pool.

  • CEnable cookie-based affinity

    Incorrect

    Affinity keeps a user's requests on one server; it doesn't hold connections open while a server is removed.

  • DAssociate a custom probe with a shorter interval

    Incorrect

    A probe decides whether a server gets traffic; it doesn't let transfers in progress finish.

Connection draining, enabled in the backend setting with a timeout from 1 to 3,600 seconds, stops new requests to deregistering instances while existing connections continue until the timeout. Set it above the longest expected client transfer time; 0 disables it.

Question 4 · choose 1

Partners allow-list the frontend public IP address of your Application Gateway v2. You'll restart the gateway during maintenance. What happens to that address?

  1. AIt changes, so the partners must update their allow lists after every restart
  2. BIt changes unless you reserve it in a public IP prefix first
  3. CIt stays only if autoscaling is turned off
  4. DIt stays the same for the lifecycle of the deployment, restarts included
Show the answer and why
  • AIt changes, so the partners must update their allow lists after every restart

    Incorrect

    The v2 SKU supports only static VIPs, which don't change.

  • BIt changes unless you reserve it in a public IP prefix first

    Incorrect

    No prefix is needed; the VIP is static.

  • CIt stays only if autoscaling is turned off

    Incorrect

    The scaling mode doesn't affect the VIP.

  • DIt stays the same for the lifecycle of the deployment, restarts included

    Correct

    Static VIP keeps the gateway's VIP unchanged for the deployment's lifecycle, even after a restart.

Application Gateway v2 supports the static VIP type exclusively, so the VIP associated with the gateway doesn't change for the lifecycle of the deployment, even after a restart.

Question 5 · choose 1

An Application Gateway custom probe checks /status on backend servers that answer it with HTTP 401 when the service is up. The servers show as unhealthy. You can't change the servers. What should you do?

  1. AAdd probe matching that accepts the 401 status code
  2. BUse the default probe instead of the custom probe
  3. CRaise the probe's unhealthy threshold
  4. DLower the probe interval
Show the answer and why
  • AAdd probe matching that accepts the 401 status code

    Correct

    Custom probes support a status code match criterion that changes what counts as healthy.

  • BUse the default probe instead of the custom probe

    Incorrect

    The default probe treats only codes from 200 to 399 as healthy, so 401 still fails.

  • CRaise the probe's unhealthy threshold

    Incorrect

    Every response is a 401, so a higher threshold only delays the same result.

  • DLower the probe interval

    Incorrect

    Probing more often doesn't change how a 401 is judged.

By default an HTTP or HTTPS probe response from 200 to 399 is healthy. Custom probes add matching criteria, a status code match or a response body match, to change that interpretation.

Question 6 · choose 1

You add an HTTPS listener to an Application Gateway so that it terminates TLS for www.contoso.com. What must the listener have?

  1. AA backend setting that uses HTTPS
  2. BA TLS certificate in PFX format, uploaded or referenced from Key Vault
  3. CA custom health probe on port 443
  4. DA public IP address dedicated to www.contoso.com on the gateway's frontend
Show the answer and why
  • AA backend setting that uses HTTPS

    Incorrect

    TLS termination is configured on the listener; backend HTTPS is a separate, end-to-end option.

  • BA TLS certificate in PFX format, uploaded or referenced from Key Vault

    Correct

    To configure TLS termination, a certificate in PFX format must be added to the listener.

  • CA custom health probe on port 443

    Incorrect

    Probes check backends; they don't terminate client TLS.

  • DA public IP address dedicated to www.contoso.com on the gateway's frontend

    Incorrect

    Listeners can share a frontend IP; the certificate is what TLS needs.

An HTTPS listener terminates TLS with a certificate in Personal Information Exchange (PFX) format, uploaded to the gateway or referenced from Key Vault.

Practice domain 3 →Practice all domains →