# Differentiate Snowflake object hierarchy and types — Practice reading

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Snowflake AI Data Cloud Features & Architecture
HTML: https://learningpathx.com/learning-path/COF-C03/learn/69

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: Organization and account objects

An engineer using ACCOUNTADMIN in an ordinary account attempts to create a new full Snowflake account for the organization and receives an authorization error. The organization uses an organization account. Which role boundary explains the failure?

### Options

**A**

Account administration is limited to accounts on the same cloud provider.

**B**

SECURITYADMIN in the ordinary account has organization-level account creation authority.

**C**

A database replication link must exist before a full account can be created.

**D**

Full-account creation is an organization administration operation supported by GLOBALORGADMIN in the organization account; ACCOUNTADMIN alone in the ordinary account does not supply that authority.

Correct answer: D

### Explanation

A: Incorrect: organizations can span supported cloud providers. B: Incorrect: SECURITYADMIN within ordinary account not org account-provisioning authority. C: Incorrect: target account must exist before replication can target it. D: Correct when qualified: organization admin privilege is required; ORGADMIN or current GLOBALORGADMIN route.

## Question 2

Type: single\_choice
Knowledge point: Organization and account objects

An engineer maps the object hierarchy before granting USAGE on containers and SELECT on the required tables or views separately. Which securable object sits immediately above a schema?

### Options

**A**

The Organization object

**B**

The Database object

**C**

The micro-partition

**D**

The Account object

Correct answer: B

### Explanation

A: Incorrect: organization above accounts, not immediate schema parent. B: Correct: database directly contains schemas. C: Incorrect: physical partition not grantable securable container. D: Incorrect: account contains databases/warehouses/users, not immediate schema parent.

## Question 3

Type: single\_choice
Knowledge point: Organization and account objects

An authorized role creates GOVERNANCE\_DB.TAGS.DATA\_CLASSIFICATION, a tag allowed to take value 'PII', and assigns it to objects using its fully qualified name. Linked masking policies will supply the desired masking enforcement. At which hierarchy level is the tag definition stored?

### Options

**A**

At the Virtual Warehouse level, inside warehouse configurations

**B**

At the Schema level, acting as a standard schema-level object

**C**

At the Account level, acting as a global account parameter

**D**

At the Table level, dynamically generated at table creation

**E**

At the Organization level, using the ORGADMIN system role

Correct answer: B

### Explanation

A: Incorrect: warehouse can receive tags but cannot contain definition. B: Correct: tag definition schema-level object. C: Incorrect: tag not account parameter. D: Incorrect: independent tag definition not auto table-generated. E: Incorrect: tag not organization-global object.

## Question 4

Type: single\_choice
Knowledge point: Organization and account objects

A Cloud Architect is planning architecture, governance, and rollout tradeoffs for organization and account objects during an enterprise migration. The architect needs to establish a clear hierarchy that separates development, testing, and production environments across different cloud providers. According to the Snowflake object hierarchy, what is the highest level object that encapsulates all other objects across different regions and cloud providers?

### Options

**A**

The Organization object

**B**

The Cloud Services layer

**C**

The Account object

**D**

The Database object

Correct answer: A

### Explanation

A: Correct: organization groups accounts across regions/clouds. B: Incorrect: Cloud Services architecture layer not management container. C: Incorrect: account groups its own objects, subordinate organization. D: Incorrect: database sits within individual account.

## Question 5

Type: single\_choice
Knowledge point: Organization and account objects

A company has separate regular Snowflake accounts for production and testing in one organization. Both accounts contain a database named APP\_DATA. A deployment script is connected to the testing account and must create a virtual warehouse for testing. Which object placement is correct?

### Options

**A**

Create the warehouse in the testing account, independently of APP\_DATA.

**B**

Create the warehouse in a schema within testing.APP\_DATA.

**C**

Create the warehouse under the organization so both accounts use the same warehouse object.

**D**

Create the warehouse in the production account because the two APP\_DATA names identify one database.

Correct answer: A

### Explanation

Accounts are separate object containers within an organization. The testing warehouse belongs to the testing account; matching database names do not make either databases or warehouses global organization objects.

## Question 6

Type: single\_choice
Knowledge point: Session and context variables - Parameter hierarchy, Parameter precedence

Account STATEMENT\_TIMEOUT\_IN\_SECONDS is 3600\. The active session explicitly sets 7200; no user override applies, and the selected warehouse timeout is 0 (no separate nonzero cap). Which setting supplies the effective timeout for this SELECT?

### Options

**A**

The Session level, because the explicit ALTER SESSION command overrides the Account default for the active connection.

**B**

The Object level, because the virtual warehouse enforces a strict execution cap regardless of the session context.

**C**

The User level, because the terminal automatically binds the new parameter to the user's permanent profile.

**D**

The Account level, because security-related timeout boundaries set by administrators cannot be escalated by standard end-users.

Correct answer: A

### Explanation

A: The explicit session setting supplies 7200 in this scenario because no smaller nonzero warehouse cap applies. B: Warehouse-level statement timeout exists, but the stated zero does not impose this proposed cap. C: ALTER SESSION does not change the user's stored default. D: The account default is overridden for this session; timeout-specific warehouse/session minimum rules still apply.

## Question 7

Type: single\_choice
Knowledge point: Session and context variables - Parameter hierarchy, Parameter precedence

In an Enterprise Edition account, DATA\_RETENTION\_TIME\_IN\_DAYS is explicitly set to 7 at account level, 14 on database SALES\_DB, and 21 on schema SALES\_DB.REPORTING. MIN\_DATA\_RETENTION\_TIME\_IN\_DAYS is 0\. The schema contains two active permanent tables: FIXED\_T has an explicit retention value of 3; INHERITED\_T has no explicit retention value. An administrator changes only the schema's retention value from 21 to 28\. What retention values then apply to FIXED\_T and INHERITED\_T?

### Options

**A**

FIXED\_T: 28 days; INHERITED\_T: 28 days

**B**

FIXED\_T: 3 days; INHERITED\_T: 14 days

**C**

FIXED\_T: 3 days; INHERITED\_T: 28 days

**D**

FIXED\_T: 7 days; INHERITED\_T: 7 days

Correct answer: C

### Explanation

The active table with an explicit setting keeps it; the table without one inherits the new schema value. The zero account minimum introduces no higher retention floor.

## Question 8

Type: single\_choice
Knowledge point: Session and context variables - Parameter hierarchy, Parameter precedence

An administrator checks STATEMENT\_TIMEOUT\_IN\_SECONDS for a non-task SQL statement using these commands: SHOW PARAMETERS LIKE 'STATEMENT\_TIMEOUT\_IN\_SECONDS' IN ACCOUNT; SHOW PARAMETERS LIKE 'STATEMENT\_TIMEOUT\_IN\_SECONDS' IN USER ANALYST; SHOW PARAMETERS LIKE 'STATEMENT\_TIMEOUT\_IN\_SECONDS' IN SESSION; SHOW PARAMETERS LIKE 'STATEMENT\_TIMEOUT\_IN\_SECONDS' IN WAREHOUSE REPORT\_WH; The explicit values are account = 60, user = 120, session = 300, and REPORT\_WH = 180\. The statement executes in this session on REPORT\_WH. No other cancellation limit applies. Which timeout value governs this statement?

### Options

**A**

60 seconds

**B**

120 seconds

**C**

300 seconds

**D**

180 seconds

Correct answer: D

### Explanation

Resolve account-to-user-to-session precedence first, then compare the effective session value with the warehouse value. STATEMENT\_TIMEOUT\_IN\_SECONDS applies to overall statement time, including compilation, queuing and execution.

## Question 9

Type: single\_choice
Knowledge point: Session and context variables - Parameter hierarchy, Parameter precedence

An architect needs an account-wide fallback for the session parameter STATEMENT\_TIMEOUT\_IN\_SECONDS. Users and sessions may override the inherited session default. Separately, an applicable warehouse timeout participates using Snowflake's lower nonzero timeout rule. At which level should the inherited global fallback be configured?

### Options

**A**

At the Session level

**B**

At the Virtual Warehouse level

**C**

At the User level

**D**

At the Account level

Correct answer: D

### Explanation

Under the stated configuration, Account establishes fallback default for users/sessions. A: Session applies only current session. B: Warehouse timeout affects its work and combines with session timeout. C: User parameter affects that user's sessions. D: Account establishes fallback default for users/sessions.

## Question 10

Type: multiple\_choice
Knowledge point: Session and context variables - Parameter hierarchy, Parameter precedence

A deployment diagnostic sets USE ROLE SYSADMIN; USE WAREHOUSE DEPLOY\_WH; USE DATABASE STAGING\_DB; then runs only SELECT CURRENT\_ROLE(), CURRENT\_WAREHOUSE(), CURRENT\_DATABASE();. These are context-only expressions, not an INSERT or a table scan. Which three statements correctly describe this query? (Choose 3.)

### Options

**A**

These functions evaluate in the Cloud Services layer using session metadata, without needing a running virtual warehouse to execute them.

**B**

CURRENT\_ROLE() returns 'SYSADMIN', accurately reflecting the active security role that is explicitly set for the current user's session.

**C**

CURRENT\_WAREHOUSE() returns 'DEPLOY\_WH', indicating the specific virtual compute resource actively bound to the current session context.

**D**

CURRENT\_DATABASE() returns NULL because context functions cannot read securable object metadata from the underlying database storage layer.

**E**

CURRENT\_ROLE() ignores USE ROLE and returns the user's default role.

Correct answer: A, B, C

### Explanation

Under the stated configuration, This SELECT evaluates only session context values and can be answered without warehouse data processing. USE WAREHOUSE selects a context even when that warehouse is suspended. Explicit USE ROLE gives CURRENT\_ROLE SYSADMIN. Explicit USE WAREHOUSE gives selected DEPLOY\_WH even if suspended. A: This SELECT evaluates only session context values and can be answered without warehouse data processing. USE WAREHOUSE selects a context even when that warehouse is suspended. B: Explicit USE ROLE gives CURRENT\_ROLE SYSADMIN. C: Explicit USE WAREHOUSE gives selected DEPLOY\_WH even if suspended. D: CURRENT\_DATABASE returns STAGING\_DB after USE DATABASE. E: CURRENT\_ROLE() reports the primary role explicitly active in the current session, not the default role after it has been overridden.

## Question 11

Type: single\_choice
Knowledge point: Session and context variables - Parameter hierarchy, Parameter precedence

The user ANALYST has DATE\_OUTPUT\_FORMAT = 'DD-MON-YYYY' at user level, while the account default is 'YYYY-MM-DD'. ANALYST wants SQL DATE results in the current session to display as MM/DD/YYYY. The user-level setting and defaults for future sessions must stay as they are. No client-side date formatting is applied. Which statement should ANALYST execute?

### Options

**A**

ALTER USER ANALYST SET DATE\_OUTPUT\_FORMAT = 'MM/DD/YYYY';

**B**

ALTER SESSION SET DATE\_OUTPUT\_FORMAT = 'MM/DD/YYYY';

**C**

ALTER SESSION SET DATE\_INPUT\_FORMAT = 'MM/DD/YYYY';

**D**

SET DATE\_OUTPUT\_FORMAT = 'MM/DD/YYYY';

Correct answer: B

### Explanation

Use ALTER SESSION SET for the output parameter. The narrower session setting takes precedence during this session without changing the user-level default.

