DAA-C01 · Question #114
How do materialized views differ from regular views in terms of data access and storage?
The correct answer is B. Materialized views provide precomputed snapshots, unlike regular views. B is correct because materialized views physically store the results of a query on disk as a precomputed snapshot, meaning data is read directly from stored rows rather than re-executing the underlying query each time - unlike regular views, which are just saved SQL definitions…
Question
How do materialized views differ from regular views in terms of data access and storage?
Options
- ARegular views offer better storage optimization compared to materialized views.
- BMaterialized views provide precomputed snapshots, unlike regular views.
- CMaterialized views restrict data access for improved security.
- DRegular views enhance data accessibility more effectively than materialized views.
How the community answered
(64 responses)- A2% (1)
- B95% (61)
- D3% (2)
Explanation
B is correct because materialized views physically store the results of a query on disk as a precomputed snapshot, meaning data is read directly from stored rows rather than re-executing the underlying query each time - unlike regular views, which are just saved SQL definitions that run the query fresh on every access.
A is wrong because regular views use no storage at all (they're virtual); materialized views are the ones that consume disk space, so regular views have no "storage optimization" advantage.
C is wrong because materialized views have nothing inherently to do with access restriction - that's a job for permissions, roles, and row-level security, not the materialized vs. regular distinction.
D is wrong because regular views don't inherently "enhance accessibility" over materialized views; if anything, materialized views can improve read performance for complex queries since the data is precomputed.
Memory tip: Think of "materialized" as "made material" - the query result has been physically manifested into stored data. A regular view is just a recipe (SQL definition); a materialized view is the pre-cooked meal sitting in the fridge ready to serve.
Topics
Community Discussion
No community discussion yet for this question.