Interview Q&A

Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.

4616 total questions 4516 technical 100 career & HR 4346 from PDF library

Showing 51–75 of 279

Career & HR topics

By tech stack

Mid PDF
Isolation: Transactions are isolated from each other; intermediate results are not?

visible to other transactions. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, cost) When you would and would not use it in prod…

Mid PDF
RIGHT JOIN (or RIGHT OUTER JOIN): Returns all rows from the right table and?

Answer: matched rows from the left table. If there’s no match, NULL is returned for the left table. Use case: When you want all records from the right table. What interviewers expect A clear definition tied to SQL in SQL…

Mid PDF
Partition Tolerance: The system continues to operate despite network partitions.?

Trade-offs: CA (Consistency and Availability): Systems that prioritize consistency and availability will fail during network partitions. CP (Consistency and Partition Tolerance): Systems that prioritize consistency and p…

Mid PDF
Data Transformation:?

Answer: Use ETL (Extract, Transform, Load) tools to clean, transform, and shape the data as required. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maint…

Mid PDF
Automated Testing:?

Answer: Set up continuous integration (CI) pipelines to test schema migrations on different environments to ensure smooth deployment. What interviewers expect A clear definition tied to SQL in SQL & Databases project…

Mid PDF
Separate Databases:?

Each tenant gets its own database instance. Pros: Complete isolation, better security, and individual scaling. Cons: Higher overhead for database management and maintenance. Example: SaaS applications often use multi-ten…

Mid PDF
Entity-Attribute-Value (EAV):?

A flexible schema design used for scenarios where attributes of entities are dynamic and can vary over time. Example: A Product might have a variety of attributes like size, color, and weight, but some products may not h…

Mid PDF
Limit the Dataset:?

Answer: Use pagination techniques (LIMIT, OFFSET, or ROWNUM) to retrieve data in chunks rather than all at once. Avoid fetching unnecessary columns or rows. What interviewers expect A clear definition tied to SQL in SQL…

Mid PDF
Database Metrics:?

Answer: Track buffer cache hit ratio, transaction log size, locks and deadlocks, and cache usage to monitor the internal database performance. What interviewers expect A clear definition tied to SQL in SQL & Database…

Mid PDF
Horizontal Scaling (Scaling Out):?

Horizontal scaling involves adding more database servers to distribute the load, typically using replication, sharding, or clustering. Advantages: It can handle much larger datasets and traffic since the workload is dist…

Mid PDF
Synchronous Replication:?

Answer: Data is written to both the primary and secondary database simultaneously. Advantages: Ensures data consistency between all replicas. Disadvantages: May incur performance overhead due to the need to wait for repl…

Mid PDF
Transaction Log Backup (for databases that support it, like SQL Server):?

A transaction log backup records all the changes made to the database since the last transaction log backup. It allows point-in-time recovery. Advantages: Enables recovery of the database to any specific point in time (a…

Mid PDF
Limit Access to Backups: Only authorized personnel should have access to backup?

files. Use access controls, roles, and policies to restrict access to backups. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, c…

Mid PDF
Assign Roles to Users: Assign users to specific roles based on their job?

responsibilities. Example (SQL Server): - Create a role CREATE ROLE Manager; - Grant permissions to the role GRANT SELECT, UPDATE ON Employees TO Manager; - Assign the role to a user EXEC sp_addrolemember 'Manager', 'joh…

Mid PDF
Important tables:?

Customers: Contains customer details (name, address, etc.). Orders: Contains order details and references customers. Order_Items: A join table between Orders and Products. Products: Product details (name, description, pr…

Mid PDF
Avoid Repeating Groups: Ensure that tables don’t have multiple columns for the?

same type of data (e.g., storing multiple phone numbers in separate columns). What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, co…

Mid PDF
Achieve 3NF: Remove transitive dependencies (when a non-key attribute depends?

on another non-key attribute). Ensure that no non-key attribute is dependent on another non-key attribute. For example: Original Table: Employee_ID Employee_Nam Department Department_Manager 1 Alice HR John 2 Bob IT Sara…

Mid PDF
More Disk I/O: Fragmented indexes increase the number of I/O operations required?

Answer: to retrieve data. To resolve this, indexes can be reorganized or rebuilt to improve their performance. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performan…

Mid PDF
Cost Estimation: The optimizer estimates the cost of using each index (in terms of?

I/O, CPU, etc.) and chooses the one with the lowest cost. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, cost) When you would a…

Mid PDF
Improving Selectivity: If a column has high cardinality (many unique values), it’s?

likely to improve performance when indexed. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, cost) When you would and would not u…

Mid PDF
Quick Joins: When joining tables on indexed columns, the join operation is faster as?

the database can use the index to quickly find matching rows. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, cost) When you wou…

Mid PDF
Execute the stored procedure in debug mode using F5.?

PostgreSQL: PostgreSQL doesn’t have a built-in debugger, but you can use RAISE NOTICE for debugging or use third-party tools like pgAdmin for debugging. MySQL: MySQL Workbench provides a simple debugging interface that a…

Junior PDF
What is ACID compliance in a database?

CID stands for: Atomicity: Ensures that all operations in a transaction are completed successfully, or none are. If one part of a transaction fails, the whole transaction fails. Consistency: Guarantees that the database…

Junior PDF
What is the difference between a primary key and a foreign key? ● Primary Key: A unique identifier for each record in a database table. No two rows in

table can have the same primary key value. It ensures entity integrity. Example: user_id in a users table. Foreign Key: A field (or a combination of fields) in one table that uniquely identifies a row of another table. I…

Mid PDF
Durability: Once a transaction is committed, it cannot be undone, and its effects are?

permanent. What interviewers expect A clear definition tied to SQL in SQL & Databases projects Trade-offs (performance, maintainability, security, cost) When you would and would not use it in production Real-world ex…

SQL & Databases SQL Server Tutorial · SQL

visible to other transactions.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: matched rows from the left table. If there’s no match, NULL is returned for the left table. Use case: When you want all records from the right table.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Trade-offs:

  • CA (Consistency and Availability): Systems that prioritize consistency and

availability will fail during network partitions.

  • CP (Consistency and Partition Tolerance): Systems that prioritize consistency and

partition tolerance may not be available during network issues.

  • AP (Availability and Partition Tolerance): Systems that prioritize availability and

partition tolerance may return stale data.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: Use ETL (Extract, Transform, Load) tools to clean, transform, and shape the data as required.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: Set up continuous integration (CI) pipelines to test schema migrations on different environments to ensure smooth deployment.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

  • Each tenant gets its own database instance.
  • Pros: Complete isolation, better security, and individual scaling.
  • Cons: Higher overhead for database management and maintenance.

Example: SaaS applications often use multi-tenancy to serve multiple clients with the same

infrastructure while keeping data separated.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

  • A flexible schema design used for scenarios where attributes of entities are

dynamic and can vary over time.

  • Example: A Product might have a variety of attributes like size, color, and

weight, but some products may not have all attributes, so you store them as

key-value pairs.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: Use pagination techniques (LIMIT, OFFSET, or ROWNUM) to retrieve data in chunks rather than all at once. Avoid fetching unnecessary columns or rows.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: Track buffer cache hit ratio, transaction log size, locks and deadlocks, and cache usage to monitor the internal database performance.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

  • Horizontal scaling involves adding more database servers to distribute the

load, typically using replication, sharding, or clustering.

  • Advantages: It can handle much larger datasets and traffic since the

workload is distributed across multiple servers.

  • Disadvantages: More complex to implement and maintain, requires

specialized techniques like load balancing and data partitioning.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: Data is written to both the primary and secondary database simultaneously. Advantages: Ensures data consistency between all replicas. Disadvantages: May incur performance overhead due to the need to wait for replication.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

  • A transaction log backup records all the changes made to the database since

the last transaction log backup. It allows point-in-time recovery.

  • Advantages: Enables recovery of the database to any specific point in time

(assuming all previous logs are available).

  • Disadvantages: Requires continuous backups of transaction logs to maintain

full recovery.

  • Example: After a transaction log backup, you can restore to a specific

moment in time by replaying the logs up to that point.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

files. Use access controls, roles, and policies to restrict access to backups.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

responsibilities.

Example (SQL Server):

  • - Create a role

CREATE ROLE Manager;

  • - Grant permissions to the role

GRANT SELECT, UPDATE ON Employees TO Manager;

  • - Assign the role to a user

EXEC sp_addrolemember 'Manager', 'john_doe';

In PostgreSQL or MySQL, you would follow similar steps using GRANT statements and role

management commands.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

  • Customers: Contains customer details (name, address, etc.).
  • Orders: Contains order details and references customers.
  • Order_Items: A join table between Orders and Products.
  • Products: Product details (name, description, price, etc.).
  • Inventory: Tracks stock levels.
Permalink & share

SQL & Databases SQL Server Tutorial · SQL

same type of data (e.g., storing multiple phone numbers in separate columns).

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

on another non-key attribute). Ensure that no non-key attribute is dependent on

another non-key attribute.

For example:

  • Original Table:

Employee_ID Employee_Nam

Department Department_Manager

1 Alice HR John

2 Bob IT Sarah

  • 1NF: Remove repeating groups and ensure atomic values.
  • 2NF: Remove partial dependencies. In this case, split into separate tables for

employees and departments.

  • 3NF: Remove transitive dependencies. The Department_Manager is a dependency

on Department, not directly on Employee, so it should be moved to a separate table

for Departments.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

Answer: to retrieve data. To resolve this, indexes can be reorganized or rebuilt to improve their performance.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

I/O, CPU, etc.) and chooses the one with the lowest cost.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

likely to improve performance when indexed.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

the database can use the index to quickly find matching rows.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

  • PostgreSQL: PostgreSQL doesn’t have a built-in debugger, but you can use RAISE

NOTICE for debugging or use third-party tools like pgAdmin for debugging.

  • MySQL: MySQL Workbench provides a simple debugging interface that allows

stepping through the stored procedure and monitoring execution.

Example (PostgreSQL):

RAISE NOTICE 'Debugging variable: %', my_variable;

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

CID stands for:

  • Atomicity: Ensures that all operations in a transaction are completed successfully, or

none are. If one part of a transaction fails, the whole transaction fails.

  • Consistency: Guarantees that the database is always in a valid state, adhering to all

rules, including constraints, after a transaction.

  • Isolation: Ensures that transactions are executed in isolation from each other, so

one transaction does not interfere with another.

  • Durability: Ensures that once a transaction is committed, it is permanent, even in the

case of system failures.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

table can have the same primary key value. It ensures entity integrity.

Example: user_id in a users table.

  • Foreign Key: A field (or a combination of fields) in one table that uniquely identifies a

row of another table. It establishes a relationship between two tables and enforces

referential integrity.

Example: user_id in an orders table linking to user_id in the users table.

Permalink & share

SQL & Databases SQL Server Tutorial · SQL

permanent.

What interviewers expect

  • A clear definition tied to SQL in SQL & Databases projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production SQL & Databases application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in SQL & Databases architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details