exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 11 question 5 discussion

Actual exam question from Microsoft's AZ-203
Question #: 5
Topic #: 11
[All AZ-203 Questions]

DRAG DROP -
You need to ensure that PolicyLib requirements are met.
How should you complete the code segment? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
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:
✑ 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.

Box 1: ITelemetryInitializer -
Use telemetry initializers to define global properties that are sent with all telemetry; and to override selected behavior of the standard telemetry modules.

Box 2: Initialize -

Box 3: Telemetry.Context -
Box 4: [(EventTelemetry)telemetry.Properties("EventID")
References:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling

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
sinh
4 years, 8 months ago
https://www.examtopics.com/assets/media/exam-media/02838/n41147000003.jpg
upvoted 4 times
...
realbart
5 years, 2 months ago
Also: how does registring event id's at a different level help fill the requirements?
upvoted 1 times
...
realbart
5 years, 2 months ago
public void Initialize(ITelemetry telemetry) { // 'TelemetryContext.Properties' is Obsolete: // 'Use GlobalProperties to set global level properties. For properties at item level, use ISupportProperties.Properties.' //telemetry.Context.Properties["EventId"] = ((EventTelemetry)telemetry).Properties["EventId"]; telemetry.Context.GlobalProperties["EventId"] = ((EventTelemetry)telemetry).Properties["EventId"]; }
upvoted 1 times
...
purav1009
5 years, 3 months ago
Options please :-)
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 ...