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 questionsThe 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.
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.
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.
Keep practicing
Take the free DATABRICKS-DATA-ENGINEER-ASSOCIATE practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DATABRICKS-DATA-ENGINEER-ASSOCIATE practice questions
- Question 1In which of the following scenarios should a data engineer use the MERGE INTO command ins…
- Question 2Which of the following data workloads will utilize a Gold table as its source?
- Question 3A data engineer has developed a data pipeline to ingest data from a JSON source using Aut…
- Question 4Which two components function in the DB platform architecture’s control plane? (Choose tw…
- Question 5Which of the following code blocks will remove the rows where the value in column age is …
- Question 7Which of the following statements regarding the relationship between Silver tables and Br…
