nerdexam
Microsoft

70-339 · Question #84

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might h

The correct answer is A. Yes. Set-SPLogLevel with the -EventSeverity parameter correctly limits Windows event log entries to Error level and above in a SharePoint farm.

Install and configure SharePoint

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You are the SharePoint administrator for a company. The SharePoint environment is causing excessive information to be recorded in the diagnostic logs. You need to configure the SharePoint farm to only write events to the Windows event log that are equal to or more severe than the Error level. You run the following Windows PowerShell command:

Set-SPLogLevel -EventSeverity Error Does the solution meet the goal?

Options

  • AYes
  • BNo

How the community answered

(21 responses)
  • A
    71% (15)
  • B
    29% (6)

Why each option

Set-SPLogLevel with the -EventSeverity parameter correctly limits Windows event log entries to Error level and above in a SharePoint farm.

AYesCorrect

The Set-SPLogLevel cmdlet accepts the -EventSeverity parameter, which sets the minimum threshold for writing entries to the Windows event log across SharePoint diagnostic categories. Specifying Error ensures that only Error, Critical, and higher-severity events are logged, directly filtering out Verbose, Information, and Warning entries and satisfying the stated requirement.

BNo

Set-SPLogLevel -EventSeverity Error does correctly configure the Windows event log threshold to Error and above, so answering No is incorrect.

Concept tested: Configuring SharePoint Windows event log severity with Set-SPLogLevel

Source: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/set-sploglevel

Topics

#diagnostic logging#ULS logs#log throttle#logging configuration

Community Discussion

No community discussion yet for this question.

Full 70-339 Practice