exam questions

Exam 70-464 All Questions

View all questions & answers for the 70-464 exam

Exam 70-464 topic 1 question 119 discussion

Actual exam question from Microsoft's 70-464
Question #: 119
Topic #: 1
[All 70-464 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. Change sp1 to run as the saUser.
  • B. Grant User1 the EXECUTE permission on sp1.
  • C. Add User1 to the db_datawriter role.
  • D. Grant User1 the INSERT permission on Table2.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
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
Williamzhou
4 years, 5 months ago
Answer is correct. Execute permission on a stored procedure that does an insert, update, or delete is sufficient. user 1 does not need to grant those permissions at the table level, so revoke SELECT permission just add EXECUTE permission to match mini permission requirement.
upvoted 1 times
...
Kepty
4 years, 5 months ago
But the user also needs the permission to INSERT to t2...
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