Databricks Certified Data Engineer Associate Test Questions and Exam Dumps Part14 Q261-280

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

Question 261

A data engineer needs to grant an application identity access to Databricks resources without using an individual employee’s account. Which identity is most appropriate for this purpose?

  1. Service principal
  2. Temporary view
  3. SQL warehouse
  4. DataFrame

Correct Answer: 1

Explanation

A service principal is an identity designed for applications, automation, and machine-to-machine access. Using a service principal helps avoid tying automated workloads to an individual employee’s personal identity. Permissions can be granted to the service principal according to the principle of least privilege, and access can remain available even when employees change roles. Temporary views and DataFrames are data-processing objects, while a SQL warehouse provides compute for SQL workloads. Therefore, a service principal is appropriate for application-based authentication and authorization.

Question 262

An administrator wants several data engineers to receive the same Unity Catalog privileges without granting permissions individually to each person. What should the administrator use?

  1. Individual user accounts only
  2. Group-based access control
  3. Temporary credentials
  4. Notebook parameters

Correct Answer: 2

Explanation

Group-based access control allows administrators to assign users to a group and grant the required permissions to that group. This simplifies permission management because access can be managed centrally rather than repeatedly assigning privileges to individual users. When team membership changes, administrators can update group membership without redesigning every object-level grant. Temporary credentials and notebook parameters serve different purposes. Therefore, using groups is an efficient way to manage shared Unity Catalog permissions while maintaining centralized governance.

Question 263

A data engineer wants to inspect metadata and physical details about a Delta table, including information useful for understanding its storage characteristics. Which SQL command is appropriate?

  1. SHOW USERS
  2. DESCRIBE HISTORY
  3. DESCRIBE DETAIL
  4. SHOW FUNCTIONS

Correct Answer: 3

Explanation

DESCRIBE DETAIL provides detailed metadata about a Delta table, including information such as its format, location, size-related statistics, and file-related characteristics. It is useful when engineers need more information than the basic table schema. DESCRIBE HISTORY focuses on table transaction history, while SHOW USERS and SHOW FUNCTIONS address different metadata areas. Therefore, when the goal is to inspect detailed table and storage metadata, DESCRIBE DETAIL is the appropriate command.

Question 264

A data engineer wants to inspect the columns, data types, and other schema information of a table without reviewing its transaction history. Which command is most appropriate?

  1. DESCRIBE HISTORY
  2. VACUUM
  3. DESCRIBE DETAIL
  4. DESCRIBE TABLE

Correct Answer: 4

Explanation

DESCRIBE TABLE is designed to display information about a table’s schema, including columns and their data types. It is useful when an engineer needs to understand the structure of a table before writing transformations or queries. DESCRIBE HISTORY shows historical operations, while DESCRIBE DETAIL provides broader table metadata and storage information. VACUUM is a maintenance operation that removes eligible obsolete files. Therefore, DESCRIBE TABLE is the appropriate command for examining table schema information.

Question 265

A data engineer needs to prevent a table from accepting negative values in a column representing an account balance. Which Delta Lake feature can enforce this rule at the table level?

  1. CHECK constraint
  2. Git repository
  3. Job schedule
  4. SQL warehouse

Correct Answer: 1

Explanation

A Delta Lake CHECK constraint can enforce a data-quality rule directly at the table level. For example, a constraint can require an account balance to be greater than or equal to zero. Attempts to insert or update data that violates the defined condition can fail, preventing invalid records from entering the table. Git repositories manage source code, job schedules control execution timing, and SQL warehouses provide SQL compute. A CHECK constraint is therefore the appropriate mechanism for enforcing this type of table-level rule.

Question 266

A table contains an identifier that should automatically be generated from an expression whenever a new record is inserted. Which Delta table feature can support this requirement?

  1. Temporary view
  2. Generated column
  3. Cluster policy
  4. Query history

Correct Answer: 2

Explanation

A generated column can derive its value automatically from an expression based on other columns. This can be useful when a table needs a consistently calculated value, such as a date-derived field or another deterministic expression. Generated columns reduce the need for every writer to calculate the same value manually. Temporary views are query objects, cluster policies govern compute configurations, and query history records query activity. Therefore, a generated column is the appropriate feature for automatically deriving a column value during data insertion.

Question 267

A company wants to share selected data with an external organization while keeping control of the underlying data and avoiding direct access to the provider’s storage credentials. Which Databricks capability is designed for governed data sharing?

  1. Spark UI
  2. Git folders
  3. Delta Sharing
  4. Job retries

Correct Answer: 3

Explanation

Delta Sharing is designed to support secure and governed sharing of data between organizations and platforms without requiring the recipient to access the provider’s underlying cloud storage credentials. It allows data providers to control what is shared while enabling authorized recipients to consume the shared data. Spark UI focuses on execution monitoring, Git folders manage source code, and job retries handle workflow failures. Therefore, Delta Sharing is the capability most directly aligned with governed external data sharing.

Question 268

A data engineer is configuring compute for an interactive development workload that requires direct access to resources and libraries for experimentation. Which compute type is generally intended for interactive development rather than isolated scheduled job execution?

  1. Job cluster
  2. All-purpose compute
  3. External location
  4. Storage credential

Correct Answer: 2

Explanation

All-purpose compute is intended for interactive workloads such as notebook development, exploration, and iterative data engineering. Engineers can attach notebooks and use the compute repeatedly while developing and testing code. Job clusters, in contrast, are commonly created for automated workflow tasks and can be configured specifically for a job run. External locations and storage credentials are governance mechanisms for cloud storage access rather than compute types. Therefore, all-purpose compute is generally suited to interactive development and experimentation.

Question 269

A scheduled production workflow should create isolated compute for its tasks rather than relying on a long-running interactive cluster. Which compute approach is most appropriate?

  1. Job cluster
  2. Temporary view
  3. SQL CTE
  4. Git branch

Correct Answer: 1

Explanation

A job cluster is designed for automated workload execution and can provide isolated compute for a workflow. This approach avoids relying on an interactive development cluster that may have unrelated workloads or configuration changes. Job clusters can be configured as part of workflow execution and can terminate after the workload completes, depending on the setup. Temporary views, CTEs, and Git branches are not compute resources. Therefore, a job cluster is appropriate for isolated scheduled production processing.

Question 270

An administrator wants to prevent data engineers from creating compute configurations that exceed approved organizational limits. Which Databricks capability can enforce standardized compute configuration rules?

  1. Query history
  2. Cluster policy
  3. Delta Sharing
  4. DataFrame schema

Correct Answer: 2

Explanation

A cluster policy can restrict and standardize compute configuration options available to users. Organizations can use policies to control settings such as permitted instance types, runtime choices, autoscaling parameters, or other configuration limits. This helps enforce organizational standards and can prevent users from selecting configurations that are not approved. Query history records queries, Delta Sharing manages data sharing, and a DataFrame schema describes data structure. Therefore, cluster policies are appropriate for controlling allowed compute configurations.

Question 271

A data engineer needs compute resources to automatically adjust the number of workers according to workload demand. Which compute capability addresses this requirement?

  1. Autoscaling
  2. Time travel
  3. Schema enforcement
  4. Git integration

Correct Answer: 1

Explanation

Autoscaling allows compute resources to adjust the number of workers based on workload requirements within configured limits. This can help accommodate changing workloads without requiring engineers to manually resize the cluster for every workload variation. Time travel provides access to historical Delta table versions, schema enforcement validates table structure, and Git integration manages source code. Autoscaling is therefore the compute capability that directly addresses dynamic worker requirements during changing processing workloads.

Question 272

A data engineering team runs SQL queries concurrently against a managed SQL compute resource. Which Databricks component provides compute specifically for SQL workloads?

  1. Unity Catalog
  2. SQL warehouse
  3. External location
  4. Service principal

Correct Answer: 2

Explanation

A SQL warehouse provides compute resources optimized for executing SQL queries in Databricks. It can be used by analysts and data engineers to run queries, dashboards, and other SQL workloads without requiring them to manage Spark cluster configuration directly. Unity Catalog provides governance, external locations govern access to cloud storage, and service principals provide identities for automation. Therefore, when the requirement is dedicated SQL query compute, a SQL warehouse is the relevant Databricks component.

Question 273

A SQL workload experiences many concurrent queries, and the team wants the compute environment to handle varying demand without manually resizing resources each time. Which capability is relevant?

  1. Query comments
  2. Table constraints
  3. Warehouse scaling
  4. Git synchronization

Correct Answer: 3

Explanation

SQL warehouse scaling allows compute resources to adapt to workload requirements and concurrency. Depending on the warehouse configuration, scaling capabilities can help accommodate changes in query demand and reduce the need for manual resource adjustments. Query comments are informational, table constraints enforce data rules, and Git synchronization manages source-code integration. Therefore, warehouse scaling is the capability most relevant when a SQL workload experiences changing demand and concurrent query activity.

Question 274

A company wants to improve the execution speed of supported Spark workloads by using an optimized execution engine without requiring engineers to rewrite their Spark transformations. Which Databricks capability is relevant?

  1. Photon
  2. Delta Sharing
  3. Unity Catalog groups
  4. External locations

Correct Answer: 1

Explanation

Photon is Databricks’ native vectorized query engine designed to accelerate supported workloads. It can improve performance for many SQL and DataFrame operations while allowing engineers to continue using familiar Spark-based APIs and query patterns. Delta Sharing focuses on data sharing, Unity Catalog groups support access management, and external locations govern cloud storage paths. Therefore, Photon is the capability relevant to improving execution performance without requiring a complete rewrite of existing Spark transformations.

Question 275

A data engineer needs to understand which users, applications, or workloads have permission to access a governed table. Which area should be reviewed?

  1. Unity Catalog grants and privileges
  2. Spark task metrics
  3. Git commit history
  4. SQL execution plan only

Correct Answer: 1

Explanation

Unity Catalog grants and privileges define which users, groups, or service principals can perform actions on governed data objects. Reviewing these permissions helps determine whether an identity can access a catalog, schema, table, view, or other governed resource. Spark task metrics describe runtime execution, Git history tracks source-code changes, and an execution plan describes query processing. Therefore, Unity Catalog permissions are the appropriate place to investigate who has access to a governed table.

Question 276

A developer is testing a new data transformation and wants to isolate the changes from the production version of the code until testing is complete. Which source-control practice is most appropriate?

  1. Edit the production branch directly
  2. Create a separate development branch
  3. Delete the repository history
  4. Store the code in a table

Correct Answer: 2

Explanation

A separate development branch allows engineers to work on changes without modifying the production version directly. The developer can test and review the transformation before merging the approved changes into the appropriate production branch. This supports controlled development and reduces the risk of introducing untested code into production workflows. Editing production directly increases operational risk, deleting history removes useful traceability, and storing source code in a table is not a suitable version-control strategy. A development branch is therefore appropriate.

Question 277

A team wants to keep Databricks notebooks synchronized with a Git repository so that source-code changes can be reviewed and versioned outside the workspace. Which capability supports this workflow?

  1. Git folders
  2. VACUUM
  3. SQL warehouse
  4. Delta constraints

Correct Answer: 1

Explanation

Git folders provide integration between Databricks workspace development and Git repositories. They allow teams to work with version-controlled notebooks and related source files while using standard Git workflows such as branching, committing, and reviewing changes. VACUUM manages obsolete Delta files, SQL warehouses provide SQL compute, and Delta constraints enforce data-quality rules. Therefore, Git folders are the appropriate capability when the objective is to synchronize Databricks development content with source control.

Question 278

A production data pipeline must access cloud storage using an identity managed centrally by the organization instead of storing a secret directly inside notebook code. Which approach is most appropriate?

  1. Hard-code the access key in Python
  2. Store the secret in a notebook comment
  3. Use a governed storage credential
  4. Place the credential in a temporary view

Correct Answer: 3

Explanation

A governed storage credential provides a centralized mechanism for authenticating access to cloud storage through Unity Catalog. This avoids embedding sensitive credentials directly into notebooks and allows administrators to manage access centrally. Hard-coding access keys exposes sensitive information, while notebook comments and temporary views are not appropriate secure credential stores. A governed storage credential therefore provides a more controlled approach for production data pipelines that need access to cloud storage.

Question 279

A data engineer wants to identify which users or groups own a governed Unity Catalog object before modifying its access configuration. Which concept should be checked?

  1. Object ownership
  2. Spark partitioning
  3. DataFrame caching
  4. Query execution mode

Correct Answer: 1

Explanation

Object ownership in Unity Catalog determines which identity has administrative control over a governed object and can be important when changing permissions or managing access. Before modifying grants or ownership-related settings, engineers should understand who currently owns the catalog, schema, table, or other object. Spark partitioning concerns data distribution, caching concerns runtime performance, and query execution mode concerns processing behavior. Therefore, checking object ownership is appropriate when investigating administrative control over a governed Unity Catalog object.

Question 280

A data engineering organization wants to promote the same application configuration from development to production while keeping environment-specific values separate from the core implementation. Which deployment practice is most suitable?

  1. Hard-code production values into notebooks
  2. Maintain completely separate implementations
  3. Manually change files after every deployment
  4. Separate application logic from environment-specific configuration

Correct Answer: 4

Explanation

Separating application logic from environment-specific configuration makes deployments more repeatable and maintainable. The same core implementation can be promoted across development, testing, and production while configuration values such as catalog names, schemas, storage paths, or other environment settings are supplied separately. Hard-coding production values and maintaining separate implementations increase duplication and configuration drift. Manual edits also introduce deployment errors. Separating configuration from application logic therefore supports controlled multi-environment deployment.