Which action should you take?

You are a database developer on an instance of SQL Server 2008. Your Inventory database contains several tables that contain information related to historical inventory transactions.
You have created a Transact-SQL stored procedure that will accept a component type, query the tables in the Inventory database, and create another table containing all finished good products that have used the specified component. Tables referenced in the stored procedure are owned by different database users.
You want to allow a user, InvUser, to call the stored procedure using Transact-SQL, but you do not want to grant the user access to the underlying tables.
Which action should you take?
A. Create an application role and grant the role the needed permissions to the stored procedure. Grant InvUser membership in the application role.
B. Create a proxy user User1, grant User1 the needed permissions, and re-create the stored procedure including an EXECUTE AS User1 clause. Grant InvUser permission to execute the stored procedure.
C. Create a certificate and associate the certificate with InvUser. Sign the procedure with the certificate.
D. Grant InvUser permission to execute the stored procedure.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.