70-465 · Question #111
You work as a Database Administrator (DBA) for a company named ABC.com. The company uses a Microsoft SQL Server 2012 infrastructure. Computer users use custom applications that store data in SQL…
The correct answer is A. You should configure an alert and a job. To run an application when a specific Windows Application event log ID is generated, configure a SQL Server Agent alert to monitor the event log and then execute a SQL Server Agent job to launch the application.
Question
Options
- AYou should configure an alert and a job.
- BYou should configure an alert and a maintenance plan.
- CYou should configure a trigger and a maintenance plan.
- DYou should configure a trigger and a job.
- EYou should configure an alert and a trigger.
How the community answered
(49 responses)- A84% (41)
- B4% (2)
- C2% (1)
- D2% (1)
- E8% (4)
Why each option
To run an application when a specific Windows Application event log ID is generated, configure a SQL Server Agent alert to monitor the event log and then execute a SQL Server Agent job to launch the application.
A SQL Server Agent Alert can be configured to monitor the Windows Application event log for a specific event ID. When the alert is triggered by the event, it can then execute a SQL Server Agent Job, which can contain a step to run an operating system command or script to launch the specified application.
A maintenance plan is primarily used for routine database upkeep tasks like backups or integrity checks and is not the appropriate mechanism for executing an arbitrary application in response to a Windows event log entry.
SQL Server triggers respond to Data Manipulation Language (DML) or Data Definition Language (DDL) events occurring within the database itself, not to entries in the Windows Application event log.
SQL Server triggers monitor events related to database operations (DML/DDL) and cannot be configured to detect or respond to events in the Windows Application event log.
While an alert can detect the event, a SQL Server trigger executes T-SQL code within the database in response to database events and cannot directly execute an external application based on a Windows event log entry.
Concept tested: SQL Server Agent Alerts and Jobs for Event Response
Source: https://learn.microsoft.com/en-us/sql/ssms/agent/create-an-alert-on-an-event-id
Topics
Community Discussion
No community discussion yet for this question.