Monitoring Flashcards

1
Q

Automatically warns of potential performance problems and/or failure anomalies in your web application by sending alerts.
It performs proactive analysis of telemetry sent to Application Insights

A

Smart Detection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

** Azure Activity Log ** category that contains the record of all
* create,
* update,
* delete
* action operations

performed through Resource Manager.

A

Administrative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Azure Activitivity Log category that contains all the records of any Service Health incident

A

Service Health

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Azure Activity Log Category that contains all the resource health events of your Azure Resources

A

Resource Health

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Azure Activity Log category that contains all automatic scaling events defined in subscription

A

Autoscale

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Azure Activity Log category that contains all records of activation of Alerts

A

Alert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Azure Activity Log category that contains all action operations performed by Azure Policy

A

Policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which libraries for distributed tracing are supported by Application Insights ?

A

The following libraries are supported:
* OpenTelemetry - available for .NET, Python, Java and JavaScript
* OpenCensus - mostly used for Python projects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which Application Insights SDKs are available?

A

The following libraries are available as App Insights SDK:
* .NET
* .NET Core
* Java
* Node.js
* JavaScript
* Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which fields used by telemetry in Application Insights can define the causality order of telemetry calls?

A

The fields are:
* operation_id
* operation_parentId
* request.id with dependency.id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a .NET Core project, how can you modify a Web App to send telemetry data to Application Insights at a fixed sampling rate by modifying its code?

A

You can set fixed or dynamis sampling:
* on Startup.cs before .NET 6
* on Program.cs if your project is .NET 6 or higher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In a .NET Framework project, how can you modify a Web App to send telemetry data to **Application Insights ** at a fixed sampling rate by modifying its code?

A

You can modify the ApplicationInsights.config file and set your rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You have to compare the hourly CPU usage of an application for 24 hours. You should visualize a graph that has a threshold line at 75%

performanceCounters
| summarize avg(value), 
   by cloud_RoleInstance, ???
| ??? Threshold = 75
| where TimeGenerated > ago(1d)

Choose the values to complete the query:
* bin(TimeGenerated, 1d)
* bin(TimeGenerated, 1h)
* extend
* project
* render timechart

A
performanceCounters
| summarize avg(value), by cloud_RoleInstance, bin(TimeGenerated, 1h)
| render timechart Threshold = 75
| where TimeGenerated > ago(1d)

where counter == “% Processor Time”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You need to query the amount of free memory available on a Web App in the last seven days, using the query below:

Perf
| where ???
| where Computer == "ComputerName"
| where CounterName == "Available MBs"
| summarize avg(CounterValue) by ???
| render timechart

Complete the first term:
* TimeGenerated > ago(7d)
* TimeGenerated < ago(7d)
* TimeGenerated == ago(7d)

Complete the second term:
* bin(TimeGenerated, 1d)
* bin(TimeGenerated, 1h)
* dcount(CounterName)

A
Perf
| where TimeGenerated > ago(7d)
| where Computer == "ComputerName"
| where CounterName == "Available MBs"
| summarize avg(CounterValue) by bin(TimeGenerated,1h)
| render timechart
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Made a query of an application that return all 404 errors around the city of Paris and London. The request has to be happened in the last hour and the columns to be shown are timestamp url, resultCode and duration.

requests
| where resultCode == “404”
and (client_City == “London” or client_City == “Paris”)
| where ???
| ??? timestamp, url, resultCode, duration

Choose the terms here (you can use them more than once):
* extend
* project
* select
* timestamp >= ago(1hr)
* timestamp -gt agot(1hr)

where ???

A

requests
where resultCode == “404”
and (client_City == “London” or client_City == “Paris”)
| project timestamp, url, resultCode, duration

| where timestamp >= ago(1hr)

project timestamp, url, resultCode, duration | where timestamp >= ago(1hr)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can you create an availability test ?

A
  1. Enter in your app Application Insights
  2. Go to Availability panel, then select Add Classic Test
  3. Set a test name
  4. select URL ping for SKU
  5. Set the URL to be tested
  6. You can also set the Test Locations , Test Frequency and Enable Retries or Parse dependent requests if needed
17
Q

What does it happen if you check Parse dependent requests for an availability test ? You can see an example here.

A

When you check Parse dependent request the URL shuld charge all images, scripts, styles and files needed on your webpage. The response time will include the time taken to get all these assets.
The test fails if any of the resources can’t be successfully download within the timeout.

18
Q

Which are the Success criteria established for an availability test?

A

The success criteria are the following:
* Test timeout - the site should answer successfully within a certain period of time
* HTTP response - The URL response should present a certain response code; generally we expect an URL to return 200 OK
* Content Match - You can test an exact case sensitive match for a string in response. Only english characters are supported

19
Q

For which SaaS services could Azure Defender for cloud send the Security alerts?

A

The following SaaS can receive security alerts:
* Azure App Service
* Azure Blob Storage
* Azure Container Strategy
* Azure Cosmos DB
* Azure Data Storage
* Azure Database (for MySQL/for PostgreSQL)
* Azure Files
* Azure Key Vault
* Azure Kubernetes Service
* Azure SQL (Database/Managed Instance)
* Azure Subscription

20
Q

Which are the Azure Feeds roles in order of privileges, from lowest to highest?

A
  1. Reader
  2. Collaborator
  3. Contributor
  4. Administrator/Owner