exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 248 discussion

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

Your company has a SQL Azure subscription.
You implement a database named Database1. Database1 has two tables named Table1 and Table2.
You create a stored procedure named sp1. Sp1 reads data from Table1 and inserts data into Table2.
A user named User1 informs you that he is unable to run sp1.
You verify that User1 has the SELECT permission on Table1 and Table2.
You need to ensure that User1 can run sp1.
The solution must minimize the number of permissions assigned to User1.
What should you do?

  • A. Grant User1 the INSERT permission on Table2.
  • B. Add User1 to the db_datawriter role.
  • C. Change sp1 to run as the sa user.
  • D. Grant User1 the EXECUTE permission on sp1.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
References: http://msdn.microsoft.com/en-us/library/ms191291.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
V_karag
4 years, 11 months ago
Insert permission is also required. Granting execute permission guarantees that the user will overcome the error. But if he tries to insert data via sp1 he will get permission denied error as well.
upvoted 1 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 ...