exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 656 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 656
Topic #: 1
[All SnowPro Core Questions]

A view is defined on a permanent table. A temporary table with the same name is created in the same schema as the referenced table.

What will the query from the view return?

  • A. The data from the permanent table.
  • B. The data from the temporary table.
  • C. An error stating that the view could not be compiled.
  • D. An error stating that the referenced object could not be uniquely identified.
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
miomio123
Highly Voted 7 months, 2 weeks ago
Selected Answer: B
Similar to the other table types (transient and permanent), temporary tables belong to a specified database and schema; however, because they are session-based, they aren’t bound by the same uniqueness requirements. This means you can create temporary and non-temporary tables with the same name within the same schema. However, note that the temporary table takes precedence in the session over any other table with the same name in the same schema. https://docs.snowflake.com/en/user-guide/tables-temp-transient
upvoted 6 times
...
JRayan
Most Recent 4 days, 3 hours ago
Selected Answer: A
View contains query that references the perm table. so, when query is executed on the view, it will run the query definition on the view. So, 'A' is correct
upvoted 1 times
JRayan
1 day, 13 hours ago
Sorry, B is the correct answer.
upvoted 1 times
...
...
s_indira15
1 week, 4 days ago
Selected Answer: A
when a view is defined on a permanent table, it continues to reference the permanent table even if a temporary table with the same name is created in the same schema
upvoted 2 times
...
ravuri_rk
7 months, 2 weeks ago
Coorrect B
upvoted 1 times
...
MultiCloudIronMan
7 months, 2 weeks ago
Selected Answer: B
Correct
upvoted 1 times
MultiCloudIronMan
1 month, 3 weeks ago
Changing my answer to A - According to the documentation, when a view is defined on a permanent table, it continues to reference the permanent table even if a temporary table with the same name is created in the same schema. The view will not be affected by the temporary table.
upvoted 1 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