New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Certified Data Analyst Associate Exam - Topic 4 Question 16 Discussion

Actual exam question for Databricks's Databricks Certified Data Analyst Associate exam
Question #: 16
Topic #: 4
[All Databricks Certified Data Analyst Associate Questions]

The stakeholders.customers table has 15 columns and 3,000 rows of data. The following command is run:

After running SELECT * FROM stakeholders.eur_customers, 15 rows are returned. After the command executes completely, the user logs out of Databricks.

After logging back in two days later, what is the status of the stakeholders.eur_customers view?

Show Suggested Answer Hide Answer
Suggested Answer: B

The command you sent creates a TEMP VIEW, which is a type of view that is only visible and accessible to the session that created it. When the session ends or the user logs out, the TEMP VIEW is automatically dropped and cannot be queried anymore. Therefore, after logging back in two days later, the status of the stakeholders.eur_customers view is that it has been dropped and SELECT * FROM stakeholders.eur_customers will result in an error. The other options are not correct because:

A) The view does not remain available, as it is a TEMP VIEW that is dropped when the session ends or the user logs out.

C) The view is not available in the metastore, as it is a TEMP VIEW that is not registered in the metastore. The underlying data cannot be accessed with SELECT * FROM delta.stakeholders.eur_customers, as this is not a valid syntax for querying a Delta Lake table. The correct syntax would be SELECT * FROM delta.dbfs:/stakeholders/eur_customers, where the location path is enclosed in backticks. However, this would also result in an error, as the TEMP VIEW does not write any data to the file system and the location path does not exist.

D) The view does not remain available, as it is a TEMP VIEW that is dropped when the session ends or the user logs out. Data in views are not automatically deleted after logging out, as views do not store any data. They are only logical representations of queries on base tables or other views.

E) The view has not been converted into a table, as there is no automatic conversion between views and tables in Databricks. To create a table from a view, you need to use a CREATE TABLE AS statement or a similar command.Reference:CREATE VIEW | Databricks on AWS,Solved: How do temp views actually work? - Databricks - 20136,temp tables in Databricks - Databricks - 44012,Temporary View in Databricks - BIG DATA PROGRAMMERS,Solved: What is the difference between a Temporary View an ...


Contribute your Thoughts:

0/2000 characters
Claudio
3 months ago
I think it’s option A, but I’m not 100% sure.
upvoted 0 times
...
Milly
3 months ago
Definitely not option D, views don't lose data just because you log out.
upvoted 0 times
...
Benton
3 months ago
Wait, are you sure? I thought views could get dropped.
upvoted 0 times
...
Coletta
4 months ago
I agree, views don’t just disappear like that!
upvoted 0 times
...
Irma
4 months ago
The view should still be available after logging back in.
upvoted 0 times
...
Ettie
4 months ago
I feel like I read that views don't lose their data just because you log out, but I'm a bit confused about the metastore part.
upvoted 0 times
...
Dulce
4 months ago
I practiced a similar question, and I believe the view remains available, so option A might be correct.
upvoted 0 times
...
Kaycee
4 months ago
I'm not entirely sure, but I remember something about views being dropped if not used for a while.
upvoted 0 times
...
Terrilyn
5 months ago
I think the view should still be available since views typically persist even after logging out, right?
upvoted 0 times
...
Lucy
5 months ago
This is a tricky one, but I think I have a strategy. I'll start by considering the different ways Databricks could handle the view after the user logs out, and then I'll try to match that to the information provided in the question. Careful reading of the details will be crucial here.
upvoted 0 times
...
Glory
5 months ago
I've seen questions like this before, and the key is understanding how Databricks handles views. Since the user logged out after the view was created, I'm guessing the view might not be available anymore. But I'll need to carefully consider the options to determine the most likely outcome.
upvoted 0 times
...
Laurena
5 months ago
Okay, let me break this down step-by-step. The stakeholders.customers table has 3,000 rows, but the view only returned 15 rows. That suggests the view might not be fully materialized. I'll need to consider whether the view would still be accessible or if it would be dropped or converted.
upvoted 0 times
...
Marla
5 months ago
Hmm, I'm a bit confused by this one. The fact that the view only returned 15 rows initially makes me wonder if it's still going to be available after the user logs out. I'll need to think through the different possibilities.
upvoted 0 times
...
Alyssa
5 months ago
This looks like a tricky question about the behavior of views in Databricks. I'll need to carefully consider the details provided to determine the correct status of the view after the user logs out.
upvoted 0 times
...
Beata
5 months ago
I think the 'No' answer is the safer bet here. While the 'docker container inspect' command could potentially include volume information, the question is specifically asking about a list of volumes, which this command may not directly provide.
upvoted 0 times
...
Barrett
5 months ago
This seems like a tricky one. I'll need to carefully read through the details and think it through step-by-step.
upvoted 0 times
...
Roselle
5 months ago
Hmm, I'm a bit confused. I'm not sure if I should be using a WHERE clause or a GROUP BY clause. Let me think this through again.
upvoted 0 times
...
Filiberto
5 months ago
Okay, let me see. I know that brittle failures are related to temperature, so I'll focus on that. I'll go with A.
upvoted 0 times
...
Avery
2 years ago
I think the view remains available but attempting to SELECT from it results in an empty result set because data in views are automatically deleted after logging out.
upvoted 0 times
...
Maynard
2 years ago
But the underlying data can still be accessed with SELECT * FROM delta. `stakeholders.eur_customers`.
upvoted 0 times
...
Ilona
2 years ago
I believe the view has been dropped.
upvoted 0 times
...
Samira
2 years ago
Wait, did the question say the user logged out or got logged out? There's a difference, you know. Anyway, I'm going with B just to be safe.
upvoted 0 times
Dannette
2 years ago
I agree, I also think the view has been dropped.
upvoted 0 times
...
Jettie
2 years ago
I think the view has been dropped.
upvoted 0 times
...
...
Maynard
2 years ago
I think the view remains available and SELECT * FROM stakeholders.eur_customers will execute correctly.
upvoted 0 times
...
Evangelina
2 years ago
Ah, the joys of Databricks and its ever-changing views. Reminds me of that old saying, 'The only constant in life is change, and the only constant in Databricks is confusion.'
upvoted 0 times
...
An
2 years ago
I hope the answer isn't E, or else we'll have to start calling it a 'stakel' instead of a 'view'.
upvoted 0 times
...
Katina
2 years ago
I think the answer is A. The view should remain available even after the user logs out, as views are persistent objects in the metastore.
upvoted 0 times
Jacqueline
2 years ago
Yes, that's correct. Views are stored in the metastore and are not affected by logging out.
upvoted 0 times
...
Daryl
2 years ago
I agree, views are persistent objects so the view should still be available.
upvoted 0 times
...
...

Save Cancel