QuestionQ78

VerifiedDeveloping Code for Data Processing using Python and SQL

An external object-storage container is mounted at /mnt/finance_eda_bucket.

The following code was run to create a database for the finance team:

Question Image

After the database was created successfully and its permissions were configured, a finance-team member runs the following code:

Question Image

If every finance-team user belongs to the finance group, which statement describes how the tx_sales table will be created?

Explanation

A CTAS statement with no table-level LOCATION creates a managed table. For a Hive-metastore database created with LOCATION '/mnt/finance_eda_bucket', that database location is used for its managed tables. The finance group has the required database permissions to create the table.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!