InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 3253–3264 of 3610 questions

SQL & Database DesignIntermediate1 min read

How do you design audit columns?

Common audit fields include CreatedAt, CreatedBy, UpdatedAt, and UpdatedBy. Define UTC handling, trusted identity source, and whether history must be retai

SQL & Database DesignIntermediate1 min read

What is optimistic concurrency?

Optimistic concurrency allows concurrent reads but detects conflicting writes using a version column or concurrency token. The application then rejects, me

SQL & Database DesignIntermediate1 min read

What is pessimistic locking?

Pessimistic locking locks rows or ranges to prevent conflicting operations while a transaction runs. It can be appropriate for highly contended operations

SQL & Database DesignIntermediate1 min read

What is transaction isolation level?

Isolation level controls how concurrent transactions observe changes and which anomalies are prevented. Common levels include Read Uncommitted, Read Commit

SQL & Database DesignIntermediate1 min read

What is a dirty read?

A dirty read occurs when a transaction reads data written by another transaction that has not committed and may later roll back.

SQL & Database DesignIntermediate1 min read

What is a non-repeatable read?

A non-repeatable read occurs when a transaction reads the same row twice and sees different committed values because another transaction updated it between