Databricks Certified Data Analyst Associate Practice Test Questions and Exam Dumps Part 8 Q141-160

View Full Databricks Certified Data Analyst Associate Exam Dumps and Practice Test Dumps.

 

Question 141

What is the default file format for Delta Lake tables?

  1. CSV
  2. JSON
  3. Parquet
  4. ORC

Correct Answer: 3

Explanation

Delta Lake tables store data underlyingly as standard Apache Parquet files alongside an immutable transaction log (_delta_log). Parquet is an open-source, column-oriented data storage format optimized for fast analytical query performance, efficient data compression, and selective column scanning. By leveraging Parquet files, Databricks ensures high compatibility with existing big data tools while providing ACID transactions and time travel capabilities through the Delta transaction log layer.

Question 142

Which function calculates the running total of a column in Databricks SQL?

  1. SUM() OVER (…)
  2. TOTAL_RUN()
  3. CUMULATIVE_SUM()
  4. RUNNING_TOTAL()

Correct Answer: 1

Explanation

To calculate a running or cumulative total in Databricks SQL, data analysts use window functions combined with the SUM() aggregate function and an OVER clause. By defining a window frame (e.g., ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), the query engine accumulates values sequentially across rows within partitions. This is a vital technique for financial reporting, inventory tracking, and growth analysis over time.

Question 143

What does the VACUUM retention threshold default to in Databricks?

  1. 30 days
  2. 7 days
  3. 1 day
  4. 90 days

Correct Answer: 2

Explanation

The default retention threshold for the VACUUM command in Delta Lake is seven days (168 hours). This safety window ensures that historical files required for active Delta Time Travel queries or concurrent long-running transactions are not prematurely deleted. Administrators can modify this threshold if longer time travel retention or immediate storage reclamation is required for specific compliance or cost-reduction objectives.

Question 144

Which Unity Catalog object holds a collection of schemas (databases)?

  1. Workspace
  2. Volume
  3. Catalog
  4. Table

Correct Answer: 3

Explanation

In Unity Catalog’s three-level namespace structure (catalog.schema.table), the top-level container is the catalog. A catalog acts as a secure container for organizing and governing data assets across business units or environments, containing multiple schemas (also known as databases), which in turn contain tables, views, and volumes.

Question 145

How do you reference a table in Unity Catalog using the three-level namespace?

  1. catalog.schema.table
  2. workspace.database.table
  3. server.catalog.table
  4. db.schema.table

Correct Answer: 1

Explanation

Unity Catalog requires a standardized three-level namespace to uniquely identify and govern data assets across the enterprise platform. The format is catalog_name.schema_name.table_name. This hierarchical structure enables seamless cross-workspace data sharing, granular access control management, and unambiguous table identification regardless of which workspace a user is currently logged into.

Question 146

What is the primary purpose of Databricks SQL Warehouses?

  1. Training deep learning neural networks
  2. Running fast, high-concurrency SQL analytics and BI dashboards
  3. Compressing backup files
  4. Managing Git repositories

Correct Answer: 2

Explanation

Databricks SQL Warehouses are dedicated compute endpoints optimized specifically for running SQL queries, reporting dashboards, and business intelligence workloads. They feature elastic auto-scaling, high concurrency handling, and deep integration with visualization tools like Tableau and Power BI, allowing data analysts to query massive lakehouse datasets with low latency and high reliability.

Question 147

Which clause can be used to sample a subset of rows from a Delta table?

  1. EXTRACT 10% FROM table
  2. GET SAMPLE FROM table
  3. SELECT * FROM table LIMIT 10%
  4. TABLESAMPLE(10 PERCENT)

Correct Answer: 4

Explanation

The TABLESAMPLE clause in Databricks SQL allows analysts to retrieve a representative randomized sample of rows from a large table based on a specified percentage or row count. This optimization technique is extremely useful for exploratory data analysis, rapid prototyping, and testing queries on massive enterprise datasets without scanning the entire table, thereby saving compute time and costs.

Question 148

What type of join returns all records when there is a match in either the left or right table?

  1. INNER JOIN
  2. FULL OUTER JOIN
  3. LEFT JOIN
  4. CROSS JOIN

Correct Answer: 2

Explanation

A FULL OUTER JOIN combines the results of both left and right outer joins. It returns all records from both tables, populating missing matches with null values where correspondence does not exist. Data analysts frequently use full outer joins during data reconciliation and auditing tasks to identify records unique to each dataset alongside overlapping entries.

Question 149

Which function is used to rotate rows into columns in Databricks SQL?

  1. FLATTEN
  2. TRANSFORM
  3. PIVOT
  4. ROTATE

Correct Answer: 3

Explanation

The PIVOT clause aggregates data and rotates unique row-level attribute values into separate columns in the final query output. For example, monthly expenditure rows can be pivoted into distinct horizontal columns for each month, simplifying wide-format comparative reporting and executive business intelligence dashboard creation.

Question 150

What is the main advantage of the Photon engine in Databricks?

  1. Vectorized query execution written in C++ for extreme performance
  2. Automatic code translation from Python to Java
  3. Compressing logs into text files
  4. Managing cloud security keys

Correct Answer: 1

Explanation

Photon is Databricks’ high-performance native vectorized execution engine written in C++. By leveraging modern CPU architecture features like SIMD vectorization and advanced memory management, Photon drastically accelerates scans, joins, and aggregations, delivering exceptional query throughput and reduced execution times for demanding analytical workloads.

Question 151

Which function converts a text string to lowercase in Databricks SQL?

  1. TO_LOWER()
  2. LOWER()
  3. DOWNCASE()
  4. STRING_LOWER()

Correct Answer: 2

Explanation

The LOWER() function converts all characters in a specified text string to lowercase letters. It is an ANSI-compliant string manipulation function widely used by data analysts to clean text fields, standardize categorical inputs, and perform case-insensitive comparisons or joins across messy enterprise datasets.

Question 152

What does the EXPLODE() function do in Databricks SQL?

  1. Deletes corrupted rows
  2. Compresses a table into a zip archive
  3. Unpacks an array or map column into multiple individual rows
  4. Combines two tables

Correct Answer: 3

Explanation

The EXPLODE() function is utilized to transform semi-structured nested collection types—such as arrays or maps—into distinct individual rows. Each element in the collection generates a new row while duplicating the scalar values of the parent record, enabling flat relational grouping and aggregation operations.

Question 153

Which SQL clause is used to filter records after an aggregation has been performed?

  1. HAVING
  2. WHERE
  3. FILTER
  4. SELECT

Correct Answer: 1

Explanation

The HAVING clause filters groups created by a GROUP BY statement based on aggregate function outputs (e.g., HAVING SUM(sales) > 50000). Unlike the WHERE clause—which evaluates raw individual rows before any aggregation occurs—HAVING can evaluate summary metrics and conditional aggregate thresholds directly.

Question 154

What is the primary purpose of Delta Live Tables (DLT)?

  1. Managing cluster hardware upgrades
  2. Building and managing reliable, declarative ETL data pipelines
  3. Writing user interface mockups
  4. Generating synthetic user profiles

Correct Answer: 2

Explanation

Delta Live Tables (DLT) is a declarative framework designed to simplify the development and management of reliable, production-grade ETL pipelines. By declaring data transformations and quality expectations rather than manual orchestration steps, DLT automatically manages dependency graphs, infrastructure scaling, error recovery, and data quality monitoring.

Question 155

Which command allows you to view the schema, partitioning, and properties of a table?

  1. SHOW TABLE
  2. VIEW TABLE
  3. DESCRIBE TABLE
  4. INSPECT TABLE

Correct Answer: 3

Explanation

The DESCRIBE TABLE command (along with variants like DESCRIBE TABLE EXTENDED) provides analysts with a comprehensive view of a table’s column names, data types, nullability, partitioning details, and physical storage metadata. This inspection is essential for verifying data structures before writing complex join and aggregation queries.

Question 156

What does Z-Ordering accomplish in Delta Lake?

  1. Co-locating related data in physical files to enhance data skipping
  2. Encrypting table data
  3. Deleting old history logs
  4. Sorting rows alphabetically by filename

Correct Answer: 1

Explanation

Z-Ordering is a multi-dimensional clustering technique that groups related information into the same physical Parquet files based on specified columns. When queries filter on those columns, the data-skipping engine bypasses irrelevant files entirely, dramatically reducing disk input/output operations and accelerating query scan speeds.

Question 157

Which function returns the current date without the timestamp component?

  1. NOW()
  2. CURRENT_DATE()
  3. TODAY()
  4. GET_DATE()

Correct Answer: 2

Explanation

The CURRENT_DATE() function returns the current system date as a date data type without time or timezone fractions. It is commonly used in analytical filters and report headers to calculate date differences, filter daily transactional partitions, or establish dynamic temporal boundaries in reporting queries.

Question 158

What is a Databricks Volume used for?

  1. Storing and managing non-tabular files (like CSV, images, unstructured data) in Unity Catalog
  2. Increasing RAM on worker nodes
  3. Backing up notebook revisions
  4. Creating virtual machines

Correct Answer: 1

Explanation

Unity Catalog Volumes provide governance and storage management for non-tabular files, such as unstructured text files, images, PDFs, CSVs, and model binaries. Volumes allow data teams to organize and control access to raw files stored in cloud object storage using standard catalog, schema, and volume namespaces.

Question 159

Which window function assigns a rank to rows within a partition without gaps in ranking values?

  1. RANK()
  2. ROW_NUMBER()
  3. DENSE_RANK()
  4. NTILE()

Correct Answer: 3

Explanation

The DENSE_RANK() window function assigns sequential rank numbers to rows within a partition, ensuring that there are no gaps in the ranking sequence even when there are ties. If two rows share the same value, they receive the same rank, and the immediately following row receives the next consecutive integer rank.

Question 160

What is the primary purpose of the COALESCE() function?

  1. Returns the first non-null expression in a list
  2. Combines two tables horizontally
  3. Deletes null values from storage
  4. Sorts a table descending

Correct Answer: 1

Explanation

The COALESCE() function evaluates a sequence of expressions from left to right and returns the first non-null value encountered. It is an indispensable tool for data cleansing, allowing analysts to fallback to secondary columns or default literal strings when primary data fields contain missing or null values.