Which Snowflake function and command combination should be used to convert rows in a relational table to a single VARIANT column, and unload the rows Into a file in JSON format? (Select TWO).
PUT
GET
COPY
EXPORT
OBJECT CONSTRUCT
To convert rows in a relational table to a single VARIANT column and unload the rows into a file in JSON format, you can use the COPY command in combination with the OBJECT_CONSTRUCT function. The OBJECT_CONSTRUCT function converts the row into a JSON object stored in a VARIANT column, and the COPY command can then be used to unload this data into a JSON file.
References:
Snowflake Documentation: OBJECT_CONSTRUCT
Snowflake Documentation: COPY INTO
Top of Form
Bottom of Form
Based on a review of a Query Profile, which scenarios will benefit the MOST from the use of a data clustering key? (Select TWO.)
A column that appears most frequently in order by operations
A column that appears most frequently in where operations
A column that appears most frequently in group by operations
A column that appears most frequently in aggregate operations
A column that appears most frequently in join operations
What is the purpose of the use of the VALIDATE command?
To view any queries that encountered an error
To verify that a SELECT query will run without error
To prevent a put statement from running if an error occurs
To see all errors from a previously run COPY INTO
statementThe VALIDATE command in Snowflake is used to check for errors that occurred during the execution of a COPY INTO
Run the COPY INTO Statement: Execute the COPY INTO
COPY INTO my_table
FROM @my_stage
FILE_FORMAT = (FORMAT_NAME = 'my_format');
Validate the Load: Use the VALIDATE function to see if there were any errors during the data load.
SELECT *
FROM TABLE(VALIDATE(my_table, JOB_ID => 'my_copy_job_id'));
Review Errors: The VALIDATE function will return details about any errors that occurred, such as parsing errors or data type mismatches.
References:
Snowflake Documentation: Validating Data Loads
Snowflake Documentation: COPY INTO
Which user preferences can be set for a user profile in Snowsight? (Select TWO).
Multi-Factor Authentication (MFA)
Default database
Default schema
Notification
Username
In Snowsight, Snowflake's web interface, user preferences can be customized to enhance the user experience. Among these preferences, users can set a default database and default schema. These settings streamline the user experience by automatically selecting the specified database and schema when the user initiates a new session or query, reducing the need to manually specify these parameters for each operation. This feature is particularly useful for users who frequently work within a specific database or schema context.References: Snowflake Documentation on Snowsight User Preferences
Copyright © 2021-2025 CertsTopics. All Rights Reserved