Developing Solutions for Microsoft Azure — Question 3
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You are developing and deploying several ASP.NET web applications to Azure App Service. You plan to save session state information and HTML output.
You must use a storage mechanism with the following requirements:
✑ Share session state across all ASP.NET web applications.
✑ Support controlled, concurrent access to the same session state data for multiple readers and a single writer.
✑ Save full HTTP responses for concurrent requests.
You need to store the information.
Proposed Solution: Deploy and configure an Azure Database for PostgreSQL. Update the web applications.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: B
Explanation
The solution does not meet the goal because Azure Database for PostgreSQL does not inherently support the requirements for sharing session state across multiple ASP.NET applications, nor does it provide controlled concurrent access for multiple readers and a single writer in a way that is optimal for session management. A more appropriate solution would involve using a distributed caching mechanism like Azure Cache for Redis, which is designed for these specific scenarios.