Transaction Log Backup (for databases that support it, like SQL Server):?
Short answer: A transaction log backup records all the changes made to the database since the last transaction log backup.
Explain a bit more
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.
Real-world example (ShopNest)
Checkout wraps stock decrement + order insert in a transaction so you never sell stock you do not have.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png