Azure App Service Web Apps · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions

A company hosts an ASP.NET Core web app in Azure App Service. The company requires every request sent over HTTP to be redirected automatically to HTT…

Practice question from Azure App Service Web Apps (AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions), with the correct answer and a step-by-step solution.

easy · MCQ · Q-E90EB8

A company hosts an ASP.NET Core web app in Azure App Service. The company requires every request sent over HTTP to be redirected automatically to HTTPS. Which App Service setting should be enabled?

  1. A.ARR Affinity
  2. B.Always On
  3. C.HTTPS OnlyCorrect answer
  4. D.WebSockets

Solution

Enable HTTPS Only. App Service redirects HTTP requests to HTTPS when this setting is enabled. A valid TLS certificate must also be configured for the custom domain if one is used.

More from Azure App Service Web Apps

All of Azure App Service Web Apps

Practise more Develop Azure Compute Solutions

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed