MFA, SSO, OAuth, and Network Policies
SnowPro Core · Lesson 11 of 27 · 1:13:47
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SnowPro Core Certification exam (COF-C03). In this lesson: multi-factor authentication and single sign-on, OAuth, key pairs and programmatic access tokens, network policies, account identifiers, and logging. Follows Foxglove Apparel, a fictional online clothing retailer. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Passwords everywhere
At Foxglove, an analyst signs in with a password alone, a nightly pipeline logs in with a password stored in a script, and nobody knows which addresses can reach the account. Snowflake offers stronger ways to sign in, for people and for programs. And network policies decide where requests may come from.
Multi-factor authentication
For people, Snowflake supports passwords with multi-factor authentication. In newer accounts, every human user who signs in with a password must enroll in M F A, and Snowflake is phasing out sign-ins with a password alone. The second factor can be a passkey, which Snowflake recommends, an authenticator app with one-time codes, or Duo. And every user with ACCOUNTADMIN should be required to use M F A.
Federated authentication and SSO
With federated authentication, an external identity provider signs users in, through SAML 2.0. Snowflake acts as the service provider, and users get single sign-on to Snowsight and to other clients. By default, Snowflake does not require its own M F A for single sign-on users, and it relies on the identity provider to enforce strong authentication. SCIM can also create and modify users and roles automatically, from the identity provider.
OAuth
OAuth lets an application act for a user, with a token instead of a password. Snowflake OAuth uses Snowflake as the authorization server, with a sign-in in the browser. External OAuth relies on your own authorization server, such as your identity provider, and it is the best fit for programmatic clients. Both are configured as a security integration in Snowflake.
Service users, key pairs, and tokens
Programs should use service users, created with the type SERVICE: they cannot log in with a password, and they cannot enroll in M F A. They can authenticate with a key pair, an R S A key of at least two thousand and forty-eight bits, whose public key is set on the user, and a second public key allows rotation without downtime. Programmatic access tokens are another option, with an expiration of up to a year by default, and by default the user must be subject to a network policy to use one. Human users, on the other hand, have the type PERSON.
Network policies
A network policy controls which addresses can reach Snowflake, with an allowed list and a blocked list. The recommended way is to add network rules to those lists, rather than raw I P addresses, and once an address is allowed, every other address is blocked. If the same address appears in both lists, the blocked list always wins. A policy can apply to the account, to a user, or to a security integration, and the most specific one wins: the integration over the user, and the user over the account.
Account identifiers and logging
The preferred account identifier joins the organization name and the account name with a hyphen, such as foxglove dash analytics. The older account locator still works, but it is no longer recommended. For logging and tracing, procedures and functions send logs, traces, and metrics to an event table, and Snowflake provides a default one. Telemetry levels, such as the log level, decide how much data is collected, and collection has a cost.
Recap
Let's recap. People sign in with a password plus M F A, ideally a passkey, or through SAML single sign-on, where the identity provider enforces strong authentication. OAuth gives applications tokens, with Snowflake OAuth or External OAuth, configured as a security integration. Service users have no password, and they use a key pair or a programmatic access token. Network policies hold network rules, the blocked list wins, and the most specific policy applies. And the preferred account identifier is organization dash account, while event tables collect logs and traces.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Foxglove’s employees sign in through its identity provider, with SAML single sign-on. The security team wants every sign-in to use a second factor. By default, where is that second factor enforced?
- Snowflake’s own MFA, always on for SSO
- A network policy on the account
- Key-pair authentication for each user
- In the identity provider
Show the answer
In the identity provider
By default, Snowflake relies on the identity provider to enforce M F A for single sign-on users. “Snowflake’s own MFA, always on for SSO” is wrong, because Snowflake does not require its own M F A for single sign-on, unless you configure it. “A network policy on the account” controls where requests come from, not how users prove who they are. And “Key-pair authentication for each user” is meant for programs, not for people who sign in through single sign-on.
Foxglove’s nightly loading pipeline signs in as a user, with a password stored in a script. What is the recommended setup?
- A SERVICE user with key-pair authentication
- A PERSON user with MFA in an authenticator app
- The same password, behind a network policy
- Snowflake OAuth with a browser sign-in
Show the answer
A SERVICE user with key-pair authentication
A service user cannot use a password at all, and a key pair suits an unattended pipeline. “A PERSON user with MFA in an authenticator app” would need a person to enter a code at every sign-in. “The same password, behind a network policy” still keeps a password in a script, even with a restricted network. And “Snowflake OAuth with a browser sign-in” needs a sign-in in a browser, which an unattended pipeline cannot do.
Foxglove’s account network policy allows only the office range. A user-level policy for a contractor allows the contractor’s home address. The contractor connects from home. What happens?
- Blocked: the account policy always wins
- Allowed only if the account also lists it
- Allowed: the user policy overrides the account
- Blocked: user policies only apply to OAuth
Show the answer
Allowed: the user policy overrides the account
A user-level network policy is more specific, so it overrides the account policy for that user. “Blocked: the account policy always wins” is wrong, because the account policy is the most general one. “Allowed only if the account also lists it” is wrong, since the account list no longer applies to a user who has a policy of their own. And “Blocked: user policies only apply to OAuth” is wrong, because user-level policies apply to ordinary sign-ins too.