1. A developer accidentally drops a schema named RAW_DATA in the INGEST database. The SYSADMIN role owns the schema. Which role can execute UNDROP SCHEMA INGEST.RAW_DATA to restore it?
- A. Any role that has the USAGE privilege on the INGEST database.
- B. Only the ACCOUNTADMIN role.
- C. Any role that currently has ownership of the INGEST database or a role higher in the hierarchy than SYSADMIN.
- D. The role that owns the schema — SYSADMIN — or any role that inherits SYSADMIN's privileges.✓ Correct
Explanation
UNDROP requires the same privileges as CREATE on the parent object. Since SYSADMIN owns the schema, SYSADMIN (or any role that inherits SYSADMIN, such as ACCOUNTADMIN) can execute UNDROP SCHEMA. Option A is wrong because USAGE on a database does not grant the ability to undrop child schemas. Option B is wrong because ACCOUNTADMIN can do it, but it is not the *only* role — SYSADMIN can as well, so 'only ACCOUNTADMIN' is incorrect. Option C is wrong because ownership of the database is not the key privilege; ownership of or CREATE privilege on the schema's parent is what matters, and inheriting SYSADMIN (not just owning the database) is the relevant path.