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?
- A.ARR Affinity
- B.Always On
- C.HTTPS OnlyCorrect answer
- 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
- A web app has production and staging deployment slots. Each slot must use a different API endpoint, and the endpoint must remain associated…
- A team wants to release a new version of an Azure App Service web app with minimal production downtime. The team has a staging slot and a p…
- An ASP.NET Core web app hosted in Azure App Service must access a database password without storing the password in source code or in a dep…
- An Azure App Service web app must make outbound calls to a private REST API hosted inside an Azure virtual network. The web app must remain…
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 freeFree to start · No credit card needed