To permit a user to truncate tables only within schemaA, which X and Y tokens should be used in the GRANT statement?

Prepare for the Fabric Analytics Engineer Associate Test with comprehensive materials. Explore flashcards, multiple choice questions, and detailed explanations. Get ready for your success!

Multiple Choice

To permit a user to truncate tables only within schemaA, which X and Y tokens should be used in the GRANT statement?

Explanation:
Truncating a table requires ALTER permission on the target table. Granting ALTER at the schema level gives that necessary capability for all tables inside that schema, without opening up rights to objects outside the schema. So using ALTER on SCHEMA::schemaA lets the user truncate any table in schemaA, while still keeping other schemas and broader database permissions off-limits. Other options don’t fit the goal: CONNECT on a schema isn’t a valid or relevant permission for truncation; EXECUTE on a schema is about running procedures or functions; ALTER on the database is too broad, affecting the entire database rather than just the specific schema.

Truncating a table requires ALTER permission on the target table. Granting ALTER at the schema level gives that necessary capability for all tables inside that schema, without opening up rights to objects outside the schema. So using ALTER on SCHEMA::schemaA lets the user truncate any table in schemaA, while still keeping other schemas and broader database permissions off-limits.

Other options don’t fit the goal: CONNECT on a schema isn’t a valid or relevant permission for truncation; EXECUTE on a schema is about running procedures or functions; ALTER on the database is too broad, affecting the entire database rather than just the specific schema.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy