exam questions

Exam Certified Data Engineer Professional All Questions

View all questions & answers for the Certified Data Engineer Professional exam

Exam Certified Data Engineer Professional topic 1 question 16 discussion

Actual exam question from Databricks's Certified Data Engineer Professional
Question #: 16
Topic #: 1
[All Certified Data Engineer Professional Questions]

A table is registered with the following code:

Both users and orders are Delta Lake tables. Which statement describes the results of querying recent_orders?

  • A. All logic will execute at query time and return the result of joining the valid versions of the source tables at the time the query finishes.
  • B. All logic will execute when the table is defined and store the result of joining tables to the DBFS; this stored data will be returned when the table is queried.
  • C. Results will be computed and cached when the table is defined; these cached results will incrementally update as new records are inserted into source tables.
  • D. All logic will execute at query time and return the result of joining the valid versions of the source tables at the time the query began.
  • E. The versions of each source table will be stored in the table transaction log; query results will be saved to DBFS with each query.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
asmayassineg
Highly Voted 1 year, 6 months ago
Correct answer is B. table is created and data of join will be stored on DBFS and it will be returned on query time
upvoted 16 times
...
practicioner
Highly Voted 5 months, 3 weeks ago
Selected Answer: D
The question says "Which statement describes the results of querying recent_orders?" The question doesn't ask about the code snipped itself. This question is about the logic of "select * from recent_orders" after the creation of recent_orders. answer is D D is the right answer
upvoted 15 times
fe3b2fc
5 months, 2 weeks ago
Not sure how so many people misunderstood the actual question. It already says at the top that the table is registered as the code given, they're not executing the code again.
upvoted 3 times
...
Onobhas01
5 months ago
Why are people so fixed on how the table was created, question says what happens when a query is run against the table.
upvoted 1 times
HairyTorso
1 month ago
As Benni_ale said - CTAS can be used to create a snapshot of a table. The data will be stored and not updated further, unless table is explicitly updated.
upvoted 1 times
...
benni_ale
3 months, 1 week ago
option D mentions "return the result of joining the valid versions of the source tables" but that's not true. when u interrogate the table resulting from a join of two tables u are not re-performing joins operations at query time anymore an the version is the one from the last time the CTAS statement was executed
upvoted 3 times
...
...
...
arekm
Most Recent 1 month ago
Selected Answer: B
B - it is a table. Query time answers assume we are talking about a view, which we aren't. Table is not automatically updated whenever the tables used in CTAS change - it is a standalone entity.
upvoted 1 times
...
Sriramiyer92
1 month, 3 weeks ago
Selected Answer: B
The answer is B. Pls note it is CTAS statement and not a subquery.
upvoted 1 times
...
benni_ale
3 months, 1 week ago
Selected Answer: B
B is correct
upvoted 1 times
...
nedlo
3 months, 2 weeks ago
Selected Answer: B
Only logic there is inside create statemetn and it will execute once while executing "create table" statement. Further select queries will only select any data that was inserted during create table statement , data wont by updated automatically. So B
upvoted 1 times
...
benni_ale
3 months, 3 weeks ago
i think B
upvoted 1 times
...
benni_ale
3 months, 3 weeks ago
Selected Answer: B
i picked b
upvoted 1 times
...
Isio05
8 months ago
Selected Answer: B
CTAS statements persist it results, so B
upvoted 2 times
...
imatheushenrique
8 months, 1 week ago
B. All logic will execute when the table is defined and store the result of joining tables to the DBFS; this stored data will be returned when the table is queried.
upvoted 2 times
...
coercion
8 months, 3 weeks ago
Selected Answer: B
"Create Table" is an action so "B"
upvoted 2 times
...
PrashantTiwari
12 months ago
B is correct
upvoted 1 times
...
kz_data
1 year ago
Selected Answer: B
I think B is the correct answer
upvoted 1 times
...
IWantCerts
1 year ago
Selected Answer: B
B is correct. Views compute when query is executed, not when defined. And vice versa for tables.
upvoted 1 times
...
cryptoflam
1 year, 1 month ago
Selected Answer: B
Key here is that option D says "returned". The CTAS statement does not return results, thus option B is correct.
upvoted 1 times
...
aragorn_brego
1 year, 2 months ago
Selected Answer: B
The correct answer is: B. All logic will execute when the table is defined and store the result of joining tables to the DBFS; this stored data will be returned when the table is queried. When the CREATE TABLE AS statement is executed, it runs the enclosed SELECT statement immediately to pull the current data from the users and orders tables where the order_date is within the last 7 days. This result is then stored as a new table called recent_orders in the Delta Lake on the DBFS (Databricks File System). Subsequent queries against recent_orders will return this stored data, and not recompute the join unless the table is updated or refreshed.
upvoted 2 times
...
BIKRAM063
1 year, 3 months ago
Selected Answer: B
Correct is B . CTAS command
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago