ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 2 - ADA-C01 discussion

Report
Export

What is a characteristic of Snowflake's transaction locking and concurrency modeling?

A.
A deadlock cannot occur in Snowflake, since concurrently executed queries and DML statements do not block one another.
Answers
A.
A deadlock cannot occur in Snowflake, since concurrently executed queries and DML statements do not block one another.
B.
If two queries are concurrently executed against the same table, one of the two queries will be blocked until the other query completes.
Answers
B.
If two queries are concurrently executed against the same table, one of the two queries will be blocked until the other query completes.
C.
Transaction locking in Snowflake is enforced exclusively at the row and table levels.
Answers
C.
Transaction locking in Snowflake is enforced exclusively at the row and table levels.
D.
Queries executed within a given transaction see that transaction's uncommitted changes.
Answers
D.
Queries executed within a given transaction see that transaction's uncommitted changes.
Suggested answer: A

Explanation:

According to the Snowflake documentation1, Snowflake uses a multi-version concurrency control (MVCC) model, which means that each transaction operates on a consistent snapshot of the database at a point in time. This allows queries and DML statements to run concurrently without blocking each other, as they do not modify the same data. Therefore, a deadlock, which occurs when concurrent transactions are waiting on resources that are locked by each other, cannot happen in Snowflake. Option B is incorrect because queries and DML statements do not block each other in Snowflake, unless they are explicitly started transactions and multiple statements in each transaction2. Option C is incorrect because transaction locking in Snowflake is enforced at the partition level, not the row or table level3. Option D is incorrect because queries executed within a given transaction do not see that transaction's uncommitted changes, but only the committed changes that occurred before the transaction started1.

asked 23/09/2024
Peter Stones
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first