SNOWPRO-CORE Snowpro Core Practice Questions
Prepare for SNOWPRO-CORE with more than an answer.
- Exam fee
- $175 USD
- Level
- Core
- Valid for
- 2 years
Domains covered on the exam 6
- Snowflake AI Data Cloud Features and Architecture24%
- Account Access and Security18%
- Performance and Cost Optimization Concepts16%
- Data Loading and Unloading12%
- Data Transformations18%
- Data Protection and Data Sharing12%
- 1
A developer needs to create a user-defined function (UDF) that will process large, unstructured files (e.g., PDFs) located in a stage. The function needs to use a complex third-party Python library for parsing. Which approach should the developer take?
Show answer details
Correct answer: D
For processing unstructured data with Python UDFs, Snowflake allows specifying third-party packages (available in the Snowflake Anaconda channel) in the
PACKAGESclause of the function definition. The UDF can then read the file from a stage by accepting a scoped URL or file URL as an argument, which provides secure, temporary access to the file for processing within the function. This is the standard, secure, and most integrated way to handle this scenario. - 2
A company has two Snowflake accounts, one for production (in
us-east-1) and one for analytics (ineu-west-1). They need to share data from a production table with the analytics account. Which statements about this data sharing scenario are true? (Select TWO)sequenceDiagram participant Prod_Acct as Production (us-east-1) participant Analytics_Acct as Analytics (eu-west-1) Prod_Acct->>Analytics_Acct: Creates Share & Grants Access Analytics_Acct->>Prod_Acct: Creates DB from Share Note right of Analytics_Acct: Data is NOT copied. Note left of Prod_Acct: Provider pays for storage. Note right of Analytics_Acct: Consumer pays for compute.Show answer details
Correct answer: B, C
Direct data sharing is only supported between accounts in the same region. To share data across regions, the provider account must first set up database replication to create a read-only copy of the database in the consumer's region (
eu-west-1). The share can then be created from this replicated database.The provider account is responsible for all costs associated with making the data available in the remote region. This includes the storage costs for the replicated database and any data transfer fees incurred for the replication process.
- 3
What happens when a query is executed that can be fully resolved by the result cache?
Show answer details
Correct answer: C
The result cache is a service in the Cloud Services layer that stores the results of previously executed queries for 24 hours. If an identical query is submitted and the underlying data has not changed, Snowflake returns the cached result directly. This operation does not require a virtual warehouse and therefore consumes no compute credits, offering significant performance and cost savings.
- 4
The
SYSTEMADMINrole is a system-defined role that is intended for creating and managing compute resources (virtual warehouses) and database objects (databases, schemas, tables).Show answer details
Correct answer: A
This statement is true. According to Snowflake's recommended role-based access control (RBAC) hierarchy, the
SYSADMINrole is responsible for object creation and management within the account. It has the permissions to create warehouses, databases, and other objects. TheACCOUNTADMINrole manages account-level settings, and theSECURITYADMINrole manages users and roles. - 5
A data engineer is designing a data loading process for Parquet files stored in an S3 bucket. The Parquet files have a well-defined schema, but the target table in Snowflake should also include metadata about the source file, such as the filename and row number.
How can the engineer include this metadata during the load process using a
COPY INTOcommand?Show answer details
Correct answer: B
Snowflake provides metadata pseudocolumns (
METADATA$FILENAME,METADATA$FILE_ROW_NUMBER, etc.) that can be queried directly from staged files during aCOPYoperation. To load this metadata into the target table, you use aSELECTstatement within theCOPY INTOcommand to specify the columns from the source file and the metadata columns to be loaded. - 6
A financial services company uses a transient table named
STG_CUSTOMER_PIIto temporarily process sensitive data. A junior administrator accidentally executes aDROP TABLEcommand on this table. The data retention period for the account is set to the default of 1 day. What is the most direct and appropriate method to recover this table and its data, assuming the drop occurred less than an hour ago?Show answer details
Correct answer: B
Transient tables have a Time Travel retention period of 0 or 1 day but are not protected by Fail-safe. Since the account's retention period is 1 day and the table was dropped within this window, the
UNDROP TABLEcommand is the correct and most direct way to restore it. Contacting support for Fail-safe is incorrect because transient tables are excluded from Fail-safe. Restoring from a clone is not possible as a clone must be made before the drop. Re-running the ETL job would work but is not the most direct recovery method. - 7
A data engineering team is loading a large dataset composed of 10,000 small JSON files (each under 10MB) from an S3 bucket into a Snowflake table. The initial load process using a
COPY INTOcommand is performing poorly. Which TWO actions are recommended best practices to improve the performance of this bulk loading operation? (Select TWO)Show answer details
Correct answer: B, D
Snowflake's bulk loader works most efficiently with larger, compressed files. Aggregating many small files into fewer large ones (100MB-250MB is a common recommendation) reduces the overhead of file metadata processing and allows for better parallelization.
Data loading is a compute-intensive task. Using a larger warehouse provides more threads to process files in parallel, which significantly improves performance for bulk loads. The warehouse can be scaled down after the operation is complete to manage costs.
- 8
A data analyst needs to transform and flatten a deeply nested JSON structure stored in a VARIANT column named
RAW_PAYLOAD. The structure contains an array of user objects, and each user object contains an array of address objects. The goal is to produce a flat table with one row per address for each user.Which combination of functions is required to achieve this multi-level flattening?
Show answer details
Correct answer: B
To flatten a nested structure with an array inside another array, you must use multiple
LATERAL FLATTENclauses. The firstFLATTENexpands the outer array (users), and the secondFLATTENoperates on the output of the first to expand the inner array (addresses). This creates the desired Cartesian product, resulting in one row per address. A single flatten function cannot handle multi-level arrays in one step.PARSE_JSONis for converting strings to VARIANT, not for flattening.ARRAY_FLATTENis a different function for arrays. - 9
True or False: When a virtual warehouse is resized from a Small to a Large, any queries currently running on the warehouse are immediately migrated to the new, larger resources and will complete faster.
Show answer details
Correct answer: B
This statement is false. When a virtual warehouse is resized, the existing server resources continue to be used by any queries that are already running. The newly provisioned, larger resources are used only for queries that are queued or submitted after the resize operation completes. Running queries are not migrated.
- 10
Case Study:
A global e-commerce company, ShopSphere, is centralizing its analytics on Snowflake. They have three distinct user groups with different workload patterns. The Business Intelligence (BI) team runs complex, long-running analytical queries against large fact tables, primarily during business hours (9 AM - 5 PM). The Data Science (DS) team runs intensive machine learning training jobs using Snowpark, which are unpredictable in timing and duration. The Finance team runs lightweight, ad-hoc queries for daily reporting throughout the day.
ShopSphere's primary goals are to ensure workload isolation to prevent query contention, maintain predictable performance for the BI team, and manage costs effectively. The current setup uses a single, large multi-cluster warehouse for all three teams, which has led to performance degradation for the BI team when DS jobs are running, and higher-than-expected costs due to the warehouse running constantly.
The Director of Analytics has tasked you with redesigning the virtual warehouse strategy to meet the company's goals. Which of the following strategies provides the best combination of performance isolation, predictability, and cost-efficiency for ShopSphere?
Show answer details
Correct answer: B
This strategy provides the best workload isolation by dedicating separate compute resources to each team, preventing contention. The multi-cluster warehouse for BI handles concurrency, the Snowpark-optimized warehouse is tailored for DS workloads, and the small warehouse is cost-effective for Finance's ad-hoc queries. Aggressive auto-suspend timers ensure that warehouses shut down when not in use, directly addressing the cost management goal. This is the most robust and aligned solution to the stated requirements.
