nerdexam
Microsoft

70-459 · Question #8

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…

The correct answer is C. Grant User1 the EXECUTE permission on sp1. See the full explanation below for the reasoning.

Question

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?

Options

  • AGrant User1 the INSERT permission on Table2.
  • BAdd User1 to the db_datawriter role.
  • CGrant User1 the EXECUTE permission on sp1.
  • DChange sp1 to run as the sa user.

How the community answered

(58 responses)
  • A
    2% (1)
  • B
    10% (6)
  • C
    81% (47)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full 70-459 Practice