Databricks Data Engineer Associate exam dumps

Databricks Data Engineer Associate practice question 410 of 532

Databricks Certified Data Engineer Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Data Engineer Associate Question 410

Select 2

You are tasked with auditing the usage of a Databricks workspace by querying the event logs. Specifically, you need to identify which users have executed DELETE statements on tables in the past 7 days. Which of the following queries or methods can you use to achieve this?

  1. A

    Query the event_log table in the Databricks metastore and filter for events with the eventType column set to 'delete' and a timestamp within the past 7 days.

  2. B

    Use the DESCRIBE HISTORY command on each table to review past operations and filter for DELETE operations within the past 7 days.

  3. C

    Query the event_log table's details column for JSON keys indicating DELETE operations, and filter by the timestamp column for the past 7 days.

  4. D

    Enable cluster logging to write all SQL queries to an external storage location, then search for DELETE statements manually.

  5. E

    Directly use the Databricks REST API to fetch DELETE operations logs from the event logs endpoint, filtering by event type and timestamp.

Show answer and explanation

Correct answers: A, C

Explanation

The event_log table is the primary source of information for auditing operations in a Databricks workspace. By filtering for DELETE operations using either the eventType column or parsing the details column, you can efficiently identify relevant events. Other methods, like manual searching or using the REST API, are either impractical or not supported for this specific use case.

  • A. Correct.

    Correct: The event_log table contains information about events in the workspace, including SQL operations like DELETE. Filtering by eventType and a time range is a valid approach to identify such actions.

  • B. Incorrect.

    Incorrect: The DESCRIBE HISTORY command provides information about Delta table version history but does not directly allow querying DELETE statements by users or their timestamps.

  • C. Correct.

    Correct: The details column in the event_log table contains JSON data, which can be parsed to identify operation types like DELETE. Filtering by timestamps is also valid.

  • D. Incorrect.

    Incorrect: While enabling cluster logging can capture SQL queries, this option would require manual searching and does not leverage the structured nature of the event logs, making it inefficient and impractical.

  • E. Incorrect.

    Incorrect: The Databricks REST API does not provide a direct endpoint to fetch specific SQL operation logs like DELETE. Event logs must be queried using SQL or similar tools.

Timed practice exam

Take a Databricks Data Engineer Associate practice test under exam conditions

45 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam