Free COF-R02 Exam Braindumps (page: 30)

Page 29 of 83

Which data types does Snowflake support when querying semi-structured data? (Select TWO)

  1. VARIANT
  2. ARRAY
  3. VARCHAR
  4. XML
  5. BLOB

Answer(s): A,B

Explanation:

A VARIANT stores semi-structured data in Snowflake. It can store a value of any other type, including OBJECT and ARRAY.
The maximum length of a VARIANT is 16 MB.
A Snowflake ARRAY is similar to an array in many other programming languages. An ARRAY contains 0 or more pieces of data. Each element is accessed by specifying its position in the array.


Reference:

https://docs.snowflake.com/en/user-guide/semistructured-intro.html#label-loading-semi-structured-data



Which of the following describes how multiple Snowflake accounts in a single organization relate to various cloud providers?

  1. Each Snowflake account can be hosted in a different cloud vendor and region.
  2. Each Snowflake account must be hosted in a different cloud vendor and region
  3. All Snowflake accounts must be hosted in the same cloud vendor and region
  4. Each Snowflake account can be hosted in a different cloud vendor, but must be in the same region.

Answer(s): B


Reference:

https://docs.snowflake.com/en/user-guide/intro-regions.html



A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the strip outer_array file format option
What does the STRIP_OUTER_ARRAY file format do?

  1. It removes the last element of the outer array.
  2. It removes the outer array structure and loads the records into separate table rows
  3. It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
  4. It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records

Answer(s): B

Explanation:

Data Size Limitations
The VARIANT data type imposes a 16 MB size limit on individual rows.

For some semi-structured data formats (e.g. JSON), data sets are frequently a simple concatenation of multiple documents. The JSON output from some software is composed of a single huge array containing multiple records. There is no need to separate the documents with line breaks or commas, though both are supported.
If the data exceeds 16 MB, enable the STRIP_OUTER_ARRAY file format option for the COPY INTO
<table> command to remove the outer array structure and load the records into separate table rows:

copy into <table>
from @~/<file>.json
file_format = (type = 'JSON' strip_outer_array = true);


Reference:

https://docs.snowflake.com/en/user-guide/semistructured-considerations.html



What are the default Time Travel and Fail-safe retention periods for transient tables?

  1. Time Travel - 1 day. Fail-safe - 1 day
  2. Time Travel - 0 days. Fail-safe - 1 day
  3. Time Travel - 1 day. Fail-safe - 0 days
  4. Transient tables are retained in neither Fail-safe nor Time Travel

Answer(s): C


Reference:

https://docs.snowflake.com/en/user-guide/data-cdp-storage-costs.html#:~:text=Temporary%20and%20Transient%20Tables,-To%20help%20manage&text=Temporary%20tables%20can%20also%20have,have%20no%20Fail%2Dsafe%20period.






Post your Comments and Discuss Snowflake COF-R02 exam with other Community members:

COF-R02 Discussions & Posts