What do temporary and transient tables have m common in Snowflake? (Select TWO).
Correct Answer: A,D
Temporary and transient tables in Snowflake share several characteristics, notably, neither table type has a Fail-safe period. Fail-safe is a feature that provides additional data protection beyond the Time Travel period. However, this feature does not apply to temporary or transient tables. Additionally, for both types of tables, the data retention period effectively ends when the tables are dropped. This means that once these tables are deleted, their data is not recoverable, distinguishing them from permanent tables, which benefit from Snowflake's Time Travel and Fail-safe features. References: Snowflake Documentation on Table Types
Question 437
Which Snowflake technique can be used to improve the performance of a query?
Correct Answer: D
Question 438
Which cache type is used to cache data output from SQL queries?
Correct Answer: B
The Result cache is used in Snowflake to cache the data output from SQL queries. This feature is designed to improve performance by storing the results of queries for a period of time. When the same or similar query is executed again, Snowflake can retrieve the result from this cache instead of re-computing the result, which saves time and computational resources. References: * Snowflake Documentation on Query Results Cache * SnowPro Core Certification Study Guide
Question 439
What happens when an external or an internal stage is dropped? (Select TWO).
Correct Answer: A,D
When an external stage is dropped in Snowflake, the reference to the external storage location is removed, but the actual files within the external storage (like Amazon S3, Google Cloud Storage, or Microsoft Azure) are not deleted. This means that the data remains intact in the external storage location, and only the stage object in Snowflake is removed. On the other hand, when an internal stage is dropped, any files that were uploaded to the stage are deleted along with the stage itself. These files are not recoverable once the internal stage is dropped, as they are permanently removed from Snowflake's storage. References: * [COF-C02] SnowPro Core Certification Exam Study Guide * Snowflake Documentation on Stages
Question 440
What function, combined with the copy command, should be used to unload data from a relational table into a JSON file?
Correct Answer: D
* The OBJECT_CONSTRUCT function is used to convert relational table data into JSON format. When combined with the COPY INTO command, it allows you to unload data into a JSON file. * Example: FROM (SELECT OBJECT_CONSTRUCT(*) FROM my_table) FILE_FORMAT = (TYPE = JSON); Why Other Options Are Incorrect: * A. LATERAL: Used for table functions, unrelated to JSON unloading. * B. CAST: Converts data types but does not generate JSON objects. * C. FLATTEN: Used to unpack nested JSON data, not to generate JSON. References: * OBJECT_CONSTRUCT Documentation