
Ultimate access to all questions.
A data engineer has created a new database using the following command: CREATE DATABASE IF NOT EXISTS customer360;
In which of the following locations will the customer360 database be located?
A
dbfs:/user/hive/database/customer360
B
dbfs:/user/hive/warehouse
C
dbfs:/user/hive/customer360
D
More information is needed to determine the correct response
E
dbfs:/user/hive/database
Explanation:
In Databricks, when you create a database using the CREATE DATABASE command without specifying a location, the database is created in the default Hive warehouse location. The default location for Hive databases in Databricks is:
dbfs:/user/hive/warehouse/
When you create a database without specifying a custom location, Databricks creates a subdirectory for that database within the warehouse directory. For the customer360 database, the actual directory would be:
dbfs:/user/hive/warehouse/customer360.db
Let's analyze why the other options are incorrect:
Key Points:
dbfs:/user/hive/warehouse.db extension within this locationCREATE DATABASE customer360 LOCATION 'dbfs:/custom/path'