0
0
Snowflakecloud~20 mins

Stages (internal and external) in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Snowflake Stages Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Internal vs External Stages in Snowflake

Which statement correctly describes the difference between an internal stage and an external stage in Snowflake?

AInternal stages are used only for temporary data, while external stages permanently store data inside Snowflake tables.
BInternal stages store data within Snowflake's managed storage, while external stages reference data stored outside Snowflake, such as in AWS S3 or Azure Blob Storage.
CExternal stages store data inside Snowflake's managed storage, and internal stages reference external cloud storage services.
DInternal stages require manual data encryption, while external stages automatically encrypt data stored in Snowflake.
Attempts:
2 left
💡 Hint

Think about where the data physically resides when using internal versus external stages.

Configuration
intermediate
2:00remaining
Creating an External Stage for AWS S3

You want to create an external stage in Snowflake that points to an AWS S3 bucket named mybucket in the us-west-2 region. Which command correctly creates this stage assuming you have the necessary AWS credentials?

ACREATE STAGE mystage URL='s3://mybucket/' STORAGE_INTEGRATION = my_s3_integration;
BCREATE STAGE mystage URL='gcs://mybucket/' STORAGE_INTEGRATION = my_s3_integration;
CCREATE STAGE mystage URL='s3://mybucket/' CREDENTIALS = (AWS_KEY_ID='key' AWS_SECRET_KEY='secret');
DCREATE STAGE mystage URL='azure://mybucket/' STORAGE_INTEGRATION = my_s3_integration;
Attempts:
2 left
💡 Hint

Remember the URL prefix for AWS S3 and how Snowflake uses storage integrations for credentials.

Architecture
advanced
2:00remaining
Choosing Between Internal and External Stages for Data Loading

Your company has large datasets stored in AWS S3 and wants to load data into Snowflake efficiently. Which architecture choice is best to minimize data transfer costs and maximize performance?

AUse an external stage pointing directly to the AWS S3 bucket to load data, avoiding copying data into Snowflake storage first.
BAlways copy data from S3 into an internal stage before loading to benefit from Snowflake's managed storage caching.
CLoad data directly from local files on user machines to Snowflake without using any stage.
DUse an external stage but configure Snowflake to replicate the data into Azure Blob Storage first.
Attempts:
2 left
💡 Hint

Consider data transfer costs and where the data is stored.

security
advanced
2:00remaining
Securing Access to External Stages in Snowflake

Which method provides the most secure way to grant Snowflake access to an external stage in AWS S3 without exposing AWS keys directly in the stage definition?

AUse public read permissions on the S3 bucket to avoid authentication.
BEmbed AWS access keys directly in the stage URL for quick access.
CUse a Snowflake storage integration that leverages an AWS IAM role with limited permissions.
DStore AWS keys in a Snowflake table and reference them in the stage definition.
Attempts:
2 left
💡 Hint

Think about best practices for credential management and least privilege.

service_behavior
expert
2:00remaining
Behavior of Data Retention in Internal Stages

Consider a Snowflake internal stage used for temporary file storage during data loading. What happens to files in this internal stage if they are not explicitly removed after 14 days?

AFiles are automatically moved to an external stage after 14 days.
BFiles remain indefinitely until manually deleted by the user.
CSnowflake archives files older than 14 days but charges extra storage fees.
DSnowflake automatically removes files older than 14 days from internal stages to free up storage.
Attempts:
2 left
💡 Hint

Think about Snowflake's automatic cleanup policies for internal stages.