exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 161 discussion

Actual exam question from Microsoft's 70-486
Question #: 161
Topic #: 1
[All 70-486 Questions]

You are developing an ASP.NET Core web application. The application includes a secure area only accessible to authenticated users.
The application must:
✑ Reside on the same server as the reverse proxy.
✑ Use a reverse proxy for caching and serving static content.
✑ Use basic authentication for the secure area.
✑ Use the HTTPS protocol for the secure area.
✑ Use the HTTPS protocol for all non-secure content.
You need to deploy the application.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Use the RewriteMiddleware from Microsoft.AspNetCore.Rewrite.
  • B. Use the ForwardedHeaders middleware from Microsoft.AspNetCore.HttpOverrides.
  • C. Use Http.sys as the web server for the application and Apache on Linux as the reverse proxy.
  • D. Use Kestrel as the web server for the application and Nginx on Linux as the reverse proxy.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️
References:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-2.1 https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.1

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zimzimzimma
Highly Voted 5 years ago
Should be B and D. https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-2.1 "The Forwarded Headers Middleware, from the Microsoft.AspNetCore.HttpOverrides package, reads these headers and fills in the associated fields on HttpContext."
upvoted 8 times
...
yapi
Most Recent 5 years ago
why do we need RewriteMiddleware here?
upvoted 1 times
zimzimzimma
4 years, 11 months ago
We don't. It should be B and D. Http.sys doesn't work with a reverse proxy.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...