ExamGecko
Question list
Search
Search

List of questions

Search

Question 30 - DEA-C01 discussion

Report
Export

David, a Lead Data engineer with XYZ company looking out to improve query performance & oth-er benefits while working with Tables, Regular Views, MVs and Cached Results.

Which one of the following does not shows key similarities and differences between tables, regular views, cached query results, and materialized views while choosing any of them by David?

A.
Regular views do not cache data, and therefore cannot improve performance by cach-ing.
Answers
A.
Regular views do not cache data, and therefore cannot improve performance by cach-ing.
B.
As with non-materialized views, a materialized view automatically inherits the privileges of its base table.
Answers
B.
As with non-materialized views, a materialized view automatically inherits the privileges of its base table.
C.
Cached Query Results: Used only if data has not changed and if query only uses de-terministic functions (e.g. not CURRENT_DATE).
Answers
C.
Cached Query Results: Used only if data has not changed and if query only uses de-terministic functions (e.g. not CURRENT_DATE).
D.
Materialized views are faster than tables because of their "cache" (i.e. the query results for the view); in addition, if data has changed, they can use their "cache" for data that hasn't changed and use the base table for any data that has changed.
Answers
D.
Materialized views are faster than tables because of their "cache" (i.e. the query results for the view); in addition, if data has changed, they can use their "cache" for data that hasn't changed and use the base table for any data that has changed.
E.
Both materialized views and regular views enhance data security by allowing data to be exposed or hidden at the row level or column level.
Answers
E.
Both materialized views and regular views enhance data security by allowing data to be exposed or hidden at the row level or column level.
Suggested answer: B

Explanation:

Materialized Views, like other database objects (tables, views, UDFs, etc.), are owned by a role and have privileges that can be granted to other roles.

You can grant the following privileges on a materialized view:

SELECT

As with non-materialized views, a materialized view does not automatically inherit the privileges of its base table. You should explicitly grant privileges on the materialized view to the roles that should use that view.

As with non-materialized views, a user who wishes to access a materialized view needs privileges only on the view, not on the underlying object(s) that the view references.

Rest is correct.

asked 23/09/2024
David Ezejimofor
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first