SnowPro Core Certification — Question 685

A user is unloading data to a stage using this command:

copy into @message from (select object_construct('id', 1, 'first_name', 'Snowflake', 'last_name', 'User', 'city', 'Bozeman')) file_format = (type = json)

What will the output file in the stage be?

Answer options

Correct answer: A

Explanation

The command provided is designed to create a single output file in JSON format, which will be compressed by default. Since it constructs a single JSON object using the object_construct function, it results in one VARIANT column, making option A the correct answer. The other options incorrectly suggest multiple files or uncompressed files, which do not align with the command's behavior.