ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 5 - ADA-C01 discussion

Report
Export

If the query matches the definition, will Snowflake always dynamically rewrite the query to use a materialized view?

A.
No, because joins are not supported by materialized views.
Answers
A.
No, because joins are not supported by materialized views.
B.
No, because the optimizer might decide against it.
Answers
B.
No, because the optimizer might decide against it.
C.
No, because the materialized view may not be up-to-date.
Answers
C.
No, because the materialized view may not be up-to-date.
D.
Yes, because materialized views are always faster.
Answers
D.
Yes, because materialized views are always faster.
Suggested answer: B

Explanation:

Snowflake's query optimizer can automatically rewrite queries against the base table or regular views to use the materialized view instead, if the query matches the definition of the materialized view1. However, this is not always guaranteed, as the optimizer might decide against using the materialized view based on various factors, such as the freshness of the data, the size of the result set, the complexity of the query, and the availability of the materialized view2. Therefore, the answer is no, because the optimizer might decide against it.

asked 23/09/2024
Xiaoyi Wu
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first