Microsoft Exam Questions

You have a shared library named PolicyLib that contains functionality common to all ASP.NET Core web

The PolicyLib library must:
• Exclude non-user actions from Application Insights telemetry.
• Provide methods that allow a web service to scale itself.
• Ensure that scaling actions do not disrupt application usage.
Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.

Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.

You need to meet the scaling requirements for Policy Service.

What should you store in Azure Redis Cache?

A. TempData
B. HttpContext.Items
C. ViewState

D. Session state

Explanation:
Azure Cache for Redis provides a session state provider that you can use to store your session state in-memory with Azure Cache for Redis instead of a SQL Server database.

Scenario: You have a shared library named PolicyLib that contains functionality common to all ASP.NET Core web services and applications. The PolicyLib library must:
Ensure that scaling actions do not disrupt application usage.

References:
https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-aspnet-session-state-provider