MCQs on Snowflake Fundamentals | Snowflake

Snowflake is a cutting-edge cloud data platform that simplifies data management, querying, and analysis. Chapter 3 dives into the foundational concepts of Snowflake, including its object hierarchy (databases, schemas, tables), efficient management of virtual warehouses, and the basics of data storage. Learn how to query with SQL in Snowflake for optimal performance and usability.


MCQs

Topic 1: Snowflake’s Object Hierarchy (Databases, Schemas, Tables)

  1. In Snowflake, a schema is a:
    a) Collection of databases
    b) Logical grouping of tables and other objects
    c) Physical storage location for data
    d) Type of virtual warehouse
  2. What is the smallest unit of data organization in Snowflake?
    a) Database
    b) Table
    c) Schema
    d) Warehouse
  3. A database in Snowflake can contain:
    a) Only schemas
    b) Only tables
    c) Schemas, tables, and other objects
    d) Only virtual warehouses
  4. Which command is used to create a schema in Snowflake?
    a) CREATE TABLE
    b) CREATE SCHEMA
    c) CREATE DATABASE
    d) CREATE WAREHOUSE
  5. The default role in Snowflake that allows the creation of databases is:
    a) SYSADMIN
    b) PUBLIC
    c) SECURITYADMIN
    d) ACCOUNTADMIN
  6. What is the purpose of a table in Snowflake?
    a) Storing configuration details
    b) Hosting data records
    c) Managing user roles
    d) Organizing warehouses
  7. A schema resides inside which component of Snowflake’s hierarchy?
    a) Table
    b) Virtual warehouse
    c) Database
    d) Query

Topic 2: Working with Warehouses

  1. Virtual warehouses in Snowflake are primarily used for:
    a) Storing data
    b) Executing queries
    c) Managing schemas
    d) Configuring networks
  2. How can you suspend a warehouse in Snowflake?
    a) By deleting the warehouse
    b) By using the SUSPEND command
    c) Automatically after a specified idle time
    d) By creating a new database
  3. Which size of virtual warehouse in Snowflake offers the highest compute capacity?
    a) SMALL
    b) MEDIUM
    c) LARGE
    d) 4XLARGE
  4. Warehouses in Snowflake scale:
    a) Vertically only
    b) Horizontally only
    c) Both horizontally and vertically
    d) Automatically without user input
  5. When a virtual warehouse is running, Snowflake charges for:
    a) Data storage
    b) Compute resources
    c) Network bandwidth
    d) All of the above
  6. What happens when a query is executed in Snowflake, but no warehouse is running?
    a) The query fails
    b) Snowflake automatically starts the warehouse
    c) The query is queued until a warehouse starts
    d) The query uses Snowflake’s default warehouse
  7. Which command is used to resize a virtual warehouse in Snowflake?
    a) ALTER WAREHOUSE
    b) MODIFY WAREHOUSE
    c) RESIZE WAREHOUSE
    d) UPDATE WAREHOUSE

Topic 3: Data Storage and Virtual Warehouses

  1. Snowflake stores data in:
    a) Proprietary data centers
    b) A cloud storage layer
    c) On-premise servers
    d) SQL databases
  2. Snowflake data storage is optimized for:
    a) Network speed
    b) High availability and compression
    c) On-premise compatibility
    d) Low-cost compute
  3. Data in Snowflake is stored as:
    a) Plain text files
    b) Encrypted and compressed micro-partitions
    c) JSON objects
    d) SQL files
  4. How does Snowflake ensure scalability in data storage?
    a) By storing data in fixed-size blocks
    b) By using cloud providers’ storage infrastructure
    c) By limiting the number of tables per schema
    d) By compressing all data to the same level
  5. Snowflake separates compute from:
    a) Data access
    b) Data storage
    c) Networking
    d) User authentication
  6. Which term describes Snowflake’s ability to automatically manage the availability of data?
    a) High availability
    b) Data mirroring
    c) Elastic scaling
    d) Data replication

Topic 4: Introduction to Querying with SQL

  1. Snowflake uses which SQL dialect?
    a) PostgreSQL
    b) ANSI SQL
    c) MySQL
    d) Oracle SQL
  2. Which clause in a SQL SELECT statement is used to filter rows?
    a) ORDER BY
    b) GROUP BY
    c) WHERE
    d) FROM
  3. To limit the number of rows returned by a query, you use:
    a) LIMIT
    b) OFFSET
    c) RESTRICT
    d) COUNT
  4. In Snowflake, how do you write a query to select all columns from a table named “customers”?
    a) SELECT customers.* FROM *
    b) SELECT * FROM customers
    c) SELECT ALL FROM customers
    d) SELECT FROM customers
  5. The COUNT function in SQL is used to:
    a) Sum numeric values
    b) Count the number of rows
    c) Retrieve unique records
    d) Filter duplicate rows
  6. Which keyword is used to sort query results in ascending order?
    a) SORT
    b) ORDER BY ASC
    c) GROUP BY
    d) FILTER ASC
  7. In Snowflake, which function is used to combine the results of two queries?
    a) JOIN
    b) UNION
    c) MERGE
    d) CONCAT
  8. Which of the following is not a valid aggregate function in SQL?
    a) AVG
    b) MAX
    c) SUM
    d) COUNT DISTINCT
  9. The default sort order for results in Snowflake is:
    a) Ascending
    b) Descending
    c) Random
    d) None
  10. A query in Snowflake returns data in:
    a) CSV format
    b) JSON format
    c) Tabular format
    d) Any specified format

Answer Key

QNoAnswer
1b) Logical grouping of tables and other objects
2b) Table
3c) Schemas, tables, and other objects
4b) CREATE SCHEMA
5a) SYSADMIN
6b) Hosting data records
7c) Database
8b) Executing queries
9c) Automatically after a specified idle time
10d) 4XLARGE
11c) Both horizontally and vertically
12b) Compute resources
13b) Snowflake automatically starts the warehouse
14a) ALTER WAREHOUSE
15b) A cloud storage layer
16b) High availability and compression
17b) Encrypted and compressed micro-partitions
18b) By using cloud providers’ storage infrastructure
19b) Data storage
20a) High availability
21b) ANSI SQL
22c) WHERE
23a) LIMIT
24b) SELECT * FROM customers
25b) Count the number of rows
26b) ORDER BY ASC
27b) UNION
28d) COUNT DISTINCT
29d) None
30c) Tabular format

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top