Summer Sale Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

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?

Options:

A.

Business analyst

B.

SQL analyst

C.

Data engineer

D.

Business intelligence analyst

E.

Data analyst

Question 2

Which of the following Structured Streaming queries is performing a hop from a Silver table to a Gold table?

Options:

A.

( spark.readStream.load(rawSalesLocation) .writeStream .option( " checkpointLocation " , checkpointPath) .outputMode( " append " ) .table( " newSales " ))

B.

( spark.table( " sales " ) .withColumn( " avgPrice " , col( " sales " ) / col( " units " )) .writeStream .option( " checkpointLocation " , checkpointPath) .outputMode( " append " ) .table( " newSales " ))

C.

( spark.table( " sales " ) .withColumn( " avgPrice " , col( " sales " ) / col( " units " )) .writeStream .option( " checkpointLocation " , checkpointPath) .outputMode( " append " ) .table( " newSales " ))

D.

( spark.table( " sales " ) .filter(col( " units " ) > 0) .writeStream .option( " checkpointLocation " , checkpointPath) .outputMode( " append " ) .table( " newSales " ))

E.

( spark.table( " sales " ) .groupBy( " store " ) .agg(sum( " sales " )) .writeStream .option( " checkpointLocation " , checkpointPath) .outputMode( " complete " ) .table( " newSales " ))

F.

Option A

G.

Option B

Question 3

A data analyst has been asked to produce a visualization that shows the flow of users through a website.

Which of the following is used for visualizing this type of flow?

Options:

A.

Heatmap

B.

IChoropleth

C.

Word Cloud

D.

Pivot Table

E.

Sankey

Question 4

Which statement about subqueries is correct?

Options:

A.

Subqueries are not available in Databricks SQL

B.

Subqueries can be used like other user-defined functions to transform data into different data types.

C.

Subqueries can retrieve data without requiring the creation of a table or view.

D.

Subqueries can be used like other built-in functions to transform data into different data types.

Question 5

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 6

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?

Options:

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.

Question 7

Which location can be used to determine the owner of a managed table?

Options:

A.

Review the Owner field in the table page using Catalog Explorer

B.

Review the Owner field in the database page using Data Explorer

C.

Review the Owner field in the schema page using Data Explorer

D.

Review the Owner field in the table page using the SQL Editor

Question 8

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 9

What is used as a compute resource for Databricks SQL?

Options:

A.

Single-node clusters

B.

Downstream BI tools integrated with Databricks SQL

C.

SQL warehouses

D.

Standard clusters

Question 10

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?

Options:

A.

confidential:true

B.

tag=confidential

C.

tag:confidential

D.

search tag = ' confidential '

Question 11

A data scientist has asked a data analyst to create histograms for every continuous variable in a data set. The data analyst needs to identify which columns are continuous in the data set.

What describes a continuous variable?

Options:

A.

A quantitative variable that never stops changing

B.

A quantitative variable Chat can take on a finite or countably infinite set of values

C.

A quantitative variable that can take on an uncountable set of values

D.

A categorical variable in which the number of categories continues to increase over time

Question 12

A data analyst wants to create a Databricks SQL dashboard with multiple data visualizations and multiple counters. What must be completed before adding the data visualizations and counters to the dashboard?

Options:

A.

All data visualizations and counters must be created using Queries.

B.

A SQL warehouse (formerly known as SQL endpoint) must be turned on and selected.

C.

A markdown-based tile must be added to the top of the dashboard displaying the dashboard ' s name.

D.

The dashboard owner must also be the owner of the queries, data visualizations, and counters.

Question 13

Where in the Databricks SQL workspace can a data analyst configure a refresh schedule for a query when the query is not attached to a dashboard or alert?

Options:

A.

Data bxplorer

B.

The Visualization editor

C.

The Query Editor

D.

The Dashboard Editor

Question 14

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 15

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 16

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?

Options:

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

Question 17

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 18

Which statement about visualizations is true?

Options:

A.

All visualizations must use the same data in order to be included in the same Databricks SQL dashboard.

B.

Line charts are the preferred visualization type for categorical data.

C.

Different visualizations can be used to tell different stories about the data.

D.

There is no difference between the bar chart and a histogram in Databricks SQL.

Question 19

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)

Question # 19

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 20

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?

Options:

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.

Question 21

A data engineer wants to create a relational object by pulling data from two tables. The relational object does not need to be used by other data engineers in other sessions. In order to save on storage costs, the data engineer wants to avoid copying and storing physical data.

Which of the following relational objects should the data engineer create?

Options:

A.

Spark SQL Table

B.

View

C.

Database

D.

Temporary view

E.

Delta Table

Question 22

Delta Lake stores table data as a series of data files, but it also stores a lot of other information.

Which of the following is stored alongside data files when using Delta Lake?

Options:

A.

None of these

B.

Table metadata, data summary visualizations, and owner account information

C.

Table metadata

D.

Data summary visualizations

E.

Owner account information

Question 23

In a healthcare provider organization using Delta Lake to store electronic health records, a data analyst needs to analyze a snapshot of the patient_records table from two weeks ago before some recent data corrections were applied.

What approach should the Data Engineer take to allow the analyst to query that specific prior version?

Options:

A.

Truncate the table to remove all data, then reload the data from two weeks ago into the truncated table for the analyst to query.

B.

Identify the version number corresponding to two weeks ago from the Delta transaction log, share that version number with the analyst to query using VERSION AS OF syntax, or export that version to a new Delta table for the analyst to query.

C.

Restore the table to the version from two weeks ago using the RESTORE command, and have the analyst query the restored table.

D.

Use the VACUUM command to remove all versions of the table older than two weeks, then the analyst can query the remaining version.

Question 24

A data engineer is working with a nested array column products in table transactions. They want to expand the table so each unique item in products for each row has its own row where the transaction_id column is duplicated as necessary.

They are using the following incomplete command:

Question # 24

Which of the following lines of code can they use to fill in the blank in the above code block so that it successfully completes the task?

Options:

A.

array distinct(produces)

B.

explode(produces)

C.

reduce(produces)

D.

array(produces)

E.

flatten(produces)

Question 25

A data analyst needs to use the Databricks Lakehouse Platform to quickly create SQL queries and data visualizations. It is a requirement that the compute resources in the platform can be made serverless, and it is expected that data visualizations can be placed within a dashboard.

Which of the following Databricks Lakehouse Platform services/capabilities meets all of these requirements?

Options:

A.

Delta Lake

B.

Databricks Notebooks

C.

Tableau

D.

Databricks Machine Learning

E.

Databricks SQL

Question 26

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 27

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?

Options:

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

Question 28

Which of the following commands will return the location of database customer360?

Options:

A.

DESCRIBE LOCATION customer360;

B.

DROP DATABASE customer360;

C.

DESCRIBE DATABASE customer360;

D.

ALTER DATABASE customer360 SET DBPROPERTIES ( ' location ' = ' /user ' );

E.

USE DATABASE customer360;

Question 29

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 30

What does Partner Connect do when connecting Power Bl and Tableau?

Options:

A.

Creates a Personal Access Token. downloads and installs an ODBC driver, and downloads a configuration file for connection by Power Bl or Tableau to a SQL Warehouse (formerly known as a SQL Endpoint).

B.

Creates a Personal Access Token for authentication into Databricks SQL and emails it to you.

C.

Downloads a configuration file for connection by Power Bl or Tableau to a SQL Warehouse (formerly known as a SQL Endpoint).

D.

Downloads and installs an ODBC driver.

Question 31

What describes the variance of a set of values?

Options:

A.

Variance is a measure of how far a single observed value is from a set ot va IN

B.

Variance is a measure of how far an observed value is from the variable ' s maximum or minimum value.

C.

Variance is a measure of central tendency of a set of values.

D.

Variance is a measure of how far a set of values is spread out from the sets central value.

Question 32

Data professionals with varying responsibilities use the Databricks Lakehouse Platform Which role in the Databricks Lakehouse Platform use Databricks SQL as their primary service?

Options:

A.

Data scientist

B.

Data engineer

C.

Platform architect

D.

Business analyst

Question 33

A data analyst wants to create a dashboard with three main sections: Development, Testing, and Production. They want all three sections on the same dashboard, but they want to clearly designate the sections using text on the dashboard.

Which of the following tools can the data analyst use to designate the Development, Testing, and Production sections using text?

Options:

A.

Separate endpoints for each section

B.

Separate queries for each section

C.

Markdown-based text boxes

D.

Direct text written into the dashboard in editing mode

E.

Separate color palettes for each section

Question 34

A data analyst has come across a column in a table that contains personally identifiable information (PII). The data analyst should not have access to this type of PII data.

How should the data analyst proceed?

Options:

A.

Stop working with the data and delete the table and any existing metadata or data files.

B.

Stop working with the data and proceed with the project using other data.

C.

Stop working with the data and notify their supervisor to ensure the data is handled following organizational and legal best practices.

D.

Drop the column containing PII data and continue with the project without notifying anybody.

Question 35

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