exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 159 discussion

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

HOTSPOT -
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review scree will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.

To start the case study -
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements. Existing environment, and problem statements. If the case study has an
All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.

Background -
You have a database named Sales.
The Customer table includes a column that stores the date for the last order that the customer placed.
You plan to create a table named Leads. The Leads table is expected to contain approximately 20,000 records. Storage requirements for the Leads table must be minimized.

Tables -

You need to create triggers on the Orders table that meet the following requirements:
✑ Optimize the performance and data integrity of the tables.
✑ Display a custom error if a user attempts to create an order for a customer that does not exist.
✑ In the Customers table, update the value for the LastOrderPlaced field.
✑ Complete all actions as part of the original transaction.
In the table below, identify the trigger types that meet the requirements.
NOTE: Make only selection in each column. Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Display Custom Error: INSTEAD OF INSERT trigger
Before we insert, we check if the customer already exist or not.
Update Customer table: AFTER UPDATE trigger
References:
https://docs.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql

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
RobKozak
Highly Voted 5 years, 4 months ago
It should be an AFTER INSERT trigger to update the customer table. The update to LastOrderPlaced is dependent on the insertion of a new record on the orders table.
upvoted 50 times
Anette
4 years, 11 months ago
Agree and this question is similar with Q3.
upvoted 4 times
...
Supersevi
5 years, 1 month ago
Agree with you.
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 ...