Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Data Engineering Associate with Databricks Exam 2023 with complete solution

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
17-04-2023
Written in
2022/2023

Data Engineering Associate with Databricks Exam 2023 with complete solution What is done with the control plane? web application notebooks jobs cluster management What is done with the data plane? spinning up clusters data processing accessing data sources SQL: Create table with specific columns CREATE TABLE students (id INT, name STRING) SQL: Insert data INSERT INTO students VALUES (1, "Omar") Does ACID guarantee inserting many records in a single transaction? Yes SQL: Update record UPDATE students SET value = value + 1 WHERE name LIKE "T%" // starts with T SQL: Delete record DELETE FROM students WHERE value 6 // Boolean is lowercase // equals is single = What is upsert? Allows updates, inserts and other manipulations in a single command SQL: Merge for CDC MERGE INTO students b USING updates u ON = WHEN MATCHED AND = "update" THEN UPDATE SET * THEN INSERT * WHEN NOT MATCHED AND THEN DELETE Which metastore does databricks use by default? Hive SQL: See details about Delta table including number of files DESCRIBE DETAIL students

Show more Read less
Institution
Course

Content preview

Data Engineering Associate with Databricks Exam 2023
with complete solution
What is done with the control plane?
web application
notebooks
jobs
cluster management
What is done with the data plane?
spinning up clusters
data processing
accessing data sources
SQL: Create table with specific columns
CREATE TABLE students (id INT, name STRING)
SQL: Insert data
INSERT INTO students
VALUES (1, "Omar")
Does ACID guarantee inserting many records in a single transaction?
Yes
SQL: Update record
UPDATE students
SET value = value + 1
WHERE name LIKE "T%" // starts with T
SQL: Delete record
DELETE FROM students
WHERE value > 6

// Boolean is lowercase
// equals is single =
What is upsert?
Allows updates, inserts and other manipulations in a single command
SQL: Merge for CDC
MERGE INTO students b
USING updates u
ON b.id=u.id
WHEN MATCHED AND u.type = "update"
THEN UPDATE SET *

THEN INSERT *
WHEN NOT MATCHED AND
THEN DELETE
Which metastore does databricks use by default?
Hive
SQL: See details about Delta table including number of files
DESCRIBE DETAIL students

, What does OPTIMIZE do?
Replace existing data files by combining files and rewriting results
SQL: OPTIMIZE
OPTIMIZE students
ZORDER BY id
What are the configs for vacuuming?
SET spark.databricks.delta.retentionDurationCheck.enabled = false;
SET spark.databricks.delta.vacuum.logging.enabled = true;
What does ZORDER do?
speeds up data retrieval when filling on provided fields by colocating data
SQL: View history
DESCRIBE HISTORY students
SQL: Time travel
SELECT *
FROM students
VERSION AS OF 3
SQL: Restore table
RESTORE TABLE students
TO VERSION AS OF 8
What is the default time to vacuum files?
7 days
SQL: Vacuum
VACUUM students RETAIN 0 HOURS
What does DRY RUN do with VACUUM?
Displays all files that will be deleted
What does the LOCATION tag do?
If you set it, you can define a location for the data to reside, otherwise it saves in
/user/hive/warehouse/
SQL: How do you specify a command to run in a database
USE dbname;

CREATE OR REPLACE TABLE
SQL: How do you describe the table?
DESCRIBE TABLE EXTENDED
DESCRIBE EXTENDED
SQL: Create a view, temp view and global temp view
CREATE VIEW view AS SELECT * FROM table
CREATE TEMPORARY VIEW
CREATE GLOBAL TEMPORARY VIEW name AS SELECT * FROM table

SELECT * FROM global_temp.name
What's the difference between view, temp view and global temp view?
View - persists, associated to database
Temp view - temporary, not associated to a database, doesn't persist, session scoped,
single notebook

Written for

Course

Document information

Uploaded on
April 17, 2023
Number of pages
9
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.79
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LECTMAGGY Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
146
Member since
3 year
Number of followers
121
Documents
6311
Last sold
1 week ago
LECTMAGGY

Here, you will find everything you need in NURSING EXAMS AND TESTBANKS.Contact us, to fetch it for you in minutes if we do not have it in this shop.BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

3.3

28 reviews

5
8
4
3
3
11
2
0
1
6

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions