




























































































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 layer is responsible for managing metadata, authentication, and query compilation? A) Database Storage B) Query Processing (Virtual Warehouses) C) Cloud Services D) Snowpark Answer: C Explanation: The Cloud Services layer handles metadata, security, and query compilation, acting as the control plane of Snowflake. Question 2. What is the primary benefit of Snowflake’s elastic compute model? A) Unlimited storage capacity B) Automatic data replication across regions C) Ability to scale compute resources up or down independently of storage D) Built‑in machine learning algorithms Answer: C Explanation: Elastic compute lets you adjust virtual warehouse size or number without affecting stored data, enabling cost‑effective scaling. Question 3. Which Snowflake edition includes the Search Optimization Service? A) Standard B) Enterprise C) Business Critical D) Virtual Private Snowflake (VPS)
Answer: C Explanation: The Search Optimization Service, which creates secondary indexes for faster point‑lookup queries, is available in the Business Critical edition. Question 4. Which Snowflake client provides a web‑based graphical interface for query development and monitoring? A) SnowSQL B) Snowsight C) Snowpipe D) Snowpark Answer: B Explanation: Snowsight is the modern web UI that replaces the classic Snowflake Web UI, offering worksheets, dashboards, and query history. Question 5. What does the Snowflake connector for Python enable? A) Direct execution of SnowSQL scripts from Python B) Real‑time data streaming into Snowflake tables C) Programmatic interaction with Snowflake using the Python DB‑API D) Automatic schema generation from Python objects Answer: C Explanation: The Python connector implements the DB‑API, allowing Python applications to connect, query, and load data into Snowflake.
D) To compress data using advanced algorithms Answer: C Explanation: Automatic clustering continuously re‑clusters micro‑partitions based on a defined clustering key, improving pruning without user‑initiated RECLUSTER. Question 9. Which Snowflake service provides point‑lookup acceleration by building additional metadata structures? A) Automatic Clustering B) Search Optimization Service C) Materialized Views D) Result Caching Answer: B Explanation: The Search Optimization Service creates a secondary index that enables fast point‑lookup queries on large tables. Question 10. What does a Network Policy in Snowflake control? A) Which IP addresses can connect to a virtual warehouse B) The maximum number of concurrent queries per user C) Allowed inbound and outbound IP ranges for client connections D) Encryption algorithms used for data at rest Answer: C Explanation: Network Policies restrict client connection IP ranges, enhancing security by allowing only authorized networks.
Question 11. Which authentication method uses a public‑private key pair instead of a password? A) Multi‑Factor Authentication (MFA) B) Single Sign‑On (SSO) C) Key Pair Authentication D) Federated Authentication Answer: C Explanation: Key Pair Authentication authenticates users via an RSA public‑private key pair, eliminating the need for passwords. Question 12. In Snowflake RBAC, which object can own other objects and grant privileges to roles? A) Database B) Schema C) Role D) Warehouse Answer: C Explanation: Roles are the primary security principals; they own objects and can be granted privileges, which can be inherited by child roles. Question 13. Which privilege is required to create a secure view? A) CREATE VIEW B) CREATE SECURE VIEW
Question 16. What is the primary purpose of a Snowflake Task? A) To load data continuously from external sources B) To schedule and execute SQL statements or stored procedures on a recurring basis C) To monitor warehouse utilization in real time D) To create external tables Answer: B Explanation: Tasks allow you to define a schedule (cron or after a stream) to run SQL code automatically. Question 17. Which command creates a pipe for continuous loading with Snowpipe? A) CREATE PIPE B) CREATE STAGE C) CREATE FILE FORMAT D) CREATE SNOWPIPE Answer: A Explanation: CREATE PIPE defines the source stage and COPY statement, enabling Snowpipe to auto‑ingest files as they arrive. Question 18. Which file format option is required when loading semi‑structured JSON data? A) TYPE = 'CSV' B) TYPE = 'PARQUET' C) TYPE = 'JSON'
Answer: C Explanation: To correctly parse JSON, the file format must be set to TYPE = 'JSON'. Question 19. What does the COPY INTO
D) Warehouse Monitor Answer: B Explanation: Query Profile visualizes the execution plan, showing phases like compilation, execution, and data loading. Question 24. Data spilling in Snowflake indicates: A) Insufficient storage space in the database B) The virtual warehouse ran out of memory and wrote intermediate results to temporary storage, potentially degrading performance C) Network latency between client and Snowflake D) Automatic clustering is disabled Answer: B Explanation: Spilling occurs when a warehouse cannot hold all intermediate data in memory, causing writes to temporary storage and slower queries. Question 25. Which cache stores the results of a query for reuse by identical subsequent queries? A) Metadata Cache B) Result Cache C) Local Disk Cache D) Warehouse Cache Answer: B Explanation: The Result Cache holds query results for 24 hours, allowing instant retrieval if the underlying data hasn't changed.
Question 26. What does the AUTO_SUSPEND parameter of a virtual warehouse control? A) The maximum number of concurrent queries allowed B) The time of inactivity after which the warehouse automatically shuts down to save credits C) The minimum size of the warehouse in credits per hour D) The number of clusters in a multi‑cluster warehouse Answer: B Explanation: AUTO_SUSPEND defines inactivity minutes before Snowflake suspends the warehouse, preventing unnecessary credit consumption. Question 27. Which scaling mode adds additional clusters only when query concurrency exceeds the configured threshold? A) Standard (Scale‑Out) B) Elastic (Scale‑Up) C) Multi‑Cluster (Auto‑Scale) D) Fixed Size Answer: C Explanation: Multi‑Cluster warehouses in Auto‑Scale mode add or remove clusters based on query queue length, handling bursts in concurrency. Question 28. In Snowflake, what is the effect of increasing a warehouse size from X‑SMALL to MEDIUM? A) Increases compute resources by 4×, reducing query latency but consuming more credits per hour B) Doubles the storage capacity of the warehouse
Explanation: Internal stages are storage areas within Snowflake (e.g., user stage, table stage) used for data loading/unloading without external access keys. Question 31. What is the recommended maximum file size for optimal bulk loading performance with COPY INTO? A) 10 KB B) 100 KB C) 100 MB to 250 MB D) 1 GB Answer: C Explanation: Files between 100 MB and 250 MB provide the best balance for parallelism and overhead during bulk loading. Question 32. Which command validates that files in a stage match a defined file format without loading data? A) VALIDATE B) CHECK C) DESCRIBE FILE FORMAT D) LIST Answer: A Explanation: VALIDATE checks file structure against a file format, ensuring compatibility before executing COPY. Question 33. How does Snowpipe achieve near‑real‑time data ingestion? A) By continuously polling the stage every minute
B) By using event notifications (e.g., AWS S3 events) to trigger automatic loading of new files C) By loading data only during off‑peak hours D) By requiring manual invocation of the COPY command Answer: B Explanation: Snowpipe leverages cloud event notifications to start loading as soon as a file lands in the stage, providing low‑latency ingestion. Question 34. Which Snowflake function can be used to sample 10 % of rows from a table without a deterministic seed? A) SAMPLE (10) B) SAMPLE (0.1) C) TABLESAMPLE (10 PERCENT) D) RANDOM_SAMPLE (10) Answer: B Explanation: SAMPLE (0.1) returns approximately 10 % of rows using a random seed; specifying a numeric fraction is the standard syntax. Question 35. What does the SYSTEM$CLUSTERING_INFORMATION function return? A) The current size of a virtual warehouse B) Metadata about the clustering depth and number of micro‑partitions for a table C) The query execution plan for the last query D) The list of active users Answer: B
A) External Stage B) External Table C) Snowpipe D) Data Share Answer: B Explanation: External Tables map files in external storage (e.g., S3, Azure) to a relational table interface, enabling SQL queries without loading. Question 39. In Snowflake, what does the term “result set caching” refer to? A) Caching of query results for identical future queries within 24 hours B) Storing intermediate results of a query on local SSD C) Persisting the output of a stored procedure in a temporary table D) Caching of metadata for database objects Answer: A Explanation: Result set caching stores the final result of a query, allowing instant retrieval if the underlying data has not changed. Question 40. Which command grants a role the ability to create a new database? A) GRANT CREATE DATABASE TO ROLE <role_name>; B) GRANT OWNERSHIP ON DATABASE TO ROLE <role_name>; C) GRANT USAGE ON ACCOUNT TO ROLE <role_name>; D) GRANT CREATE SCHEMA TO ROLE <role_name>; Answer: A
Explanation: The CREATE DATABASE privilege allows the role to issue CREATE DATABASE statements. Question 41. What is the effect of setting a warehouse’s MAX_CLUSTER_COUNT to 0? A) Disables automatic scaling of the warehouse B) Allows unlimited clusters to be added during peak load C) Limits the warehouse to a single cluster (no scaling out) D) Forces the warehouse to suspend after each query Answer: C Explanation: MAX_CLUSTER_COUNT = 0 means the warehouse will never scale out; it runs with a single cluster only. Question 42. Which Snowflake function can be used to retrieve the current session’s role? A) CURRENT_ROLE() B) SESSION_ROLE() C) ROLE() D) USER_ROLE() Answer: A Explanation: CURRENT_ROLE() returns the active role for the current session. Question 43. What does the ACCOUNT_USAGE view provide? A) Real‑time monitoring of warehouse CPU usage B) Historical metadata about objects, queries, and credit consumption across the account C) A list of all active network policies
Question 46. What is the purpose of the Snowflake “REVOKE ALL” command? A) Deletes all data in a table B) Removes all privileges granted to a role on a specific object C) Drops the role entirely D) Clears the result cache Answer: B Explanation: REVOKE ALL ON
C) Merging small micro‑partitions into larger ones for performance D) Encrypting individual micro‑partitions with separate keys Answer: B Explanation: Pruning skips micro‑partitions that cannot contain matching rows based on filter conditions, improving query efficiency. Question 49. Which parameter controls the maximum time a query can run before being automatically aborted? A) QUERY_TIMEOUT B) STATEMENT_TIMEOUT_IN_SECONDS C) MAX_EXECUTION_TIME D) QUERY_TIMEOUT_IN_MINUTES Answer: B Explanation: STATEMENT_TIMEOUT_IN_SECONDS sets the upper limit for query execution duration; exceeding it aborts the statement. Question 50. Which Snowflake role is automatically granted to every user upon login? A) PUBLIC B) ACCOUNTADMIN C) SYSADMIN D) SECURITYADMIN Answer: A