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

Home > Databricks > Data Analyst > Databricks-Certified-Data-Analyst-Associate

Databricks-Certified-Data-Analyst-Associate Databricks Certified Data Analyst Associate Exam Question and Answers

Question # 4

A data analyst is using Databricks Unity Catalog. The datasets are tagged by sensitivity, and confidential data is marked with the tag key confidential. The data analyst needs to quickly find all tables tagged as confidential to review their access permissions in the Databricks workspace search bar.

Which search key text should the data analyst use to find these tables?

A.

confidential:true

B.

tag=confidential

C.

tag:confidential

D.

search tag = ' confidential '

Full Access
Question # 5

A database was created in Databricks SQL using the following statement:

CREATE SCHEMA accounting LOCATION ' dbfs:/accounting/data ' ;

Where will data for this database be stored?

A.

dbfs:/accounting/data/accounting.db

B.

dbfs:/accounting/data

C.

dbfs:/accounting/data.db

D.

dbfs:/user/hive/warehouse/accounting.db

Full Access
Question # 6

Query History provides Databricks SQL users with a lot of benefits. A data analyst has been asked to share all of these benefits with their team as part of a training exercise. One of the benefit statements the analyst provided to their team is incorrect.

Which statement about Query History is incorrect?

A.

It can be used to view the query plan of queries that have run.

B.

It can be used to debug queries.

C.

It can be used to automate query execution on multiple warehouses (formerly endpoints).

D.

It can be used to troubleshoot slow running queries.

Full Access
Question # 7

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

A.

TRANSFORM

B.

PIVOT

C.

SUM

D.

CONVERT

E.

WHERE

Full Access
Question # 8

Which of the following approaches can be used to connect Databricks to Fivetran for data ingestion?

A.

Use Workflows to establish a SQL warehouse (formerly known as a SQL endpoint) for Fivetran to interact with

B.

Use Delta Live Tables to establish a cluster for Fivetran to interact with

C.

Use Partner Connect ' s automated workflow to establish a cluster for Fivetran to interact with

D.

Use Partner Connect ' s automated workflow to establish a SQL warehouse (formerly known as a SQL endpoint) for Fivetran to interact with

E.

Use Workflows to establish a cluster for Fivetran to interact with

Full Access
Question # 9

Which of the following is a benefit of Databricks SQL using ANSI SQL as its standard SQL dialect?

A.

It has increased customization capabilities

B.

It is easy to migrate existing SQL queries to Databricks SQL

C.

It allows for the use of Photon ' s computation optimizations

D.

It is more performant than other SQL dialects

E.

It is more compatible with Spark ' s interpreters

Full Access
Question # 10

A managed table and an unmanaged external table were both created in Databricks SQL, and data was ingested into each table. Later, both tables were dropped.

What is the status of data for each of those tables?

A.

The data in both tables were deleted.

B.

The data in the managed table were deleted, and the data in the unmanaged external table were left untouched.

C.

The data in the unmanaged external table were deleted, and the data in the managed table were left untouched.

D.

The data in both tables were left untouched.

Full Access
Question # 11

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;

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Full Access
Question # 12

How can a data analyst determine if query results were pulled from the cache?

A.

Go to the Query History tab and click on the text of the query. The slideout shows if the results came from the cache.

B.

Go to the Alerts tab and check the Cache Status alert.

C.

Go to the Queries tab and click on Cache Status. The status will be green if the results from the last run came from the cache.

D.

Go to the SQL Warehouse (formerly SQL Endpoints) tab and click on Cache. The Cache file will show the contents of the cache.

E.

Go to the Data tab and click Last Query. The details of the query will show if the results came from the cache.

Full Access
Question # 13

A data analyst needs to create an empty managed table table_name in database database_name with a specific schema. The table needs to be recreated and empty, regardless of whether or not the table already exists.

Which command can the analyst use to complete the task?

A.

CREATE TABLE database_name.table_name USING (width INT, length INT, height INT);

B.

CREATE OR REPLACE TABLE database_name.table_name USING (width INT, length INT, height INT);

C.

CREATE OR REPLACE TABLE database_name.table_name (width INT, length INT, height INT);

D.

CREATE OR REPLACE TABLE table_name FROM database_name USING (width INT, length INT, height INT);

Full Access
Question # 14

A data analyst at an e-commerce company needs to process daily sales data. The data consists of approximately 50,000 records stored in a single CSV file, totaling about 20 MB. The analyst needs to perform aggregations and generate a summary report.

Which approach could the data analyst use in this situation?

A.

Deploy a real-time streaming solution using Spark Streaming to process incoming data.

B.

Use a local Python script with the pandas library to read and analyze the CSV file.

C.

Implement Apache Spark with a distributed cluster to process the data in parallel.

D.

Set up a Hadoop ecosystem with HDFS and MapReduce for distributed processing.

Full Access
Question # 15

An analyst writes a query that contains a query parameter. They then add an area chart visualization to the query. While adding the area chart visualization to a dashboard, the analyst chooses " Dashboard Parameter " for the query parameter associated with the area chart.

Which of the following statements is true?

A.

The area chart will use whatever is selected in the Dashboard Parameter while all or the other visualizations will remain changed regardless of their parameter use.

B.

The area chart will use whatever is selected in the Dashboard Parameter along with all of the other visualizations in the dashboard that use the same parameter.

C.

The area chart will use whatever value is chosen on the dashboard at the time the area chart is added to the dashboard.

D.

The area chart will use whatever value is input by the analyst when the visualization is added to the dashboard. The parameter cannot be changed by the user afterwards.

E.

The area chart will convert to a Dashboard Parameter.

Full Access
Question # 16

A data analyst filters rows where the tags array includes the value ' sql ' using this query:

SELECT *

FROM main.analytics.articles

WHERE tags = ' sql ' ;

This query returns no results.

How should the analyst query to filter for rows where the tags array contains ' sql ' ?

A.

SELECT * FROM main.analytics.articles WHERE tags IN ( ' sql ' );

B.

SELECT * FROM main.analytics.articles WHERE tags LIKE ' %sql% ' ;

C.

SELECT * FROM main.analytics.articles WHERE ' sql ' IN tags;

D.

SELECT * FROM main.analytics.articles WHERE array_contains(tags, ' sql ' );

Full Access
Question # 17

Consider the following two statements:

Statement 1:

Statement 2:

Which of the following describes how the result sets will differ for each statement when they are run in Databricks SQL?

A.

The first statement will return all data from the customers table and matching data from the orders table. The second statement will return all data from the orders table and matching data from the customers table. Any missing data will be filled in with NULL.

B.

When the first statement is run, only rows from the customers table that have at least one match with the orders table on customer_id will be returned. When the second statement is run, only those rows in the customers table that do not have at least one match with the orders table on customer_id will be returned.

C.

There is no difference between the result sets for both statements.

D.

Both statements will fail because Databricks SQL does not support those join types.

E.

When the first statement is run, all rows from the customers table will be returned and only the customer_id from the orders table will be returned. When the second statement is run, only those rows in the customers table that do not have at least one match with the orders table on customer_id will be returned.

Full Access
Question # 18

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)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Full Access
Question # 19

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?

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()

Full Access
Question # 20

A Data Analyst is working on sensor_df; this DataFrame contains two columns: record_datetime timestamp and record array.

Which code fragment returns a DataFrame that splits the record column into separate columns and has one array item per row?

A.

Uses withColumn, but selects sensor_id, status, and health as if they are already top-level columns.

B.

Selects nested fields before correctly creating the exploded column.

C.

exploded_df = sensor_df.withColumn( " record_exploded " , explode( " record " ))exploded_df = exploded_df.select( " record_datetime " , " record_exploded.sensor_id " , " record_exploded.status " , " record_exploded.health " )

D.

exploded_df = exploded_df.select( " record_datetime " , " record_exploded " )

Full Access
Question # 21

A data analysis team has noticed that their Databricks SQL queries are running too slowly when connected to their always-on SQL endpoint. They claim that this issue is present when many members of the team are running small queries simultaneously. They ask the data engineering team for help. The data engineering team notices that each of the team’s queries uses the same SQL endpoint.

Which of the following approaches can the data engineering team use to improve the latency of the team’s queries?

A.

They can increase the cluster size of the SQL endpoint.

B.

They can increase the maximum bound of the SQL endpoint’s scaling range.

C.

They can turn on the Auto Stop feature for the SQL endpoint.

D.

They can turn on the Serverless feature for the SQL endpoint.

E.

They can turn on the Serverless feature for the SQL endpoint and change the Spot Instance Policy to “Reliability Optimized.”

Full Access
Question # 22

Data professionals with varying titles use the Databricks SQL service as the primary touchpoint with the Databricks Lakehouse Platform. However, some users will use other services like Databricks Machine Learning or Databricks Data Science and Engineering.

Which of the following roles uses Databricks SQL as a secondary service while primarily using one of the other services?

A.

Business analyst

B.

SQL analyst

C.

Data engineer

D.

Business intelligence analyst

E.

Data analyst

Full Access
Question # 23

A data engineering team has created a Structured Streaming pipeline that processes data in micro-batches and populates gold-level tables. The microbatches are triggered every minute.

A data analyst has created a dashboard based on this gold-level data. The project stakeholders want to see the results in the dashboard updated within one minute or less of new data becoming available within the gold-level tables.

Which of the following cautions should the data analyst share prior to setting up the dashboard to complete this task?

A.

The required compute resources could be costly

B.

The gold-level tables are not appropriately clean for business reporting

C.

The streaming data is not an appropriate data source for a dashboard

D.

The streaming cluster is not fault tolerant

E.

The dashboard cannot be refreshed that quickly

Full Access
Question # 24

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?

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.

Full Access
Question # 25

A business analyst has been asked to create a data entity/object called sales_by_employee. It should always stay up-to-date when new data are added to the sales table. The new entity should have the columns sales_person, which will be the name of the employee from the employees table, and sales, which will be all sales for that particular sales person. Both the sales table and the employees table have an employee_id column that is used to identify the sales person.

Which of the following code blocks will accomplish this task?

A)

B)

C)

D)

A.

Option

B.

Option

C.

Option

D.

Option

Full Access
Question # 26

Which of the following statements describes descriptive statistics?

A.

A branch of statistics that uses summary statistics to quantitatively describe and summarize data.

B.

A branch of statistics that uses a variety of data analysis techniques to infer properties of an underlying distribution of probability.

C.

A branch of statistics that uses quantitative variables that must take on a finite or countably infinite set of values.

D.

A branch of statistics that uses summary statistics to categorically describe and summarize data.

E.

A branch of statistics that uses quantitative variables that must take on an uncountable set of values.

Full Access
Question # 27

What is an advantage of using a Delta Lake-based data lakehouse over classic enterprise data warehouse solutions?

A.

Open-source formats

B.

Schema enforcement

C.

ACID transactions

D.

Generic optimizations

Full Access
Question # 28

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

Which query did the analyst execute in order to get this result?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 29

Data engineers and data analysts are working together on a data pipeline. The data engineer is working on the raw, bronze, and silver layers of the pipeline using Python, and the data analyst is working on the gold layer of the pipeline using SQL. The raw source of the pipeline is a streaming input. They now want to migrate their pipeline to use Delta Live Tables.

Which of the following changes will need to be made to the pipeline when migrating to Delta Live Tables?

A.

The pipeline can have different notebook sources in SQL and Python.

B.

The pipeline will need to be written entirely in SQL.

C.

The pipeline will need to use a batch source in place of a streaming source.

D.

The pipeline will need to be written entirely in Python.

Full Access
Question # 30

Which of the following statements about a refresh schedule is incorrect?

A.

A query can be refreshed anywhere from 1 minute lo 2 weeks

B.

Refresh schedules can be configured in the Query Editor.

C.

A query being refreshed on a schedule does not use a SQL Warehouse (formerly known as SQL Endpoint).

D.

A refresh schedule is not the same as an alert.

E.

You must have workspace administrator privileges to configure a refresh schedule

Full Access
Question # 31

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

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

Full Access
Question # 32

An analyst has been asked to combine the data in two tables: suppliers and new_suppliers. It is possible that some of the supplier_id values match in both tables, meaning those suppliers have already been added to the suppliers table. If that is the case, the data should be unchanged.

Which command will combine the two tables without duplicating the rows with the same supplier_id?

A.

Option AMERGE INTO suppliersUSING new_suppliersON suppliers.supplier_id = new_suppliers.supplier_idWHEN NOT MATCHED THEN INSERT *;

B.

Option BCOPY INTO suppliersUSING new_suppliersON suppliers.supplier_id = new_suppliers.supplier_idWHEN NOT MATCHED THEN INSERT *;

C.

Option CUPDATE suppliersUSING new_suppliersON suppliers.supplier_id = new_suppliers.supplier_idWHEN NOT MATCHED THEN INSERT *;

D.

Option DINSERT INTO suppliersUSING new_suppliersON suppliers.supplier_id = new_suppliers.supplier_idWHEN NOT MATCHED THEN INSERT *;

Full Access
Question # 33

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

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

Full Access
Question # 34

Which of the following is stored in the Databricks customer’s cloud account?

A.

Databricks web application

B.

Cluster management metadata

C.

Repos

D.

Data

E.

Notebooks

Full Access
Question # 35

A data analyst has produced a visualization. A stakeholder has viewed the visualization and is complaining that the visualization is difficult to interpret. After looking at the visualization, the analyst determines that the scale of the y-axis must be changed.

Where are the controls for changing the scale of the y-axis in Databricks SQL?

A.

Query Editor → Y Axis

B.

Dashboard Editor → Axes → Y Axis

C.

Visualization Editor → Y Axis

D.

Settings → User Settings → Scaling

Full Access