Which Snowflake objects consume storage? (Select TWO)
Views
Materialized views
Temporary schemas
Permanent tables
External tables
The Answer Is:
B, DWhat is the LEAST-PRIVILEGED role that can enable replication for both source and target accounts by default?
ORGADMIN
ACCOUNTADMIN
SYSADMIN
SECURITYADMIN
The Answer Is:
BWhat target locations can be used when unloading data using the COPY INTO < location > command? (Select TWO)
A Snowflake schema
A Snowflake stage
A local file system
A Snowflake stream
Cloud storage in Google (GCP), AWS, or Microsoft Azure
The Answer Is:
B, EExplanation:
The COPY INTO < location > command is used to unload data from Snowflake tables to external locations , typically cloud storage or a Snowflake stage. Supported destinations include:
External stages : e.g., S3, Azure Blob Storage, Google Cloud Storage
Internal named stages : Snowflake-managed storage
Local file systems are not supported as unload targets.
What information is stored in the ACCESS_HlSTORY view?
History of the files that have been loaded into Snowflake
Names and owners of the roles that are currently enabled in the session
Query details such as the objects included and the user who executed the query
Details around the privileges that have been granted for all objects in an account
The Answer Is:
DExplanation:
Details around the privileges that have been granted for all objects in an account. TheACCESS_HISTORYview in Snowflake provides a comprehensive log of access control changes, including grants and revocations of privileges on all securable objects within the account. This information is crucial for auditing and monitoring the security posture of your Snowflake environment.
Here ' s how to understand and use theACCESS_HISTORYview:
Purpose of ACCESS_HISTORY View:It is designed to track changes in access controls, such as when a user or role is granted or revoked privileges on various Snowflake objects. This includes tables, schemas, databases, and more.
Querying ACCESS_HISTORY:To access this view, you can use the following SQL query pattern:
SELECT*FROMSNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORYWHEREEVENT_TYPE = ' GRANT ' OREVENT_TYPE = ' REVOKE ' ;
Interpreting the Results:The results from theACCESS_HISTORYview include the object type, the specific privilege granted or revoked, the grantee (who received or lost the privilege), and the timestamp of the event. This data is invaluable for audits and compliance checks.
A user creates a stage using the following command:
What will be the outcome?
A stage with a directory table set to automatically refresh will be created.
A stage with a directory table that has metadata that must be manually refreshed will be created.
An error will be received stating that the storage location for the stage must be identified when creating a stage with a directory table.
The command will fail to run because the name of the directory table is not specified.
The Answer Is:
AWhat is the effect of using FORCE = TRUE in a COPY INTO < table > command?
All files will be loaded, even ones with a load status of unknown.
Files that have already been successfully loaded into the table will be loaded again.
Files that have already been successfully loaded into the table will not be loaded again.
String columns longer than the length specified in the column definition will be loaded anyway.
The Answer Is:
BExplanation:
The correct answer is B. Files that have already been successfully loaded into the table will be loaded again .
By default, Snowflake uses load metadata to prevent the same files from being loaded into a table more than once. Setting FORCE = TRUE overrides this behavior and reloads files even if Snowflake load metadata indicates that the files were already successfully loaded.
Why B is correct:
FORCE = TRUE tells Snowflake to ignore previous load history and load files again.
Why the other options are incorrect:
A. FORCE = TRUE is not specifically about files with unknown load status.
C. This describes the default behavior when FORCE = FALSE, not when FORCE = TRUE.
D. Loading strings longer than the target column length is controlled by other loading behavior and error handling, not by FORCE.
Official Snowflake documentation reference:
Snowflake documentation for COPY INTO < table > describes FORCE as an option that loads all files, regardless of whether they have been loaded previously.