You are asked to write a python function that can read data from a delta table and return the Data-Frame, which of the following is correct?

You are asked to write a python function that can read data from a delta table and return the Data-Frame, which of the following is correct?A . Python function cannot return a DataFrameB . Write SQL UDF to return a DataFrameC . Write SQL UDF that can return tabular dataD...

November 18, 2023No CommentsREAD MORE +

Why does AUTO LOADER require schema location?

Why does AUTO LOADER require schema location?A . Schema location is used to store user provided schemaB . Schema location is used to identify the schema of target tableC . AUTO LOADER does not require schema location, because its supports Schema evolutionD . Schema location is used to store schema...

November 18, 2023No CommentsREAD MORE +

What could be the expected output of query SELECT COUNT (DISTINCT *) FROM user on this table

What could be the expected output of query SELECT COUNT (DISTINCT *) FROM user on this table A . 3B . 2 (Correct)C . 1D . 0E . NULLView AnswerAnswer: B Explanation: The answer is 2, Count (DISTINCT *) removes rows with any column with a NULL value

November 18, 2023No CommentsREAD MORE +

Which of the following statements can be used to test the functionality of code to test number of rows in the table equal to 10 in python?

Which of the following statements can be used to test the functionality of code to test number of rows in the table equal to 10 in python? row_count = spark.sql("select count(*) from table").collect()[0][0]A . assert (row_count = 10, "Row count did not match")B . assert if (row_count = 10, "Row...

November 18, 2023No CommentsREAD MORE +

Which of the following technique can be used to implement fine-grained access control to rows and columns of the Delta table based on the user's access?

Which of the following technique can be used to implement fine-grained access control to rows and columns of the Delta table based on the user's access?A . Use Unity catalog to grant access to rows and columnsB . Row and column access control listsC . Use dynamic view functionsD ....

November 18, 2023No CommentsREAD MORE +

What would you recommend for reducing the overall cost of this approach?

You noticed that a team member started using an all-purpose cluster to develop a notebook and used the same all-purpose cluster to set up a job that can run every 30 mins so they can update un-derlying tables which are used in a dashboard. What would you recommend for reducing...

November 18, 2023No CommentsREAD MORE +

Which of the following describes how Databricks Repos can help facilitate CI/CD workflows on the Databricks Lakehouse Platform?

Which of the following describes how Databricks Repos can help facilitate CI/CD workflows on the Databricks Lakehouse Platform?A . Databricks Repos can facilitate the pull request, review, and approval process before merging branchesB . Databricks Repos can merge changes from a secondary Git branch into a main Git branchC ....

November 18, 2023No CommentsREAD MORE +

How to determine if a table is a managed table vs external table?

How to determine if a table is a managed table vs external table?A . Run IS_MANAGED(‘table_name’) functionB . All external tables are stored in data lake, managed tables are stored in DELTA lakeC . All managed tables are stored in unity catalogD . Run SQL command DESCRIBE EXTENDED table_name and...

November 18, 2023No CommentsREAD MORE +

How would you approach resolving this issue?

A SQL Dashboard was built for the supply chain team to monitor the inventory and product orders, but all of the timestamps displayed on the dashboards are showing in UTC format, so they requested to change the time zone to the location of New York. How would you approach resolving...

November 18, 2023No CommentsREAD MORE +