
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A data engineer needs to create a table in Databricks using data from their organization's existing SQLite database. They run the following command:
CREATE TABLE jdbc_customer360
USING __________
OPTIONS (
url "jdbc:sqlite:/customers.db",
dbtable "customer360"
)
CREATE TABLE jdbc_customer360
USING __________
OPTIONS (
url "jdbc:sqlite:/customers.db",
dbtable "customer360"
)
Which of the following lines of code fills in the above blank to successfully complete the task?
A
org.apache.spark.sql.jdbc
B
autoloader
C
DELTA
D
sqlite
E
org.apache.spark.sql.sqlite
Explanation:
The correct answer is A. org.apache.spark.sql.jdbc.
org.apache.spark.sql.jdbc.jdbc:sqlite:/customers.db indicates a SQLite database connection using the SQLite JDBC driver.USING clause in Spark SQL's CREATE TABLE statement requires the fully qualified name of the data source format.org.apache.spark.sql.jdbc.The OPTIONS clause provides the JDBC connection parameters:
url: JDBC connection URL for SQLite databasedbtable: The table name in the SQLite database to read fromThis approach allows Spark to read data from SQLite databases using JDBC drivers and create a table reference in Databricks.