Bird
0
0

Which of the following is a key advantage of using views for security in PostgreSQL?

easy📝 Conceptual Q2 of 15
PostgreSQL - Views and Materialized Views
Which of the following is a key advantage of using views for security in PostgreSQL?
AViews encrypt the data automatically
BViews prevent all users from querying the database
CViews can restrict access to specific columns or rows without changing the base table
DViews create backups of the data
Step-by-Step Solution
Solution:
  1. Step 1: Understand how views control data visibility

    Views can show only selected columns or rows, hiding sensitive data from users.
  2. Step 2: Recognize the security benefit

    This selective visibility allows controlling what users can see without altering the original tables.
  3. Final Answer:

    Views can restrict access to specific columns or rows without changing the base table -> Option C
  4. Quick Check:

    Views restrict data access = B [OK]
Quick Trick: Use views to limit data exposure without changing tables [OK]
Common Mistakes:
  • Believing views encrypt data
  • Thinking views block all user queries
  • Confusing views with backup tools

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes