exam questions

Exam 70-740 All Questions

View all questions & answers for the 70-740 exam

Exam 70-740 topic 1 question 239 discussion

Actual exam question from Microsoft's 70-740
Question #: 239
Topic #: 1
[All 70-740 Questions]

You have a server named Server1 that runs Windows Server 2016.
The server has an application named App1. App1 writes entries to the Application event log when errors are encountered. The events have IDs of either 111 or
112.
You need to restart the service whenever either of these events is logged.
What should you do?

  • A. From Windows PowerShell, run the Get-SMServerEvent cmdlet and pipe the output to the Start-NetEventSession cmdlet.
  • B. From Event Viewer, create a subscription that has a filter for the event IDs.
  • C. From Event Viewer, use the Create Basic Task Wizard for each event ID.
  • D. From Windows PowerShell, run the Get-Event cmdlet and pipe the output to the cmdlet. Start-NetEventSession parameter.
  • F. From Event Viewer, create a custom view that has a filter for the event IDs.
  • G. From Performance Monitor, add an Event Trace Session data collector that uses the Microsoft-Windows-Eventlog provider.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
FaisalJ
4 years, 6 months ago
Answer is correct https://www.howto-connect.com/how-to-attach-a-task-to-this-event-in-event-viewer-in-windows-10/
upvoted 1 times
...
ak1992
4 years, 6 months ago
I only know how to create a Basic Task from Task Schedule. Couldn't find Create a Basic Task in Event Viewer
upvoted 3 times
kwlogeras
4 years, 4 months ago
Select the log > Action Tab from the Menu bar > Attach Task To This Event
upvoted 1 times
...
...
jam7272
4 years, 9 months ago
C - I think Task Scheduler is the best way to do this
upvoted 1 times
...
panda
4 years, 9 months ago
I think that the given answer C is correct. This Question is for Event Viewer. >> Since G is related to Performance Monitor, it is out of selecting. Event Viewer has the function to extract events, and doesn't have the one to respond for events. >> B and F are out of selecting. I don't know why A and D are out of selecting.
upvoted 1 times
panda
4 years, 9 months ago
Start-NetEventSession starts session.(*1) It can meet to the goal to restart service. To restart service Restart-Service is needed(*2) (*1) https://docs.microsoft.com/en-us/powershell/module/neteventpacketcapture/start-neteventsession?view=win10-p (*2) https://www.middlewareinventory.com/blog/windows-service-command-line/
upvoted 1 times
...
...
Rafsan
5 years, 2 months ago
techgenix.com/Attaching-Tasks-Event-Viewer-Logs-Events/
upvoted 4 times
...
Aldrid
5 years, 4 months ago
Got that q on exam
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago