What should you store in Azure Redis Cache?

Case Study: 2

Background

Requirements

You are a developer for Proseware, Inc. You are developing an application that

applies a set of governance policies for Proseware’s internal services, external

services, and applications. The application will also provide a shared Horary for

common functionality.

Policy service

You develop and deploy a stateful ASP.NET Core 21 web application named Policy service to an Azure App Service Web App. The application reacts to events from Azure Event Grid and performs policy actions based on those events.

The application must include the Event Grid Event ID field in all Application Insights telemetry.

Policy service must use Application Insights to automatically scale with the number

of policy actions that it is performing.

Policies

Log policy

All Azure App Service Wet) Apps must write logs to Azure Blob storage. All tog files should be saved to a container named logdrop. Logs must remain in the container for 15 days.

Authentication events

Authentication events are used to monitor users signing in and signing out All authentication events must be processed by PoScy service Sign outs must be processed as quickly as possible

Policy Lib

You have a shared library named Policy Lib that contains functionality common to all

ASP.NET Core web services and applications.

The Policy Lib 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.

Other

Anomaly detection service

You have an anomaly detection service that analyzes log information for anomalies. It is implemented as an Azure Machine learning model. The model is deployed as a web service.

If an anomaly is detected, an Azure Function that emails administrators is called by using an HTTP WebHook.

Hearth monitoring

All web applications and services have health monitoring at the /health service endpoint

Issues

Policy loss

When you deploy Policy service, policies may not be applied if they were m the process of being applied during the deployment.

Performance issue

When under heavy load, the anomaly detection service undergoes slowdowns and rejects connections.

Notification latency

Users report that anomaly detection emails can sometimes arrive several minutes after an anomaly is detected.

App code

EventGridController.cs

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.

LoginEvent.cs

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 . ViewState
B . HttpContext.tems
C . Session state
D . TempData

Answer: B

Latest AZ-300 Dumps Valid Version with 283 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments