exam questions

Exam 70-762 All Questions

View all questions & answers for the 70-762 exam

Exam 70-762 topic 1 question 83 discussion

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

HOTSPOT -

Background -
You have a database named HR1 that includes a table named Employee.
You have several read-only, historical reports that contain regularly changing totals. The reports use multiple queries to estimate payroll expenses. The queries run concurrently. Users report that the payroll estimate reports do not always run. You must monitor the database to identify issues that prevent the reports from running.
You plan to deploy the application to a database server that supports other applications. You must minimize the amount of storage that the database requires.

Employee Table -
You use the following Transact-SQL statements to create, configure, and populate the Employee table:


Application -
You have an application that updates the Employees table. The application calls the following stored procedures simultaneously and asynchronously:
✑ UspA: This stored procedure updates only the EmployeeStatus column.
✑ UspB: This stored procedure updates only the EmployeePayRate column.
The application uses views to control access to data. Views must meet the following requirements:
✑ Allow users access to all columns in the tables that the view accesses.
✑ Restrict updates to only the rows that the view returns.

Exhibit -

Users must only be able to modify data in the Employee table by using the vwEmployee view. You must prevent users from viewing the view definition in catalog views.
You need to identify the view attribute to use when creating vwEmployee.
In the table below, identify the attributes that you must use.
NOTE: Make only one selection in each column.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
References:
https://msdn.microsoft.com/en-us/library/ms187956.aspx

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
bsciprian
Highly Voted 5 years, 4 months ago
Update restriction: check option (it's about restricting) and restrict access to definition: with encryption.
upvoted 35 times
Supersevi
5 years, 2 months ago
Agree with you.
upvoted 2 times
...
Anette
4 years, 11 months ago
You mean to let SCHEMABINDING and VIEW_METADATA without linking to any column?
upvoted 1 times
Anette
4 years, 11 months ago
ok, sorry: Make only one selection in each column
upvoted 1 times
...
...
...
delgadillo
Highly Voted 4 years, 11 months ago
Update restriction -> Check option Restrict access to definition -> Encryption
upvoted 12 times
...
BrianILyas
Most Recent 4 years, 6 months ago
Views requirements ✑ Allow users access to all columns in the tables that the view accesses. ✑ Restrict updates to only the rows that the view returns. You must prevent users from viewing the view definition in catalog views Answer: Restrict access to definition -> Encryption Update restriction -> Check option
upvoted 5 times
...
TheDUdeu
4 years, 6 months ago
Check option then encryption.
upvoted 2 times
...
databasejamdown
4 years, 8 months ago
Encryption specifically restricts access to to the sys catalog so I would choose encryption Checkoption restricts which set of records can be updated not if the records can be updated. In other words, all records can be updated without check option so I would not choose this. Schemabinding is necessary for the view to be updateable. In other words, You can update the view at all without it So I would choose Schemabinding. View_metadata determinces whether we return the table definition or the view definitoin to the client. I don't this it's important here.
upvoted 1 times
databasejamdown
4 years, 8 months ago
Just reread and noticed this statement: Restrict updates to only the rows that the view returns. So I would choose Check Option over Schemabinding
upvoted 1 times
...
Alex5x
4 years, 6 months ago
"Schemabinding is necessary for the view to be updatable." There is no such a requirement for updatable views. You probably confused it with indexed views.
upvoted 1 times
...
...
Chocho
4 years, 11 months ago
the answer is right "Restrict updates to only the rows that the view returns." => check option "You must prevent users from viewing the view definition in catalog views." => encryption "You need to identify the view attribute to use when creating vwEmployee" => view_metadata
upvoted 2 times
NhiN
4 years, 5 months ago
Not correct. Choose 1 option for each column (Check option (update restriction) and Encryption (restrict access to definition) CREATE VIEW SchemaName.ViewName [WITH OPTIONS] AS SELECT statement [WITH CHECK OPTION] OPTIONS can be: SCHEMABINDING / VIEW_METADATA/ ENCRYPTION
upvoted 2 times
...
...
MML
4 years, 11 months ago
Schemabinding -> Update restriction View_metadata -> Restrict access to definition Encryption -> Restrict access to definition Check option -> Update restriction
upvoted 7 times
Anette
4 years, 11 months ago
Make only one selection in each column
upvoted 3 times
MML
4 years, 11 months ago
Encryption -> Restrict access to definition Check option -> Update restriction
upvoted 4 times
...
...
UsefJuan
4 years, 7 months ago
MML is 100% correct
upvoted 1 times
...
geekeek1
4 years, 5 months ago
CANNOT choose schemabinding option for update restriction because question says the returned rows CAN be updated which goes against schemabinding rules. So it must be "CHECK OPTION"
upvoted 1 times
...
Andy7622
4 years, 8 months ago
Schemabinding isn't an update restriction . It restricts from altering schema of underlaying tables
upvoted 4 times
...
...
Gocsan
5 years, 4 months ago
There is no meaningful answer here. The question states select one answer from each column. But the answer area contains multiple selection from each column.
upvoted 9 times
...
New_user
5 years, 5 months ago
Please explain why use check option and encryption?
upvoted 1 times
JohnFan
5 years, 3 months ago
Check option basically limits what can be modified in the VIEW to what could be returned by the VIEW object.
upvoted 2 times
...
JohnFan
5 years, 3 months ago
ENCRYPTION prevents the view from being published as part of replication. In contrast, VIEW_METADATA returns the definition from the VIEW object. This can be useful when trying to use a view like a table in an application.
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 ...