
Ultimate access to all questions.
Question 12
A data engineer needs to create a database called customer360 at the location /customer/customer360. The data engineer is unsure if one of their colleagues has already created the database.
Which of the following commands should the data engineer run to complete this task?
Explanation:
The correct answer is C because:
IF NOT EXISTS clause ensures that the database is only created if it doesn't already exist, which addresses the engineer's uncertainty about whether a colleague has already created itLOCATION '/customer/customer360' clause specifies the exact location where the database should be createdDELTA is not a valid keyword in the CREATE DATABASE syntax - Delta is a table format, not a database typeThis command follows the proper Spark SQL syntax for creating a database with conditional existence checking and custom location specification.