Snowflake SnowPro Core Practice Test 34
Question 330
For an original SnowPro Core educational scenario, consider: An application tries to create a new table using a privilege available only in an unrelated secondary role and receives an authorization error. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Check: Inspect authentication method, key/secret lifecycle, effective grants and connection audit logs.
- Change: Assign controlled imported privileges or supported database-role access to the shared SNOWFLAKE reporting database.
- Change: Set the correct primary role and authorized secondary-role configuration, remembering that object creation ownership uses the primary role.
- Turn on every role for every connection and assume that never affects object-ownership checks.
- Check: Compare CURRENT_ROLE, CURRENT_SECONDARY_ROLES and attempted SQL with each role mode.
Explanation
Correct Answer
C:Query authorization can consider active primary and secondary roles, while CREATE object ownership and required creation privileges follow primary-role semantics. Acceptance: Query rights and ownership are predictable and do not depend on silently enabled excessive roles.
E:Query authorization can consider active primary and secondary roles, while CREATE object ownership and required creation privileges follow primary-role semantics. Required intervention: Set the correct primary role and authorized secondary-role configuration, remembering that object creation ownership uses the primary role.
Incorrect Answers
A:Check: Inspect authentication method, key/secret lifecycle, effective grants and connection audit logs. Query authorization can consider active primary and secondary roles, while CREATE object ownership and required creation privileges follow primary-role semantics.
B:Change: Assign controlled imported privileges or supported database-role access to the shared SNOWFLAKE reporting database. Query authorization can consider active primary and secondary roles, while CREATE object ownership and required creation privileges follow primary-role semantics.
D:For this select two assessment, the shortcut changes or bypasses the necessary correctness, governance or operational boundary rather than correcting it. Query authorization can consider active primary and secondary roles, while CREATE object ownership and required creation privileges follow primary-role semantics.
Question 331
A Snowflake engineer is examining this platform situation: A department wants read access limited to one analytics database without exposing account-level infrastructure controls. A proposed shortcut is: Assign the database role directly as the session's current account role. What should the Snowflake engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Assign the database role directly as the session's current account role.
- Define database roles for database object permissions, then grant them to an account role users can activate.
- Plan a controlled GRANT OWNERSHIP transfer with documented handling of existing grants and post-transfer validation.
- Grant the minimum required USAGE on parent database and schema plus explicit object-level privileges and warehouse access.
Explanation
Correct Answer
B:Validate the premise using: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role. Applied case: A department wants read access limited to one analytics database without exposing account-level infrastructure controls.
Incorrect Answers
A:For this best change assessment, the shortcut changes or bypasses the necessary correctness, governance or operational boundary rather than correcting it. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
C:Plan a controlled GRANT OWNERSHIP transfer with documented handling of existing grants and post-transfer validation. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Grant the minimum required USAGE on parent database and schema plus explicit object-level privileges and warehouse access. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
Question 332
A Snowflake implementation review finds: A department wants read access limited to one analytics database without exposing account-level infrastructure controls. The team proposes: Define database roles for database object permissions, then grant them to an account role users can activate. Which platform principle most strongly supports the recommended response? Select ONE best answer.
- Cross-region recovery requires explicitly configured replication and failover; local zero-copy cloning is not geographic disaster recovery.
- Row access policies provide centralized row-level access decisions that do not depend on every consuming SQL author remembering a filter.
- Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
- Grants on ALL existing objects differ from FUTURE grants that apply when matching objects are created later.
Explanation
Correct Answer
C:Relevant validation before approval: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role. This principle explains the proposed technical approach, which is: Define database roles for database object permissions, then grant them to an account role users can activate.
Incorrect Answers
A:Cross-region recovery requires explicitly configured replication and failover; local zero-copy cloning is not geographic disaster recovery. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
B:Row access policies provide centralized row-level access decisions that do not depend on every consuming SQL author remembering a filter. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Grants on ALL existing objects differ from FUTURE grants that apply when matching objects are created later. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
Question 333
The data platform team has not yet approved changes. Current evidence indicates: A department wants read access limited to one analytics database without exposing account-level infrastructure controls. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Inspect SHOW GRANTS, role hierarchy and active session role for the target object and user.
- Inspect effective retention parameters and attempt a safe as-of query at an approved timestamp.
- Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role.
- Test IdP login, MFA challenge, disabled account behavior and effective role mapping.
Explanation
Correct Answer
C:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. Applied case: A department wants read access limited to one analytics database without exposing account-level infrastructure controls.
Incorrect Answers
A:Inspect SHOW GRANTS, role hierarchy and active session role for the target object and user. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
B:Inspect effective retention parameters and attempt a safe as-of query at an approved timestamp. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Test IdP login, MFA challenge, disabled account behavior and effective role mapping. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
Question 334
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A department wants read access limited to one analytics database without exposing account-level infrastructure controls. The service owner needs positive and negative results and evidence that legitimate data workflows still function. Which acceptance result demonstrates correct platform behavior without disrupting authorized workflows? Select ONE best answer.
- Each role sees only authorized geographic records from the same governed table.
- Auditors obtain the required evidence without permanent global account administration.
- The department can query the designated database while unrelated databases remain private.
- Each dataset has a documented recovery horizon consistent with actual platform support.
Explanation
Correct Answer
C:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. The approved implementation step was: Define database roles for database object permissions, then grant them to an account role users can activate.
Incorrect Answers
A:Each role sees only authorized geographic records from the same governed table. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
B:Auditors obtain the required evidence without permanent global account administration. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Each dataset has a documented recovery horizon consistent with actual platform support. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
Question 335
An implementation sign-off request identifies the following problem: A department wants read access limited to one analytics database without exposing account-level infrastructure controls. Which paired technical change and validation should close the implementation review? Select ONE best answer.
- Change: Configure supported database or failover group replication with tested refresh, permissions and secondary-region activation procedures. Verify: Inspect replication group membership, refresh history, secondary object state and controlled cutover scenarios.
- Change: Set supported retention values per object type, edition and legal recovery need, with measured storage impact. Verify: Inspect effective retention parameters and attempt a safe as-of query at an approved timestamp.
- Change: Define database roles for database object permissions, then grant them to an account role users can activate. Verify: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role.
- Change: Apply dynamic masking policies with role-aware conditions to appropriately classified sensitive columns. Verify: Query the same protected column under authorized and limited roles and review masking-policy bindings.
Explanation
Correct Answer
C:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. The change is successful only when: The department can query the designated database while unrelated databases remain private.
Incorrect Answers
A:Change: Configure supported database or failover group replication with tested refresh, permissions and secondary-region activation procedures. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
B:Change: Set supported retention values per object type, edition and legal recovery need, with measured storage impact. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Change: Apply dynamic masking policies with role-aware conditions to appropriately classified sensitive columns. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
Question 336
A Snowflake engineer is examining this platform situation: A team attempts to activate a database role directly with USE ROLE and receives an error. A proposed shortcut is: Assign the database role directly as the session's current account role. What should the Snowflake engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Configure suitable warehouse resource monitor thresholds and supported notifications or suspension actions; separately monitor serverless usage.
- Plan a controlled GRANT OWNERSHIP transfer with documented handling of existing grants and post-transfer validation.
- Define database roles for database object permissions, then grant them to an account role users can activate.
- Assign the database role directly as the session's current account role.
Explanation
Correct Answer
C:Validate the premise using: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role. This targeted change addresses the stated technical or governance gap without discarding necessary controls.
Incorrect Answers
A:Configure suitable warehouse resource monitor thresholds and supported notifications or suspension actions; separately monitor serverless usage. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
B:Plan a controlled GRANT OWNERSHIP transfer with documented handling of existing grants and post-transfer validation. A team attempts to activate a database role directly with USE ROLE and receives an error.
D:For this best change assessment, the shortcut changes or bypasses the necessary correctness, governance or operational boundary rather than correcting it. Use this instead: Define database roles for database object permissions, then grant them to an account role users can activate.
Question 337
A Snowflake implementation review finds: A team attempts to activate a database role directly with USE ROLE and receives an error. The team proposes: Define database roles for database object permissions, then grant them to an account role users can activate. Which platform principle most strongly supports the recommended response? Select ONE best answer.
- Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
- Reading a table normally requires privileges on its containing database and schema as well as SELECT on the table; warehouse USAGE is separate.
- Masking policies transform values exposed to queries based on policy context without requiring separate duplicated source tables for every audience.
- In managed access schemas, individual object owners cannot independently grant privileges; schema ownership or global grant management controls them.
Explanation
Correct Answer
A:Relevant validation before approval: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role. Demonstrable success requires: The department can query the designated database while unrelated databases remain private.
Incorrect Answers
B:Reading a table normally requires privileges on its containing database and schema as well as SELECT on the table; warehouse USAGE is separate. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
C:Masking policies transform values exposed to queries based on policy context without requiring separate duplicated source tables for every audience. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:In managed access schemas, individual object owners cannot independently grant privileges; schema ownership or global grant management controls them. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
Question 338
The data platform team has not yet approved changes. Current evidence indicates: A team attempts to activate a database role directly with USE ROLE and receives an error. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role.
- Inspect query references, policy evaluation or access metadata and lineage edges for representative controlled activity.
- Inspect tags on representative new columns and policy bindings across changing schemas.
- Record source IP addresses, policy precedence, login failures and emergency recovery path under safe testing.
Explanation
Correct Answer
A:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. If confirmed, the proportionate intervention is: Define database roles for database object permissions, then grant them to an account role users can activate.
Incorrect Answers
B:Inspect query references, policy evaluation or access metadata and lineage edges for representative controlled activity. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
C:Inspect tags on representative new columns and policy bindings across changing schemas. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Record source IP addresses, policy precedence, login failures and emergency recovery path under safe testing. A team attempts to activate a database role directly with USE ROLE and receives an error.
Question 339
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A team attempts to activate a database role directly with USE ROLE and receives an error. The service owner needs positive and negative results and evidence that legitimate data workflows still function. Which acceptance result demonstrates correct platform behavior without disrupting authorized workflows? Select ONE best answer.
- The department can query the designated database while unrelated databases remain private.
- Sensitive assets are discoverable and consistently protected where explicit policies apply.
- The watched warehouse raises alerts or suspends as configured without claiming to cap unrelated charges.
- Each role sees only authorized geographic records from the same governed table.
Explanation
Correct Answer
A:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. The result must be validated using the documented dataset or access context.
Incorrect Answers
B:Sensitive assets are discoverable and consistently protected where explicit policies apply. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
C:The watched warehouse raises alerts or suspends as configured without claiming to cap unrelated charges. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
D:Each role sees only authorized geographic records from the same governed table. A team attempts to activate a database role directly with USE ROLE and receives an error.
Question 340
For an original SnowPro Core educational scenario, consider: A team attempts to activate a database role directly with USE ROLE and receives an error. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Assign the database role directly as the session's current account role.
- Check: Inspect query references, policy evaluation or access metadata and lineage edges for representative controlled activity.
- Change: Define database roles for database object permissions, then grant them to an account role users can activate.
- Check: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role.
- Change: Configure supported federated SSO and multifactor authentication with user provisioning and offboarding controls.
Explanation
Correct Answer
C:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. Evidence: Inspect database-role grants, parent account-role membership and a permitted SELECT using the active account role.
D:Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them. Required intervention: Define database roles for database object permissions, then grant them to an account role users can activate.
Incorrect Answers
A:For this select two assessment, the shortcut changes or bypasses the necessary correctness, governance or operational boundary rather than correcting it. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
B:Check: Inspect query references, policy evaluation or access metadata and lineage edges for representative controlled activity. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.
E:Change: Configure supported federated SSO and multifactor authentication with user provisioning and offboarding controls. Database roles are scoped to their database and cannot be activated directly as session primary roles; account roles can inherit them.