Docsity

Snowflake SnowPro Advanced Practice Exam, Exams of Technology

Toggle sidebar
bg1
Snowflake SnowPro Advanced Practice Exam
**Question 1.** Which Snowflake account design best supports strict environment segregation
(e.g., production, development, sandbox) while allowing shared governance policies?
A) Multiple Snowflake accounts, one per environment
B) Single account with separate databases per environment
C) Single account with separate virtual warehouses per environment
D) Multiple Snowflake accounts with a shared organization hierarchy
Answer: D
Explanation: Using multiple accounts under a single organization lets each environment be
isolated (different accounts) while central governance (e.g., network policies, role hierarchy) can
be applied across the organization.
**Question 2.** In Snowflake, which edition provides built-in encryption at rest with
customer‑managed keys (CMK) and private connectivity options?
A) Standard
B) Enterprise
C) Business Critical
D) Virtual Private Snowflake (VPS)
Answer: C
Explanation: Business Critical (formerly Enterprise for Sensitive Data) adds features such as
Customer‑Managed Keys and PrivateLink/Private Connectivity for enhanced security.
**Question 3.** Which Snowflake system role has the highest level of privileges and can grant
any privilege on any object?
A) ACCOUNTADMIN
B) SECURITYADMIN
C) SYSADMIN
D) USERADMIN
Answer: A
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c

Partial preview of the text

Download Snowflake SnowPro Advanced Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which Snowflake account design best supports strict environment segregation (e.g., production, development, sandbox) while allowing shared governance policies? A) Multiple Snowflake accounts, one per environment B) Single account with separate databases per environment C) Single account with separate virtual warehouses per environment D) Multiple Snowflake accounts with a shared organization hierarchy Answer: D Explanation: Using multiple accounts under a single organization lets each environment be isolated (different accounts) while central governance (e.g., network policies, role hierarchy) can be applied across the organization. Question 2. In Snowflake, which edition provides built-in encryption at rest with customer‑managed keys (CMK) and private connectivity options? A) Standard B) Enterprise C) Business Critical D) Virtual Private Snowflake (VPS) Answer: C Explanation: Business Critical (formerly Enterprise for Sensitive Data) adds features such as Customer‑Managed Keys and PrivateLink/Private Connectivity for enhanced security. Question 3. Which Snowflake system role has the highest level of privileges and can grant any privilege on any object? A) ACCOUNTADMIN B) SECURITYADMIN C) SYSADMIN D) USERADMIN Answer: A

Explanation: ACCOUNTADMIN is the top‑level role; it can grant any privilege, including system‑level privileges, across the entire account. Question 4. When designing a custom RBAC model, what is the recommended practice for separating functional responsibilities from data access? A) Create a single role that includes both functional and data privileges B) Use functional roles for tasks and grant them object‑level privileges directly C) Create functional roles without data privileges and assign separate access roles for data D) Assign all users the SYSADMIN role and use row‑level security for data control Answer: C Explanation: Separating functional (e.g., ETL, reporting) and access roles improves least‑privilege enforcement and makes privilege management easier. Question 5. Which Snowflake feature allows a user to temporarily assume an additional role within a session without changing the primary role? A) Role hierarchy B) Secondary role activation C) Role inheritance D) Role cloning Answer: B Explanation: Users can activate secondary roles in a session using USE ROLE <role_name> without altering their primary role, enabling temporary privilege elevation. Question 6. How does a Database Role differ from a traditional Snowflake role? A) It can only be granted at the account level B) It is scoped to a single database and simplifies object‑level grants within that database C) It automatically inherits all privileges from the ACCOUNTADMIN role

B) OAuth tokens can be scoped and have limited lifetimes, reducing credential exposure C) OAuth enables direct access to Snowflake’s internal storage layers D) OAuth automatically grants ACCOUNTADMIN privileges to the caller Answer: B Explanation: OAuth tokens are short‑lived and can be scoped to specific roles, improving security for programmatic access. Question 10. Which Snowflake network policy component controls inbound traffic based on source IP address? A) PrivateLink endpoint B) Allowed IP list in a network policy C) Egress rule set D) Cloud provider security group Answer: B Explanation: Snowflake network policies allow you to specify an allowed list of IP addresses (or CIDR ranges) for inbound connections. Question 11. When implementing column‑level security with Dynamic Data Masking, which of the following is true? A) Masking policies are applied only to external tables B) Masking policies can reference session variables for conditional masking C) Masking policies encrypt the underlying data at rest D) Masking policies require a separate Snowflake edition Answer: B Explanation: Masking policies can use session context (e.g., CURRENT_ROLE) to decide whether to mask or reveal column values.

Question 12. Which Snowflake feature can be used to enforce row‑level security without modifying the underlying tables? A) Secure Views B) Row Access Policies C) Object Tagging D) Data Masking Rules Answer: B Explanation: Row Access Policies allow you to define predicates that filter rows based on the executing role or session context. Question 13. How does Object Tagging assist with cost management in Snowflake? A) Tags automatically compress data, reducing storage costs B) Tags can be used in queries to filter high‑cost objects for reporting C) Tags enable automated warehouse scaling based on tag values D) Tags are required for all objects in Business Critical edition Answer: B Explanation: By tagging objects (e.g., “cost‑center=marketing”), you can query the ACCOUNT_USAGE views to report storage and compute costs per tag, aiding cost allocation. Question 14. Which Snowflake construct is recommended for exposing a subset of columns while preserving query performance? A) Secure View with column masking B) Table clone with column pruning C) Materialized View with selective columns D) External Table with column projection Answer: A

D) Table Answer: B Explanation: Ownership granted at the database level gives the role control over all objects within that database, including schemas, tables, and stages. Question 18. In a Snowflake data model, which design pattern is most appropriate for handling rapidly changing, highly relational data with many many‑to‑many relationships? A) Star schema B) Snowflake schema C) Data Vault D) Flat file model Answer: C Explanation: Data Vault is designed for agility and scalability, handling many‑to‑many relationships and evolving structures efficiently. Question 19. Which Snowflake data type is used to store semi‑structured JSON, Avro, or Parquet data without a predefined schema? A) OBJECT B) VARIANT C) ARRAY D) GEOGRAPHY Answer: B Explanation: VARIANT can hold any semi‑structured data format, allowing schema‑on‑read queries with functions like FLATTEN. Question 20. Which Snowflake feature enables querying data directly from cloud storage without loading it into Snowflake tables? A) Snowpipe

B) External Tables C) Snowflake Streams D) Zero‑Copy Cloning Answer: B Explanation: External Tables map files in cloud storage (e.g., S3) to a virtual table, allowing direct SQL queries without data ingestion. Question 21. What is a primary benefit of using Iceberg tables in Snowflake? A) Automatic column‑level encryption B) Support for ACID transactions on external data lakes C) Built‑in row‑level security policies D) Real‑time streaming ingestion without Snowpipe Answer: B Explanation: Iceberg tables provide transactional guarantees (ACID) for data stored in external object stores, enabling reliable lakehouse workloads. Question 22. Which CI/CD tool can directly execute Snowflake SQL scripts via the Snowflake SnowSQL command‑line client? A) Jenkins B) Terraform C) GitHub Actions D) All of the above Answer: D Explanation: All listed tools can invoke SnowSQL in pipeline steps to run DDL/DML scripts, facilitating automated deployments.

Explanation: Cloned tables can be dropped independently; they merely share storage until modifications occur. Question 26. When replicating a Snowflake database across regions for disaster recovery, which object type is NOT supported for replication? A) Tables B) Secure Views C) External Tables D) Materialized Views Answer: C Explanation: External Tables reference data in external storage and are not replicated by Snowflake’s native database replication feature. Question 27. Which COPY INTO option controls how rows that cause errors are handled during bulk loading? A) ON_ERROR B) FORCE = TRUE C) PURGE = FALSE D) PATTERN = ‘.*’ Answer: A Explanation: The ON_ERROR parameter defines actions such as CONTINUE, SKIP_FILE, or ABORT for rows that generate errors. Question 28. Which Snowpipe feature enables near‑real‑time loading of data as soon as files appear in a stage? A) Automatic file detection via event notifications B) Manual invocation of COPY INTO inside a stored procedure C) Batch loading using a scheduled Task

D) Streaming ingest via Snowpipe Streaming API Answer: A Explanation: Snowpipe automatically triggers when cloud storage events (e.g., S3 put) are sent to Snowflake, loading files in seconds. Question 29. What is the primary difference between Snowpipe and Snowpipe Streaming? A) Snowpipe Streaming supports micro‑batch loads from internal stages only B) Snowpipe Streaming ingests data via a continuous API, enabling sub‑second latency C) Snowpipe Streaming requires manual COPY INTO statements D) Snowpipe Streaming does not support error handling Answer: B Explanation: Snowpipe Streaming provides a continuous ingest API for real‑time data streams, whereas classic Snowpipe processes files as they land. Question 30. Which Snowflake object is required to define the file format (e.g., CSV, JSON) for a COPY INTO operation? A) Stage B) File Format C) Pipe D) Table Function Answer: B Explanation: A File Format object specifies parsing options (delimiter, compression, etc.) used by COPY INTO and Snowpipe. Question 31. Which Snowflake feature allows you to track changes (INSERT, UPDATE, DELETE) on a standard table? A) Streams

Question 34. Which Snowpark API is used to write custom transformations in Scala, Java, or Python? A) Snowpark DataFrames B) Snowpark Stored Procedures C) Snowpark UDFs D) Snowpark Sessions Answer: A Explanation: Snowpark DataFrames let developers apply DataFrame‑style operations (select, filter, join) in supported languages, running natively in Snowflake. Question 35. When unloading data to an external stage, which COPY INTO option specifies the compression type for the output files? A) FILE_FORMAT = (TYPE = CSV COMPRESSION = GZIP) B) COMPRESSION = ‘GZIP’ C) ENCRYPTION = (TYPE = 'AWS_SSE_KMS') D) HEADER = TRUE Answer: A Explanation: The FILE_FORMAT clause can include a COMPRESSION parameter to control the compression of the generated files. Question 36. Which Snowflake connector is optimized for bulk loading of data from Apache Spark? A) Snowflake JDBC driver B) Snowflake Spark Connector C) Snowflake ODBC driver D) Snowflake Python connector Answer: B

Explanation: The Snowflake Spark Connector provides native integration with Spark, supporting parallel bulk writes and reads. Question 37. Which Snowflake warehouse sizing strategy automatically adds or removes clusters based on query concurrency? A) Auto‑Suspend/Resume only B) Multi‑Cluster Warehouse with Auto‑Scaling C) Single‑Cluster Warehouse with Manual Scaling D) Snowpark‑Optimized Warehouse Answer: B Explanation: Multi‑Cluster Warehouses can be configured to auto‑scale up or down based on the number of queued queries, improving concurrency. Question 38. Which of the following causes a warehouse to spill to remote storage? A) Insufficient credits in the account B) Query results exceeding the warehouse cache size C) Running more than the maximum number of concurrent queries D) Using a warehouse with a size smaller than the required compute for the query Answer: D Explanation: When a warehouse lacks enough compute resources, intermediate results may be written (spilled) to remote storage, slowing performance. Question 39. What is the purpose of the Query Acceleration Service (QAS) in Snowflake? A) To accelerate data loading via Snowpipe B) To provide an additional compute layer for high‑frequency, low‑latency queries C) To automatically rewrite queries for better performance D) To cache result sets across accounts

C) INFORMATION_SCHEMA.TABLES.ROW_COUNT

D) SYSTEM$CLUSTERING_INFORMATION

Answer: C Explanation: The ROW_COUNT column in INFORMATION_SCHEMA.TABLES provides stored statistics about row count without a full scan. Question 43. Which Snowflake object is used to enforce a credit consumption limit for a set of warehouses? A) Resource Monitor B) Credit Quota C) Warehouse Policy D) Usage Guard Answer: A Explanation: Resource Monitors track credit usage and can suspend warehouses when defined thresholds are exceeded. Question 44. Which ACCOUNT_USAGE view provides daily credit consumption per warehouse? A) WAREHOUSE_METERING_HISTORY B) WAREHOUSE_LOAD_HISTORY C) CREDIT_USAGE_DAILY D) WAREHOUSE_USAGE_HISTORY Answer: A Explanation: WAREHOUSE_METERING_HISTORY contains per‑warehouse credit consumption details, useful for cost analysis. Question 45. Which Snowflake feature can be used to trigger an alert when a warehouse’s credit usage exceeds a defined threshold?

A) Snowflake Alerts (via ALERTS view) B) Resource Monitor with NOTIFY action C) Event Table with a Stream‑Task pattern D) All of the above Answer: D Explanation: All three mechanisms can generate notifications: native Alerts, Resource Monitor notifications, or custom Stream‑Task pipelines writing to an Event Table. Question 46. Which Snowflake edition supports PrivateLink for both inbound and outbound traffic? A) Standard B) Enterprise C) Business Critical D) Virtual Private Snowflake (VPS) only Answer: C Explanation: Business Critical provides full PrivateLink support, allowing private connectivity into and out of Snowflake. Question 47. When designing a multi‑account organization, which Snowflake feature enables sharing of a single network policy across accounts? A) Global Network Policy B) Organization‑wide Network Policies (via ACCOUNTADMIN) C) Cross‑Account Role Grants D) PrivateLink Endpoint Services Answer: B Explanation: An organization admin can create network policies that are inherited by all member accounts, ensuring consistent ingress controls.

Answer: A Explanation: Tagging objects and linking tags to masking policies enables automatic application of masks when the tag is present. Question 51. Which Snowflake privilege is required to create a new network policy? A) CREATE NETWORK POLICY B) MODIFY ACCOUNT C) MANAGE GRANTS D) GLOBAL CREATE POLICY Answer: A Explanation: The CREATE NETWORK POLICY privilege (granted by ACCOUNTADMIN) allows a role to define network policies. Question 52. In a Snowflake multi‑cluster warehouse, what does the “minimum clusters” setting control? A) The number of clusters that are always running, even if idle B) The maximum number of concurrent queries allowed C) The number of clusters that can be paused automatically D) The number of clusters reserved for high‑priority queries only Answer: A Explanation: The minimum clusters value ensures a baseline number of clusters stay active to reduce latency for incoming queries. Question 53. Which Snowflake function returns the size (in bytes) of a VARIANT column for a given row? A) OBJECT_SIZE() B) ARRAY_SIZE()

C) TO_BINARY()

D) SYSTEM$GET_VARIANT_SIZE()

Answer: A Explanation: OBJECT_SIZE returns the approximate size in bytes of a VARIANT, OBJECT, or ARRAY value. Question 54. Which Snowflake feature can be used to automatically purge files from a stage after successful COPY INTO execution? A) AUTO_PURGE = TRUE in the stage definition B) PURGE = TRUE option in the COPY INTO command C) CLEANUP = TRUE in the file format D) STAGE_RETENTION = 0 days Answer: B Explanation: Adding PURGE = TRUE to COPY INTO removes the source files from the stage after they are loaded successfully. Question 55. Which Snowflake command can be used to list all active sessions for a given user? A) SHOW SESSIONS LIKE '' B) SELECT * FROM INFORMATION_SCHEMA.SESSIONS WHERE USER_NAME = '' C) LIST SESSIONS FOR USER '' D) DESCRIBE SESSION '' Answer: B Explanation: The INFORMATION_SCHEMA.SESSIONS view provides details about active sessions, filterable by USER_NAME. Question 56. Which Snowflake feature provides a way to define a “soft delete” period for tables, allowing recovery after accidental DROP?