Which of the following approaches can be used to ingest data directly from cloud-based object storage?

Which of the following approaches can be used to ingest data directly from cloud-based object storage?
A . Create an external table while specifying the DBFS storage path to FROM
B . Create an external table while specifying the DBFS storage path to PATH
C . It is not possible to directly ingest data from cloud-based object storage
D . Create an external table while specifying the object storage path to FROM
E . Create an external table while specifying the object storage path to LOCATION

Answer: E

Explanation:

External tables are tables that are defined in the Databricks metastore using the information stored in a cloud object storage location. External tables do not manage the data, but provide a schema and a table name to query the data. To create an external table, you can use the CREATE EXTERNAL TABLE statement and specify the object storage path to the LOCATION clause. For example, to create an external table named ext_table on a Parquet file stored in S3, you can use the following statement:

SQL

CREATE EXTERNAL TABLE ext_table (

col1 INT,

col2 STRING

)

STORED AS PARQUET

LOCATION ‘s3://bucket/path/file.parquet’

AI-generated code. Review and use carefully. More info on FAQ.

Reference: External tables

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments