0
0
Snowflakecloud~20 mins

Loading from S3, Azure Blob, GCS in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Storage Loading Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Snowflake External Stage Behavior with S3

You create an external stage in Snowflake pointing to an S3 bucket with the following command:

CREATE STAGE mystage URL='s3://mybucket/data/' CREDENTIALS=(AWS_KEY_ID='AKIA...' AWS_SECRET_KEY='SECRET...');

You then run:

LIST @mystage;

What will this command output?

AA list of all files and folders under s3://mybucket/data/ including their sizes and timestamps.
BAn error because credentials are missing.
CAn empty list because Snowflake cannot list files in S3 buckets.
DOnly files with .csv extension will be listed.
Attempts:
2 left
💡 Hint

Think about what the LIST command does on an external stage.

Architecture
intermediate
2:00remaining
Choosing Cloud Storage for Snowflake Data Loading

Your company uses Snowflake and wants to load large datasets from cloud storage. You have options: AWS S3, Azure Blob Storage, and Google Cloud Storage (GCS). Which factor is most important when choosing the cloud storage service for loading data into Snowflake?

AThe geographic region of the storage service matching Snowflake's region to reduce latency.
BThe cheapest storage cost regardless of location or compatibility.
CThe number of files stored in the bucket.
DThe color of the cloud provider's logo.
Attempts:
2 left
💡 Hint

Think about what affects data transfer speed and cost when loading data.

security
advanced
2:00remaining
Securing Snowflake External Stage Access to Azure Blob Storage

You want to create an external stage in Snowflake to load data from Azure Blob Storage securely. Which method provides the best security practice for authentication?

AEmbed the Azure storage account key directly in the stage definition without restrictions.
BUse a Shared Access Signature (SAS) token with limited permissions and expiration time.
CUse anonymous public access to the blob container.
DStore the storage account key in a plain text file on your local machine.
Attempts:
2 left
💡 Hint

Consider the principle of least privilege and temporary credentials.

Configuration
advanced
2:00remaining
Configuring Snowflake Stage for Google Cloud Storage with IAM Role

You want to create an external stage in Snowflake to load data from Google Cloud Storage (GCS) using an IAM role for authentication. Which configuration is correct?

ACREATE STAGE mystage URL='gcs://mybucket/data/' CREDENTIALS=(AZURE_SAS_TOKEN='token');
BCREATE STAGE mystage URL='gcs://mybucket/data/' CREDENTIALS=(GCS_KEYFILE='path/to/key.json');
CCREATE STAGE mystage URL='gcs://mybucket/data/' CREDENTIALS=(AWS_KEY_ID='id' AWS_SECRET_KEY='key');
DCREATE STAGE mystage URL='gcs://mybucket/data/' STORAGE_INTEGRATION = my_gcs_integration;
Attempts:
2 left
💡 Hint

Think about how Snowflake integrates with GCS using IAM roles.

🧠 Conceptual
expert
2:00remaining
Behavior of Snowflake COPY INTO with Multiple Cloud Storage Sources

You have three external stages in Snowflake pointing to S3, Azure Blob, and GCS respectively. You want to load data from all three into a single Snowflake table using the COPY INTO command. Which statement is true about this operation?

ACOPY INTO automatically detects and merges data from all cloud providers if stages have the same name.
BCOPY INTO can load from multiple external stages simultaneously by listing all stage URLs in one command.
CYou must run separate COPY INTO commands for each external stage; COPY INTO cannot load from multiple stages at once.
DCOPY INTO only supports loading from one cloud provider per Snowflake account.
Attempts:
2 left
💡 Hint

Consider how COPY INTO references external stages.