Bird
Raised Fist0
Snowflakecloud~30 mins

Multi-account and organization management in Snowflake - Mini Project: Build & Apply

Choose your learning style10 modes available
Multi-account and Organization Management in Snowflake
📖 Scenario: You are working as a cloud administrator for a company that uses Snowflake for data warehousing. The company wants to organize its Snowflake accounts into an organization to manage billing and access centrally. You will create a structure to represent multiple Snowflake accounts and configure organization-level settings.
🎯 Goal: Build a Snowflake organization structure with multiple accounts and configure a shared resource monitor for the organization.
📋 What You'll Learn
Create a dictionary called accounts with three Snowflake accounts and their regions
Create a variable called default_region set to 'US_WEST_2'
Create a list called active_accounts containing accounts in the default region
Create a configuration dictionary called org_config with a shared resource monitor named 'ORG_MONITOR'
💡 Why This Matters
🌍 Real World
Companies using Snowflake often manage multiple accounts across regions. Organizing these accounts helps centralize billing and resource management.
💼 Career
Cloud administrators and data engineers need to manage multi-account setups and configure organization-wide settings in Snowflake.
Progress0 / 4 steps
1
Create the Snowflake accounts dictionary
Create a dictionary called accounts with these exact entries: 'account1': 'US_WEST_2', 'account2': 'EU_CENTRAL_1', 'account3': 'US_WEST_2'.
Snowflake
Hint

Use curly braces to create a dictionary with keys as account names and values as regions.

2
Set the default region variable
Create a variable called default_region and set it to the string 'US_WEST_2'.
Snowflake
Hint

Assign the string 'US_WEST_2' to the variable named default_region.

3
Filter accounts by default region
Create a list called active_accounts that contains the keys from accounts where the value equals default_region. Use a list comprehension with account as the iterator variable.
Snowflake
Hint

Use a list comprehension to select account names where their region matches default_region.

4
Create organization configuration with shared resource monitor
Create a dictionary called org_config with a key 'shared_resource_monitor' set to the string 'ORG_MONITOR'.
Snowflake
Hint

Create a dictionary with the key 'shared_resource_monitor' and value 'ORG_MONITOR'.

Practice

(1/5)
1. What is the main benefit of using Multi-account management in Snowflake?
easy
A. It groups multiple Snowflake accounts under one organization for easier management.
B. It allows running queries faster by combining accounts.
C. It automatically backs up data across accounts.
D. It merges all accounts into a single database.

Solution

  1. Step 1: Understand Multi-account management purpose

    Multi-account management groups Snowflake accounts under one organization to simplify management tasks.
  2. Step 2: Identify the main benefit

    This grouping helps manage users, billing, and security more easily across accounts.
  3. Final Answer:

    It groups multiple Snowflake accounts under one organization for easier management. -> Option A
  4. Quick Check:

    Multi-account management = Group accounts for easier management [OK]
Hint: Think of it as organizing accounts like folders in one place [OK]
Common Mistakes:
  • Confusing account grouping with data merging
  • Assuming it speeds up queries automatically
  • Thinking it backs up data across accounts
2. Which Snowflake SQL command is used to create a new organization for multi-account management?
easy
A. CREATE ORG my_org;
B. CREATE ACCOUNT my_org;
C. CREATE MULTI_ACCOUNT my_org;
D. CREATE ORGANIZATION my_org;

Solution

  1. Step 1: Recall the correct syntax for creating an organization

    The correct command to create an organization is CREATE ORGANIZATION <name>;.
  2. Step 2: Compare options

    Only CREATE ORGANIZATION my_org; uses the exact syntax CREATE ORGANIZATION my_org;. Others use invalid or non-existent commands.
  3. Final Answer:

    CREATE ORGANIZATION my_org; -> Option D
  4. Quick Check:

    Organization creation command = CREATE ORGANIZATION [OK]
Hint: Remember: 'ORGANIZATION' keyword creates org, not 'ACCOUNT' [OK]
Common Mistakes:
  • Using CREATE ACCOUNT instead of CREATE ORGANIZATION
  • Using shorthand commands like CREATE ORG which don't exist
  • Confusing multi-account with multi-database commands
3. Given the following commands executed in Snowflake:
CREATE ORGANIZATION org1;
CREATE ACCOUNT acc1 IN ORGANIZATION org1;
CREATE ACCOUNT acc2 IN ORGANIZATION org1;
SHOW ACCOUNTS IN ORGANIZATION org1;
What will the last command display?
medium
A. A list showing acc1 and acc2 accounts under org1.
B. An error because SHOW ACCOUNTS is invalid.
C. Only acc1 account details.
D. An empty list because accounts are not linked automatically.

Solution

  1. Step 1: Understand account creation in an organization

    Accounts acc1 and acc2 are created inside organization org1, linking them properly.
  2. Step 2: Interpret SHOW ACCOUNTS command

    The command lists all accounts under the specified organization, so it will show both acc1 and acc2.
  3. Final Answer:

    A list showing acc1 and acc2 accounts under org1. -> Option A
  4. Quick Check:

    SHOW ACCOUNTS IN ORGANIZATION lists all linked accounts [OK]
Hint: SHOW ACCOUNTS lists all accounts in the organization [OK]
Common Mistakes:
  • Thinking SHOW ACCOUNTS is invalid syntax
  • Assuming only one account shows by default
  • Believing accounts are not linked automatically
4. You run this command but get an error:
CREATE ACCOUNT acc3 IN ORGANIZATION org2;
The organization org2 does not exist. How do you fix this?
medium
A. Change the command to CREATE ACCOUNT acc3 WITHOUT ORGANIZATION;
B. Create the organization org2 first using CREATE ORGANIZATION org2;
C. Use CREATE ORGANIZATION acc3; instead of CREATE ACCOUNT;
D. Delete acc3 and recreate it without specifying organization.

Solution

  1. Step 1: Identify cause of error

    The error occurs because org2 does not exist, so the account cannot be linked to it.
  2. Step 2: Fix by creating the organization first

    Use CREATE ORGANIZATION org2; to create the organization before adding accounts.
  3. Final Answer:

    Create the organization org2 first using CREATE ORGANIZATION org2; -> Option B
  4. Quick Check:

    Organization must exist before adding accounts [OK]
Hint: Always create organization before adding accounts to it [OK]
Common Mistakes:
  • Trying to create account without existing organization
  • Using wrong commands like CREATE ORGANIZATION acc3
  • Assuming accounts can exist without organizations
5. You want to manage billing for multiple Snowflake accounts centrally. Which approach using multi-account and organization management is best?
hard
A. Use separate organizations for each account to track billing individually.
B. Keep accounts separate and manually combine bills outside Snowflake.
C. Create an organization and add all accounts to it, then enable centralized billing.
D. Merge all accounts into one account to simplify billing.

Solution

  1. Step 1: Understand billing management with organizations

    Snowflake allows centralized billing by grouping accounts under one organization.
  2. Step 2: Choose the best approach

    Creating an organization and adding accounts to it enables centralized billing and easier management.
  3. Step 3: Evaluate other options

    Keeping accounts separate or merging accounts is less efficient or not supported for billing. Separate organizations prevent central billing.
  4. Final Answer:

    Create an organization and add all accounts to it, then enable centralized billing. -> Option C
  5. Quick Check:

    Central billing = One organization with multiple accounts [OK]
Hint: Group accounts in one organization for centralized billing [OK]
Common Mistakes:
  • Trying to merge accounts instead of grouping
  • Using separate organizations which block central billing
  • Manually combining bills outside Snowflake
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard