Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Databricks Databricks-Certified-Data-Analyst-Associate Databricks Certified Data Analyst Associate Exam Exam Practice Test

Databricks Certified Data Analyst Associate Exam Questions and Answers

Question 1

A data team has been given a series of projects by a consultant that need to be implemented in the Databricks Lakehouse Platform.

Which of the following projects should be completed in Databricks SQL?

Options:

A.

Testing the quality of data as it is imported from a source

B.

Tracking usage of feature variables for machine learning projects

C.

Combining two data sources into a single, comprehensive dataset

D.

Segmenting customers into like groups using a clustering algorithm

E.

Automating complex notebook-based workflows with multiple tasks

Question 2

A data analyst has been asked to provide a list of options on how to share a dashboard with a client. It is a security requirement that the client does not gain access to any other information, resources, or artifacts in the database.

Which of the following approaches cannot be used to share the dashboard and meet the security requirement?

Options:

A.

Download the Dashboard as a PDF and share it with the client.

B.

Set a refresh schedule for the dashboard and enter the client ' s email address in the " Subscribers " box.

C.

Take a screenshot of the dashboard and share it with the client.

D.

Generate a Personal Access Token that is good for 1 day and share it with the client.

E.

Download a PNG file of the visualizations in the dashboard and share them with the client.

Question 3

A data analyst has developed a query that runs against a Delta table. They want help from the data engineering team to implement a series of tests to ensure the data returned by the query is clean. However, the data engineering team uses Python for its tests rather than SQL.

Which of the following operations could the data engineering team use to run the query and operate with the results in PySpark?

Options:

A.

SELECT * FROM sales

B.

spark.delta.table

C.

spark.sql

D.

There is no way to share data between PySpark and SQL.

E.

spark.table

Question 4

Which of the following layers of the medallion architecture is most commonly used by data analysts?

Options:

A.

None of these layers are used by data analysts

B.

Gold

C.

All of these layers are used equally by data analysts

D.

Silver

E.

Bronze

Question 5

Which of the following describes the relationship between Gold tables and Silver tables?

Options:

A.

Gold tables are more likely to contain aggregations than Silver tables.

B.

Gold tables are more likely to contain valuable data than Silver tables.

C.

Gold tables are more likely to contain a less refined view of data than Silver tables.

D.

Gold tables are more likely to contain more data than Silver tables.

E.

Gold tables are more likely to contain truthful data than Silver tables.

Question 6

Which of the following SQL keywords can be used to convert a table from a long format to a wide format?

Options:

A.

TRANSFORM

B.

PIVOT

C.

SUM

D.

CONVERT

E.

WHERE

Question 7

A distributed team of data analysts share computing resources on an interactive cluster with autoscaling configured. In order to better manage costs and query throughput, the workspace administrator is hoping to evaluate whether cluster upscaling is caused by many concurrent users or resource-intensive queries.

In which location can one review the timeline for cluster resizing events?

Options:

A.

Workspace audit logs

B.

Driver’s log file

C.

Ganglia

D.

Cluster Event Log

E.

Executor’s log file

Question 8

A data analyst is troubleshooting a query in Databricks SQL that fails when processing large datasets and complex join operations. Logs indicate that the job consistently aborts due to resource constraint errors on the cluster.

Which Query Profile metric should the analyst use to identify the operator that is causing resource overuse?

Options:

A.

Time spent per operator

B.

Shuffle read size per operator

C.

Memory peak per operator

D.

Bytes spilled to disk per operator

Question 9

A data scientist wants to tune a set of hyperparameters for a machine learning model. They have wrapped a Spark ML model in the objective function objective_function, and they have defined the search space search_space.

As a result, they have the following code block:

num_evals = 100

trials = SparkTrials()

best_hyperparam = fmin(

fn=objective_function,

space=search_space,

algo=tpe.suggest,

max_evals=num_evals,

trials=trials

)

Which of the following changes do they need to make to the above code block in order to accomplish the task?

Options:

A.

Change SparkTrials() to Trials()

B.

Reduce num_evals to be less than 10

C.

Change fmin() to fmax()

D.

Remove the trials=trials argument

E.

Remove the algo=tpe.suggest argument

Question 10

A data analyst has opened the SQL Editor page and written a new SQL statement. The data analyst now wants to save that statement to easily refer back to it later and add it to a dashboard. The results of the SQL statement must be able to be displayed as a counter, table, or data visualization.

Which approach should the data analyst use to accomplish this task?

Options:

A.

Save the SQL statement as a Dashboard

B.

Save the SQL statement within a Notebook

C.

Save the SQL statement as a Query

D.

Save the SQL statement in the Query History page

Question 11

A data analyst has two data sources that are providing similar but complementary information. The analyst wants to combine these sources of data into a single, comprehensive dataset for ongoing use for their team in a variety of different projects.

Which term is used to describe this type of work?

Options:

A.

Last-mile ETL

B.

Ad-hoc improvements

C.

Data testing

D.

Data blending

Question 12

A data analyst has set up a SQL query to run every four hours on a SQL endpoint, but the SQL endpoint is taking too long to start up with each run.

Which of the following changes can the data analyst make to reduce the start-up time for the endpoint while managing costs?

Options:

A.

Reduce the SQL endpoint cluster size

B.

Increase the SQL endpoint cluster size

C.

Turn off the Auto stop feature

D.

Increase the minimum scaling value

E.

Use a Serverless SQL endpoint

Question 13

Which of the following is a benefit of the Databricks Lakehouse Platform embracing open source technologies?

Options:

A.

Cloud-specific integrations

B.

Simplified governance

C.

Ability to scale storage

D.

Ability to scale workloads

E.

Avoiding vendor lock-in

Question 14

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

Options:

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

Question 15

In which of the following situations should a data analyst use higher-order functions?

Options:

A.

When custom logic needs to be applied to simple, unnested data

B.

When custom logic needs to be converted to Python-native code

C.

When custom logic needs to be applied at scale to array data objects

D.

When built-in functions are taking too long to perform tasks

E.

When built-in functions need to run through the Catalyst Optimizer

Question 16

A data analysis team is working with the table_bronze SQL table as a source for one of its most complex projects. A stakeholder of the project notices that some of the downstream data is duplicative. The analysis team identifies table_bronze as the source of the duplication.

Which of the following queries can be used to deduplicate the data from table_bronze and write it to a new table table_silver?

A)

CREATE TABLE table_silver AS

SELECT DISTINCT *

FROM table_bronze;

B)

CREATE TABLE table_silver AS

INSERT *

FROM table_bronze;

C)

CREATE TABLE table_silver AS

MERGE DEDUPLICATE *

FROM table_bronze;

D)

INSERT INTO TABLE table_silver

SELECT * FROM table_bronze;

E)

INSERT OVERWRITE TABLE table_silver

SELECT * FROM table_bronze;

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 17

A data analyst has a managed table table_name in database database_name. They would now like to remove the table from the database and all of the data files associated with the table. The rest of the tables in the database must continue to exist.

Which of the following commands can the analyst use to complete the task without producing an error?

Options:

A.

DROP DATABASE database_name;

B.

DROP TABLE database_name.table_name;

C.

DELETE TABLE database_name.table_name;

D.

DELETE TABLE table_name FROM database_name;

E.

DROP TABLE table_name FROM database_name;

Question 18

A Data Analyst is working on employees_df and needs to add a new column where a 10% tax is calculated on the salary. Additionally, the DataFrame contains the column age, which is not needed.

Which code fragment adds the tax column and removes the age column?

Options:

A.

employees_df = employees_df.withColumn( " tax " , employees_df.salary * 10).dropField( " age " )

B.

employees_df = employees_df.withColumn( " tax " , employees_df.salary * 0.1).drop( " age " )

C.

employees_df = employees_df.withColumn( " tax " , lit(0.1) * col( " salary " )).dropField( " age " )

D.

employees_df = employees_df.withColumn( " tax " , employees_df.salary * 10).drop( " age " )

Question 19

A data analyst is working with the following table my_table:

customer_name dollars_spent

Hex Sprockets [125.34, 100.15, 9003.99]

Dented Fenders [16.99, 200.85, 33.49, 88.17]

The analyst wants to divide each value in the dollars_spent array by 100 to get the spend in terms of hundreds of dollars using the following code block:

SELECT

customer_name,

_______

FROM my_table;

Which line of code can be used to fill in the blank so that the above code block successfully completes the task?

Options:

A.

TRANSFORM(hundreds_spent, dollars_spent / 100)

B.

TRANSFORM(dollars_spent, value / 100) AS hundreds_spent

C.

TRANSFORM(dollars_spent, value - > value / 100) AS hundreds_spent

D.

TRANSFORM(dollars_spent, dollars_spent / 100) AS hundreds_spent

Question 20

A data analyst has created a Query in Databricks SQL, and now wants to create two data visualizations from that Query and add both of those data visualizations to the same Databricks SQL Dashboard.

Which step will the data analyst need to take when creating and adding both data visualizations to the Databricks SQL Dashboard?

Options:

A.

Copy the Query and create one data visualization per query.

B.

Add two separate visualizations to the dashboard based on the same Query.

C.

Decide on a single data visualization to add to the dashboard.

D.

Alter the Query to return two separate sets of results.

Question 21

A data organization has a team of engineers developing data pipelines following the medallion architecture using Delta Live Tables. While the data analysis team working on a project is using gold-layer tables from these pipelines, they need to perform some additional processing of these tables prior to performing their analysis.

Which of the following terms is used to describe this type of work?

Options:

A.

Data blending

B.

Last-mile

C.

Data testing

D.

Last-mile ETL

E.

Data enhancement

Question 22

A data analyst is attempting to drop a table my_table. The analyst wants to delete all table metadata and data.

They run the following command:

DROP TABLE IF EXISTS my_table;

While the object no longer appears when they run SHOW TABLES, the data files still exist.

Which of the following describes why the data files still exist and the metadata files were deleted?

Options:

A.

The table ' s data was larger than 10 GB

B.

The table did not have a location

C.

The table was external

D.

The table ' s data was smaller than 10 GB

E.

The table was managed

Question 23

A data analyst is working in an organization that utilizes a multi-hop, medallion architecture. They have been tasked with creating a new Gold table from an existing Silver table.

Which query is performing a hop from a Silver table to a Gold table?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 24

A data analyst has been asked to configure an alert for a query that returns the income in the accounts_receivable table for a date range. The date range is configurable using a Date query parameter.

The Alert does not work.

Which of the following describes why the Alert does not work?

Options:

A.

Alerts don ' t work with queries that access tables.

B.

Queries that return results based on dates cannot be used with Alerts.

C.

The wrong query parameter is being used. Alerts only work with Date and Time query parameters.

D.

Queries that use query parameters cannot be used with Alerts.

E.

The wrong query parameter is being used. Alerts only work with drogdown list query parameters, not dates.

Question 25

A data analyst wants to generate insights from large, complex datasets. The analyst needs to quickly understand the meaning of various data columns, ask questions in natural language, and receive AI-driven recommendations for optimizing data queries and workflows.

Which Databricks component is primarily responsible for enabling these capabilities?

Options:

A.

Data Intelligence Engine

B.

Unity Catalog

C.

Genie Spaces

D.

Databricks Assistant

Question 26

After running DESCRIBE EXTENDED accounts.customers;, the following was returned:

Now, a data analyst runs the following command:

DROP accounts.customers;

Which of the following describes the result of running this command?

Options:

A.

Running SELECT * FROM delta. `dbfs:/stakeholders/customers` results in an error.

B.

Running SELECT * FROM accounts.customers will return all rows in the table.

C.

All files with the .customers extension are deleted.

D.

The accounts.customers table is removed from the metastore, and the underlying data files are deleted.

E.

The accounts.customers table is removed from the metastore, but the underlying data files are untouched.

Question 27

A data analyst has created a Query in Databricks SQL, and now they want to create two data visualizations from that Query and add both of those data visualizations to the same Databricks SQL Dashboard.

Which of the following steps will they need to take when creating and adding both data visualizations to the Databricks SQL Dashboard?

Options:

A.

They will need to alter the Query to return two separate sets of results.

B.

They will need to add two separate visualizations to the dashboard based on the same Query.

C.

They will need to create two separate dashboards.

D.

They will need to decide on a single data visualization to add to the dashboard.

E.

They will need to copy the Query and create one data visualization per query.

Question 28

A table named user_ltv is being used to create a view that will be used by data analysts on various teams. Users in the workspace are configured into groups, which are used for setting up data access using ACLs.

The user_ltv table has the following schema:

email STRING, age INT, ltv INT

The following view definition is executed:

CREATE VIEW user_ltv_no_minors AS

SELECT email, age, ltv

FROM user_ltv

WHERE

CASE

WHEN is_member( " auditing " ) THEN TRUE

ELSE age > = 18

END;

An analyst who is not a member of the auditing group executes the following query:

SELECT * FROM user_ltv_no_minors;

Which statement describes the results returned by this query?

Options:

A.

All columns will be displayed normally for those records that have an age greater than 17; records not meeting this condition will be omitted.

B.

All age values less than 18 will be returned as null values, all other columns will be returned with the values in user_ltv.

C.

All values for the age column will be returned as null values, all other columns will be returned with the values in user_ltv.

D.

All records from all columns will be displayed with the values in user_ltv.

E.

All columns will be displayed normally for those records that have an age greater than 18; records not meeting this condition will be omitted.

Question 29

Which example of data projects represents a common analytics application to be completed in Databricks SQL?

Options:

A.

Testing the latency of real-time streaming workloads

B.

Performing analysis-specific ETL on gold-layer tables

C.

Predicting customer churn by automatically developing time-series models

D.

Monitoring the performance of deployed machine learning solutions

Question 30

A data analyst is working on a DataFrame named dates_df and needs to add a new column, date, derived from the timestamp field.

Which code fragment should be used to extract the date from a timestamp?

Options:

A.

dates_df.withColumn( " date " , f.unix_timestamp( " timestamp " )).show()

B.

dates_df.withColumn( " date " , f.to_date( " timestamp " )).show()

C.

dates_df.withColumn( " date " , f.date_format( " timestamp " , " yyyy-MM-dd " )).show()

D.

dates_df.withColumn( " date " , f.from_unixtime( " timestamp " )).show()

Question 31

In which of the following scenarios should a data engineer select a Task in the Depends On field of a new Databricks Job Task?

Options:

A.

When another task needs to be replaced by the new task.

B.

When another task needs to fail before the new task begins.

C.

When another task has the same dependency libraries as the new task.

D.

When another task needs to use as little compute resources as possible.

E.

When another task needs to successfully complete before the new task begins.

Question 32

A data analyst is processing a complex aggregation on a table with zero null values and their query returns the following result:

Which of the following queries did the analyst run to obtain the above result?

A)

B)

C)

D)

E)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 33

A data analyst wants the following output:

customer_name

number_of_orders

John Doe

388

Zhang San

234

Which statement will produce this output?

Options:

A.

SELECT customer_name, count(order_id) AS number_of_ordersFROM customersJOIN ordersON customers.customer_id = orders.customer_idGROUP BY customer_name;

B.

SELECT customer_name, count(order_id) number_of_ordersFROM customersJOIN ordersON customers.customer_id = orders.customer_id USE customer_name;

C.

SELECT customerjiame, (order_id) number_of_ordersFROM customersJOIN ordersON customers.customer_id = orders.customer_id;

D.

SELECT customerjiame, count(order_id)FROM customersJOIN ordersON customers.customer_id = orders.customer_id GROUP BY customerjiame;

Question 34

In which circumstance will there be a substantial difference between the variable’s mean and median values?

Options:

A.

When the variable is of the categorical type

B.

When the variable is of the boolean type

C.

When the variable contains no outliers

D.

When the variable contains a lot of extreme outliers

Question 35

A data engineer has been using a Databricks SQL dashboard to monitor the cleanliness of the input data to a data analytics dashboard for a retail use case. The job has a Databricks SQL query that returns the number of store-level records where sales is equal to zero. The data engineer wants their entire team to be notified via a messaging webhook whenever this value is greater than 0.

Which of the following approaches can the data engineer use to notify their entire team via a messaging webhook whenever the number of stores with $0 in sales is greater than zero?

Options:

A.

They can set up an Alert with a custom template.

B.

They can set up an Alert with a new email alert destination.

C.

They can set up an Alert with one-time notifications.

D.

They can set up an Alert with a new webhook alert destination.

E.

They can set up an Alert without notifications.