exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 101 discussion

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

DRAG DROP -
You need to implement triggers to automate responses to the following events:
✑ SQL Server logons
✑ Database schema changes
✑ Database updates
Which trigger types should you use? To answer, drag the appropriate trigger types to the appropriate scenarios. Each trigger type 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:
Box 1: LOGON -
Logon triggers fire stored procedures in response to a LOGON event. This event is raised when a user session is established with an instance of SQL Server.

Box 2: INSTEAD OF INSERT -
An "INSTEAD of trigger" is executed instead of the original operation, and not combining with the operation. INSTEAD OF triggers override the standard actions of the triggering statement. It can be used to bypass the statement and execute a whole different statement, or just help us check and examine the data before the action is done.

Box 3: DDL -
DDL statements (CREATE or ALTER primarily) issued either by a particular schema/user or by any schema/user in the database
Note:
You can write triggers that fire whenever one of the following operations occurs:
✑ DML statements (INSERT, UPDATE, DELETE) on a particular table or view, issued by any user
✑ DDL statements (CREATE or ALTER primarily) issued either by a particular schema/user or by any schema/user in the database
✑ Database events, such as logon/logoff, errors, or startup/shutdown, also issued either by a particular schema/user or by any schema/user in the database
References:
https://docs.oracle.com/cd/B19306_01/server.102/b14220/triggers.htm https://social.technet.microsoft.com/wiki/contents/articles/28152.t-sql-instead-of-triggers.aspx https://docs.microsoft.com/en-us/sql/relational-databases/triggers/logon-triggers?view=sql-server-2017

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
Anette
Highly Voted 4 years, 10 months ago
correct
upvoted 23 times
databasejamdown
4 years, 6 months ago
Agree with this
upvoted 2 times
...
...
TheDUdeu
Most Recent 4 years, 5 months ago
Looks good to me. Seems like the 70-762 questions are more accurate then the 70-761 questions.
upvoted 2 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