Snowflake COF-C02 Practice Test 8
Question 1 / 40
What is the recommended way to change the existing file format type in my format from CSV to JSON?
ALTER FILE FORMAT my_format SET TYPE=JSON;
ALTER FILE FORMAT my format SWAP TYPE WITH JSON;
CREATE OR REPLACE FILE FORMAT my format TYPE-JSON;
REPLACE FILE FORMAT my format TYPE-JSON;
Comment (0)
Suggested answer: A
Explanation:
To change the existing file format type from CSV to JSON, the recommended way is to use the ALTER FILE FORMAT command with the SET TYPE=JSON clause. This alters the file format specification to use JSON instead of CSV.References:Based on my internal knowledge as of 2021.