exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 119 discussion

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

You need to create a view that can be indexed.
You write the following statement.

What should you add at line 02?

  • A. with check_option
  • B. with recompile
  • C. with view_metadata
  • D. with schemabinding
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
The following steps are required to create an indexed view and are critical to the successful implementation of the indexed view:
1. Verify the SET options are correct for all existing tables that will be referenced in the view.
2. Verify that the SET options for the session are set correctly before you create any tables and the view.
3. Verify that the view definition is deterministic.
4. Create the view by using the WITH SCHEMABINDING option.
5. Create the unique clustered index on the view.
References:
https://docs.microsoft.com/en-us/sql/relational-databases/views/create-indexed-views?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
kiri2020
Highly Voted 4 years, 4 months ago
I had this question too, passed with 960 score, this exam is presented better than 761, easy to read every question, don't have to scroll requirements not related to question, it felt like every question was as easy as this one. But some questions are messed up same way as you find them here, #145 for example, same 2 options in the third dropdown. Can't use 'Select' in check constraint, but the Foreign key option refers to a wrong table, has to be Orders table. I selected foreign key option anyway.
upvoted 5 times
...
larajane
Most Recent 4 years, 5 months ago
correct :)
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