nerdexam
Snowflake

ADA-C01 · Question #21

A Snowflake Administrator created a role ROLE_MANAGED_ACCESS and a schema SCHEMA_MANAGED_ACCESS as follows: USE ROLE SECURITYADMIN; CREATE ROLE ROLE_MANAGED_ACCESS; GRANT ROLE ROLE_MANAGED_ACCESS TO…

The correct answer is A. ALTER SCHEMA SCHEMA MANAGED ACCESS DISABLE MANAGED ACCESS. You can change a managed access schema to a regular schema using the ALTER SCHEMA statement with the DISABLE MANAGED ACCESS keywords. This will disable the managed access feature on the schema and revert the access control to the default behavior.

Account Management and Security

Question

A Snowflake Administrator created a role ROLE_MANAGED_ACCESS and a schema SCHEMA_MANAGED_ACCESS as follows:

USE ROLE SECURITYADMIN; CREATE ROLE ROLE_MANAGED_ACCESS; GRANT ROLE ROLE_MANAGED_ACCESS TO ROLE SYSADMIN; GRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE ROLE_MANAGED_ACCESS; GRANT ALL privileges ON DATABASE WORK TO ROLE ROLE_MANAGED_ACCESS; USE ROLE ROLE_MANAGED_ACCESS; CREATE SCHEMA SCHEMA_MANAGED_ACCESS WITH MANAGED ACCESS; USE ROLE SECURITYADMIN; GRANT SELECT, INSERT ON FUTURE TABLES IN SCHEMA SCHEMA MANAGED ACCESS to ROLE_MANAGED_ACCESS; The Administrator now wants to disable the managed access on the schema. How can this be accomplished?

Options

  • AALTER SCHEMA SCHEMA MANAGED ACCESS DISABLE MANAGED ACCESS;
  • BUSE ROLE ROLE MANAGED_ACCESS;
  • CREVOKE SELECT, INSERT ON FUTURE TABLES IN SCHEMA
  • DUSE ROLE ROLE_MANAGED_ACCESS;

How the community answered

(51 responses)
  • A
    80% (41)
  • B
    2% (1)
  • C
    6% (3)
  • D
    12% (6)

Explanation

You can change a managed access schema to a regular schema using the ALTER SCHEMA statement with the DISABLE MANAGED ACCESS keywords. This will disable the managed access feature on the schema and revert the access control to the default behavior.

Topics

#managed access schema#ALTER SCHEMA#SECURITYADMIN#disable managed access

Community Discussion

No community discussion yet for this question.

Full ADA-C01 Practice