Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Snowflake Exam DEA-C01 Topic 1 Question 13 Discussion

Actual exam question for Snowflake's DEA-C01 exam
Question #: 13
Topic #: 1
[All DEA-C01 Questions]

A database contains a table and a stored procedure defined as.

No other operations are affecting the log_table.

What will be the outcome of the procedure call?

Show Suggested Answer Hide Answer
Suggested Answer: A, C, E, F

Contribute your Thoughts:

Brynn
12 days ago
I heard the guy who wrote this question was a database admin who got tired of people asking him 'how many records are in this table?' all the time.
upvoted 0 times
...
Gregg
14 days ago
You know, this reminds me of that time I accidentally wrote a stored procedure that dropped the entire database. Ah, good times. Anyway, I'm going with option C, just to keep things interesting.
upvoted 0 times
...
Mitsue
17 days ago
Hold up, folks. What if the INSERT statement in the stored procedure somehow fails? Then the SCOPE_IDENTITY() call would return NULL, and the log_table would still be empty. I'm going with option D on this one.
upvoted 0 times
...
Virgie
21 days ago
Wait, wait, wait. The question says 'No other operations are affecting the log_table.' That means there can't be any existing records in the table, right? So option A must be the correct answer. Easy peasy.
upvoted 0 times
Melita
3 days ago
User 2: Yeah, that makes sense. Option A it is then.
upvoted 0 times
...
Carmela
4 days ago
User 1: I think option A is correct because there can't be any existing records in the table.
upvoted 0 times
...
...
Merrilee
28 days ago
Hmm, let's see. The stored procedure is inserting a record into the log_table, so I'd expect the log_table to have one record. And the procedure is returning the SCOPE_IDENTITY() value, which should be 1. So my money's on option B.
upvoted 0 times
...
Jacqueline
2 months ago
But the stored procedure only inserts a record, so I still think it's option A.
upvoted 0 times
...
Pok
2 months ago
I disagree, I believe it will be option B.
upvoted 0 times
...
Jacqueline
2 months ago
I think the outcome will be option A.
upvoted 0 times
...

Save Cancel