SnowPro Advanced: Architect — Question 15

An Architect needs to grant a group of ORDER_ADMIN users the ability to clean old data in an ORDERS table (deleting all records older than 5 years), without granting any privileges on the table. The group’s manager (ORDER_MANAGER) has full DELETE privileges on the table.
How can the ORDER_ADMIN role be enabled to perform this data cleanup, without needing the DELETE privilege held by the ORDER_MANAGER role?

Answer options

Correct answer: C

Explanation

The correct answer is C because creating a stored procedure that runs with owner’s rights allows the ORDER_ADMIN users to delete records without having direct DELETE privileges on the table. Options A and B are incorrect as they do not provide the necessary privileges to execute the DELETE operation without the needed rights. Option D is incorrect because it overlooks the possibility of using stored procedures with owner’s rights to bypass the need for direct DELETE privileges.