70-339 · Question #86
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 B. No. Set-SPDiagnosticConfig as used in this scenario does not correctly configure the Windows event log to record only Error-level and higher events.
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-SPDiagnosticConfig -errorReportingEnable Does the solution meet the goal?
Options
- AYes
- BNo
How the community answered
(42 responses)- A19% (8)
- B81% (34)
Why each option
Set-SPDiagnosticConfig as used in this scenario does not correctly configure the Windows event log to record only Error-level and higher events.
The Set-SPDiagnosticConfig command as presented does not properly enforce the Error-level minimum threshold for the Windows event log, making Yes incorrect.
Set-SPDiagnosticConfig configures farm-level diagnostic settings such as log file path and disk space limits, but the correct cmdlet for controlling the per-category Windows event log severity threshold is Set-SPLogLevel with the -EventSeverity parameter. Without the proper parameters or cmdlet, the proposed Set-SPDiagnosticConfig command does not achieve the granular Windows event log control required by the scenario.
Concept tested: Correct SharePoint cmdlet selection for Windows event log level control
Source: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/set-spdiagnosticconfig
Topics
Community Discussion
No community discussion yet for this question.