




















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































































Question 1. Which Snowflake object is used to temporarily store data files before they are loaded into tables? A) Database B) Schema C) Stage D) Warehouse Answer: C Explanation: A stage (internal or external) acts as a landing zone for data files before COPY INTO loads them into tables. Question 2. When loading semi‑structured JSON data, which column type should be used to preserve the structure? A) VARCHAR B) VARIANT C) OBJECT D) ARRAY Answer: B Explanation: VARIANT stores any semi‑structured data (JSON, Avro, XML, Parquet) while retaining its hierarchical structure. Question 3. Which of the following Snowflake features provides automatic, continuous loading of data from cloud storage without writing custom code? A) Snowpipe Auto‑Ingest B) COPY INTO with FORCE = TRUE C) Snowflake Streams D) Snowflake Tasks Answer: A
Explanation: Snowpipe Auto‑Ingest uses cloud event notifications to trigger loading automatically. Question 4. What is the primary benefit of using a multi‑cluster warehouse in Snowflake? A) Increased storage capacity B) Automatic scaling to handle concurrent queries C) Faster data compression D) Ability to store data in multiple regions Answer: B Explanation: Multi‑cluster warehouses add or remove clusters based on query load, improving concurrency. Question 5. Which Snowflake system function returns the clustering depth of a table? A) SYSTEM$CLUSTERING_INFORMATION() B) SYSTEM$CLUSTERING_DEPTH() C) SYSTEM$GET_CLUSTERING() D) SYSTEM$TABLE_CLUSTERING() Answer: B Explanation: SYSTEM$CLUSTERING_DEPTH() reports the average number of micro‑partitions examined per query for a clustered table. Question 6. In Snowflake, what does the “Fail‑Safe” period guarantee? A) Unlimited point‑in‑time recovery B) 7‑day data protection after Time Travel expires C) Automatic replication to a secondary region D) Real‑time backup to external storage
D) To schedule periodic data loads Answer: B Explanation: Streams record inserts, updates, and deletes on a source table, enabling change data capture. Question 10. Which Snowflake caching mechanism stores the results of a query for reuse by identical future queries? A) Warehouse Cache B) Result Set Cache C) Metadata Cache D) Query Acceleration Service Answer: B Explanation: Result Set Cache retains the final result set of a query for up to 24 hours, avoiding recomputation. Question 11. When creating a Snowflake external table, which property defines how files are partitioned for pruning? A) FILE_FORMAT B) LOCATION C) PARTITION BY D) AUTO_REFRESH Answer: C Explanation: PARTITION BY on an external table lets Snowflake prune files based on column values, improving query performance. Question 12. Which Snowflake object can be used to enforce row‑level security on shared data?
A) Secure View B) Row Access Policy C) Masking Policy D) Data Masking Rule Answer: B Explanation: Row Access Policies filter rows based on the executing role or session context. Question 13. What does the Snowflake “Search Optimization Service” primarily improve? A) COPY INTO performance B) Time Travel retention Answer: A Explanation: Search Optimization creates auxiliary structures that speed up point‑lookup queries on large tables. Question 14. Which of the following is NOT a supported language for Snowflake UDFs? A) JavaScript B) SQL C) Python D) Java Answer: D Explanation: Snowflake UDFs can be written in SQL, JavaScript, or Snowpark languages (Python, Java, Scala), but native Java UDFs are not supported. Question 15. Which Snowflake feature enables you to execute procedural logic using Java, Python, or Scala? A) Stored Procedures (Snowpark)
Question 18. In Snowflake, which object type can be used to expose a function that calls an external REST endpoint? A) External Table B) External Function C) Secure View D) Task Answer: B Explanation: External Functions allow Snowflake to invoke remote services via HTTPS. Question 19. Which Snowflake feature is used to replicate data across regions or clouds for disaster recovery? A) Data Sharing B) Fail‑Safe C) Snowflake Replication (Database Replication) D) Snowpipe Answer: C Explanation: Snowflake Replication creates a copy of a database in another region or cloud. Question 20. Which Snowflake system-defined role is responsible for managing network policies and IP allowlists? A) ACCOUNTADMIN B) SECURITYADMIN C) SYSADMIN D) USERADMIN Answer: B
Explanation: SECURITYADMIN can create and manage network policies, MFA, and other security configurations. Question 21. What is the primary purpose of a Snowflake “Materialized View”? A) To store raw data files B) To pre‑compute and persist query results for faster reads C) To enforce row‑level security D) To replace tables in data sharing Answer: B Explanation: Materialized Views automatically refresh and store query results, improving read performance. Question 22. Which Snowflake function can be used to unnest a VARIANT array into rows? A) PARSE_JSON() B) FLATTEN() C) SPLIT() D) TO_ARRAY() Answer: B Explanation: FLATTEN expands VARIANT arrays or objects into a relational row set. Question 23. When using Snowpipe REST API to load data, which HTTP method is used to submit a load request? A) GET B) POST C) PUT D) DELETE
Answer: D Explanation: PUBLIC is granted to all users by default and can be limited to SELECT privileges on shared objects. Question 27. Which Snowflake object type can be used to hide sensitive columns from certain roles while still allowing access to the underlying data? A) Secure View B) Masking Policy C) Row Access Policy D) External Table Answer: B Explanation: Masking Policies define column‑level masking based on role, returning masked values to unauthorized users. Question 28. What does the Snowflake “WAREHOUSE_SIZE” parameter control? A) Number of databases a warehouse can access B) Amount of compute resources (CPU, memory) allocated C) Maximum storage capacity of the warehouse D) Number of concurrent users allowed Answer: B Explanation: WAREHOUSE_SIZE determines the compute scaling (e.g., XSM, SMALL, MEDIUM, etc.). Question 29. Which Snowflake feature provides point‑in‑time query capability without using a separate backup?
A) Fail‑Safe B) Time Travel C) Replication D) Cloning Answer: B Explanation: Time Travel allows querying data as of a specific timestamp within the retention period. Question 30. In Snowflake, which statement best describes the difference between a “Secure View” and a regular view? A) Secure Views are encrypted at rest, regular views are not. B) Secure Views hide the underlying SQL from users with the “VIEW DEFINITION” privilege. C) Secure Views can only be created by ACCOUNTADMIN. D) Secure Views automatically apply row‑level security. Answer: B Explanation: Secure Views prevent users with VIEW DEFINITION from seeing the view’s definition, enhancing security. Question 31. Which Snowflake system function can be used to retrieve the last DDL statement executed on an object? A) LAST_DDL() B) SYSTEM$GET_LAST_DDL() C) INFORMATION_SCHEMA.OBJECTS D) OBJECT_HISTORY() Answer: B Explanation: SYSTEM$GET_LAST_DDL returns the most recent DDL command for a given object.
Answer: C Explanation: The PARALLEL option (default ON) determines whether Snowflake parallelizes file loading. Question 35. Which Snowflake feature can be used to enforce that a column value is masked only for users without a specific role? A) Row Access Policy B) Masking Policy C) Secure View D) Data Classification Tag Answer: B Explanation: Masking Policies evaluate the current role and apply masking accordingly. Question 36. Which Snowflake SQL command is used to create a new external stage that references an S3 bucket? A) CREATE STAGE my_stage URL='s3://mybucket/' CREDENTIALS=(AWS_KEY_ID='…' AWS_SECRET_KEY='…'); B) CREATE EXTERNAL STAGE my_stage LOCATION='s3://mybucket/'; C) CREATE STAGE my_stage FILE_FORMAT = (TYPE = CSV); D) CREATE STAGE my_stage FROM S3 'mybucket'; Answer: A Explanation: CREATE STAGE with URL and CREDENTIALS defines an external stage pointing to an S3 bucket. Question 37. Which Snowflake system variable returns the current warehouse’s name? A) CURRENT_WAREHOUSE() B) CURRENT_WAREHOUSE
Answer: B Explanation: The session variable CURRENT_WAREHOUSE holds the name of the active warehouse. Question 38. What is the effect of setting AUTO_SUSPEND = 0 on a warehouse? A) The warehouse never suspends automatically. B) The warehouse suspends immediately after each query. C) The warehouse disables auto‑resume. D) The warehouse scales down to XSM size. Answer: A Explanation: AUTO_SUSPEND = 0 disables automatic suspension, keeping the warehouse running continuously. Question 39. Which Snowflake function can be used to generate a unique identifier for each row without relying on a sequence? A) UUID_STRING() B) SEQ4() C) ROW_NUMBER() D) OBJECT_ID() Answer: A Explanation: UUID_STRING() returns a random UUID, useful for unique row identifiers. Question 40. Which Snowflake role is required to create a network policy? A) ACCOUNTADMIN
Question 43. Which of the following is a valid reason to use an external table instead of loading data into a Snowflake table? A) To enable ACID transactions on the data B) To query data directly from cloud storage without duplication C) To improve query performance via clustering D) To enforce row‑level security automatically Answer: B Explanation: External tables let you query data directly from external storage (e.g., S3) without loading it. Question 44. Which Snowflake feature provides automatic query result caching across multiple sessions and warehouses? A) Warehouse Cache B) Result Set Cache C) Metadata Cache D) Query Acceleration Service Answer: B Explanation: Result Set Cache is shared across sessions and warehouses, enabling reuse of identical query results. Question 45. Which Snowflake command can be used to resume a suspended warehouse? A) ALTER WAREHOUSE my_wh RESUME; B) START WAREHOUSE my_wh; C) RESUME WAREHOUSE my_wh; D) ALTER WAREHOUSE my_wh SET RESUME = TRUE; Answer: A
Explanation: ALTER WAREHOUSE … RESUME reactivates a suspended warehouse. Question 46. In Snowflake, which object can be used to enforce column‑level encryption for data at rest? A) Masking Policy B) Secure View C) Column Encryption Key (CEK) – not supported directly; Snowflake encrypts all data automatically. D) External Function Answer: C Explanation: Snowflake automatically encrypts all data at rest; there is no user‑managed column encryption. Question 47. Which Snowflake feature enables you to monitor the health and latency of Snowpipe ingestion pipelines? A) QUERY_HISTORY view B) PIPE_USAGE_HISTORY view C) TASK_HISTORY view D) INFORMATION_SCHEMA.STAGES Answer: B Explanation: PIPE_USAGE_HISTORY provides metrics on Snowpipe activity, including latency and error counts. Question 48. Which Snowflake function can be used to retrieve the current timestamp in UTC? A) CURRENT_TIMESTAMP() B) LOCALTIMESTAMP()
A) Removes the first row from the target table after load. B) Skips the first line of each source file during load. C) Ignores the column header in the result set. D) Prevents loading of files that contain a header row. Answer: B Explanation: SKIP_HEADER = 1 tells COPY to ignore the first line of each CSV file. Question 52. Which Snowflake object type can be used to encapsulate reusable logic that returns a table result set? A) Scalar UDF B) Table UDF (UDTF) C) Stored Procedure D) Secure View Answer: B Explanation: Table‑valued UDFs (UDTFs) return a result set like a table. Question 53. Which Snowflake system view provides information about currently running queries? A) QUERY_HISTORY B) QUERY_PROFILE C) QUERY_HISTORY_VIEW D) INFORMATION_SCHEMA.QUERY_HISTORY Answer: D Explanation: INFORMATION_SCHEMA.QUERY_HISTORY shows details of executed queries, including currently running ones.
Question 54. Which Snowflake feature can be used to automatically refresh a materialized view when underlying data changes? A) Manual REFRESH MATERIALIZED VIEW command only B) Automatic incremental refresh (default) C) Scheduled Tasks only D) External Functions Answer: B Explanation: Materialized Views refresh automatically in the background as underlying data changes. Question 55. Which Snowflake account parameter must be set to enable cross‑region replication? A) REPLICATION_ENABLED = TRUE B) ENABLE_REPLICATION = TRUE C) ACCOUNT_REPLICATION = ON D) REPLICATION_ALLOW = TRUE Answer: A Explanation: REPLICATION_ENABLED must be true to allow database replication across regions. Question 56. Which Snowflake function can be used to extract a value from a VARIANT column using a JSON path? A) GET_PATH() B) JSON_EXTRACT() C) : (colon) operator, e.g., column:field D) OBJECT_GET() Answer: C