DATABRICKS-DATA-ENGINEER-ASSOCIATE practice question 16 of 25

Identify a scenario to use an external table. A Data Engineer needs to create a parquet bronze table and wants to ensure that it gets stored in a specific path in an external location. Which table can be created in this scenario?

Full set: 177 questions
Answer options
A: An external table where the location is pointing to specific path in external location. Correct answer
B: An external table where the schema has managed location pointing to specific path in external location.
C: A managed table where the catalog has managed location pointing to specific path in external location.
D: A managed table where the location is pointing to specific path in external location.
Correct Answer:
A. An external table where the location is pointing to specific path in external location.
Explanation

The primary use case for an external table is to register a table on data stored in a specific, user-defined location outside of the default managed storage. The CREATE EXTERNAL TABLE statement combined with the LOCATION clause allows the Data Engineer to specify the exact external path where the Parquet files for the bronze table should be stored. This decouples the table's metadata lifecycle from the data's lifecycle; dropping the external table will only remove the metadata from the metastore, leaving the data in the specified external location untouched.

Why Incorrect

B. An external table where the schema has managed location pointing to specific path in external location. A schema's managed location applies to managed tables created within it, not external tables. An external table's location is explicitly defined at the table level, overriding any schema defaults.
C. A managed table where the catalog has managed location pointing to specific path in external location. This creates a managed table within a specific storage root for the catalog. The key requirement is to control the path for a specific table, which is the explicit purpose of an external table.
D. A managed table where the location is pointing to specific path in external location. This is a contradiction. A table is defined as managed when Databricks controls its data location. If a LOCATION clause is specified during creation, the table is, by definition, an external table.

References

1. Databricks Documentation

"What are tables on Databricks?":

Section: External tables: "External tables are tables for which data is stored in an external location outside of the Databricks-managed storage location. You should only use external tables when you have a large amount of existing data that you want to query from a Databricks table... You specify the location using the LOCATION clause." This directly supports using an external table with a LOCATION clause for data in a specific external path.

2. Databricks Documentation

"CREATE TABLE":

Section: Syntax: The syntax for creating an external table is shown as CREATE EXTERNAL TABLE ... LOCATION path.

Section: Parameters

EXTERNAL: "Creates an external table. When you use EXTERNAL

you must also use the LOCATION clause." This confirms that creating a table for a specific location requires the EXTERNAL keyword.

Section: Parameters

LOCATION path: "Path to the directory where the data for this table is stored... Creating a table with a LOCATION that is already a Delta Lake table is not supported." This details the function of the LOCATION clause

which is central to the question's requirement.

Scroll to Top