Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Certified-Data-Engineer-Associate Topic 3 Question 39 Discussion

Actual exam question for Databricks's Databricks Certified Data Engineer Associate Exam exam
Question #: 39
Topic #: 3
[All Databricks Certified Data Engineer Associate Exam 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?

Show Suggested Answer Hide Answer
Suggested Answer: B

dbfs:/user/hive/warehouse Thereby showing 'dbfs:/user/hive/warehouse/customer360.db

The location of the customer360 database depends on the value of thespark.sql.warehouse.dirconfiguration property, which specifies the default location for managed databases and tables. If the property is not set, the default value isdbfs:/user/hive/warehouse. Therefore, the customer360 database will be located indbfs:/user/hive/warehouse/customer360.db. However, if the property is set to a different value, such asdbfs:/user/hive/database, then the customer360 database will be located indbfs:/user/hive/database/customer360.db. Thus, more information is needed to determine the correct response.

Option A is not correct, asdbfs:/user/hive/database/customer360is not the default location for managed databases and tables, unless thespark.sql.warehouse.dirproperty is explicitly set todbfs:/user/hive/database.

Option B is not correct, asdbfs:/user/hive/warehouseis the default location for the root directory of managed databases and tables, not for a specific database. The database name should be appended with.dbto the directory path, such asdbfs:/user/hive/warehouse/customer360.db.

Option C is not correct, asdbfs:/user/hive/customer360is not a valid location for a managed database, as it does not follow the directory structure specified by thespark.sql.warehouse.dirproperty.


Databases and Tables

[Databricks Data Engineer Professional Exam Guide]

Contribute your Thoughts:

Margart
3 days ago
Hmm, I'm not sure about this one. Maybe Option C is the right answer, since the database name is 'customer360'?
upvoted 0 times
...
Charlene
6 days ago
I'm not sure, but I think more information is needed to determine the correct location.
upvoted 0 times
...
Chi
9 days ago
I believe it could also be at dbfs:/user/hive/customer360.
upvoted 0 times
...
Lashawna
11 days ago
Wait, is this a trick question? What if the database is actually located in the cloud, far away from any 'dbfs' location?
upvoted 0 times
...
Odette
15 days ago
I think the database will be located at dbfs:/user/hive/database/customer360.
upvoted 0 times
...
Rosann
19 days ago
Option A seems correct. The database will be created in the default location for databases in Databricks, which is dbfs:/user/hive/database/customer360.
upvoted 0 times
Gary
2 days ago
I think the database will be located in dbfs:/user/hive/database/customer360.
upvoted 0 times
...
Claudio
11 days ago
I agree, that seems to be the default location for databases in Databricks.
upvoted 0 times
...
Vesta
11 days ago
So, the correct answer is A) dbfs:/user/hive/database/customer360.
upvoted 0 times
...
Ellsworth
14 days ago
I think the database will be located in dbfs:/user/hive/database/customer360.
upvoted 0 times
...
...

Save Cancel