70-465 · Question #59
You need to recommend a solution that addresses the security requirement. What should you recommend?
The correct answer is C. Deny the users SELECT permission on the tables. This question tests understanding of SQL permission management, specifically using DENY to explicitly block SELECT access on database tables for certain users.
Question
Options
- ARevoke user permissions on the tables.
- BGrant the users the SELECT permission on the tables.
- CDeny the users SELECT permission on the tables.
- DDeny the users the SELECT permission on the tables.
How the community answered
(48 responses)- A2% (1)
- B4% (2)
- C92% (44)
- D2% (1)
Why each option
This question tests understanding of SQL permission management, specifically using DENY to explicitly block SELECT access on database tables for certain users.
Revoking permissions only removes previously granted permissions but does not explicitly block access; if users inherit SELECT rights through a role or group membership, revoking individual permissions would not prevent that access.
Granting SELECT permission would give users the ability to read data from the tables, which is the opposite of a security restriction requirement.
Using DENY SELECT on the tables explicitly prohibits the specified users from reading table data, and DENY takes precedence over any GRANT permissions that may be assigned directly or through role membership. This is the correct approach when you need to ensure users cannot access sensitive data regardless of other permissions they may inherit, as DENY overrides conflicting GRANT permissions in the SQL permission hierarchy.
Choice D is functionally identical in wording to Choice C ('Deny the users the SELECT permission on the tables'), making C and D duplicates; C is selected as correct, meaning D represents an identical but non-selected option in this question context.
Concept tested: SQL database DENY permission overriding inherited grants
Source: https://learn.microsoft.com/en-us/sql/t-sql/statements/deny-object-permissions-transact-sql
Topics
Community Discussion
No community discussion yet for this question.