SnowPro Core Certification — Question 392

A sales table FCT_SALES has 100 million records.

The following query was executed:

SELECT COUNT (1) FROM FCT_SALES;

How did Snowflake fulfill this query?

Answer options

Correct answer: D

Explanation

The correct answer is D because Snowflake can efficiently return the count of rows by accessing information stored in the metadata cache, which holds the number of rows in each micro-partition. The other options, such as querying result set or virtual warehouse caches, are not applicable for a COUNT operation that needs precise row counts.