PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Bytedance

Explain CAP, indexing, locks, and logs

Last updated: Mar 29, 2026

Quick Overview

This question evaluates knowledge of distributed systems concepts (CAP theorem), database internals (index types and logging), and concurrency control mechanisms (locks and isolation anomalies) within the Software Engineering Fundamentals domain.

  • medium
  • Bytedance
  • Software Engineering Fundamentals
  • Software Engineer

Explain CAP, indexing, locks, and logs

Company: Bytedance

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

You are interviewing for a general software engineering role. Answer the following conceptual questions: 1. What does the CAP theorem state in distributed systems, and what trade-offs do real systems make in practice? 2. What is a database index? Compare common index types such as B-tree and hash indexes, and discuss their effects on read performance, write performance, storage cost, and query patterns. 3. How do concurrency control and locks work in databases or multithreaded systems? Explain shared vs. exclusive locks, deadlocks, and common isolation problems such as dirty reads, non-repeatable reads, and phantom reads. 4. What is the purpose of logs in software systems and databases? Distinguish between application logs, audit logs, and database recovery logs, and explain how logging helps with debugging, observability, and crash recovery.

Quick Answer: This question evaluates knowledge of distributed systems concepts (CAP theorem), database internals (index types and logging), and concurrency control mechanisms (locks and isolation anomalies) within the Software Engineering Fundamentals domain.

Related Interview Questions

  • Explain Backend Infrastructure Fundamentals - Bytedance
  • Explain Backend Fundamentals and AI Tooling - Bytedance (hard)
  • Add TTL to an LRU cache - Bytedance (hard)
  • How do you assess database system stability? - Bytedance (medium)
  • How to triage slow service alerts - Bytedance (hard)
Bytedance logo
Bytedance
Jan 2, 2026, 12:00 AM
Software Engineer
Technical Screen
Software Engineering Fundamentals
3
0
Loading...

You are interviewing for a general software engineering role. Answer the following conceptual questions:

  1. What does the CAP theorem state in distributed systems, and what trade-offs do real systems make in practice?
  2. What is a database index? Compare common index types such as B-tree and hash indexes, and discuss their effects on read performance, write performance, storage cost, and query patterns.
  3. How do concurrency control and locks work in databases or multithreaded systems? Explain shared vs. exclusive locks, deadlocks, and common isolation problems such as dirty reads, non-repeatable reads, and phantom reads.
  4. What is the purpose of logs in software systems and databases? Distinguish between application logs, audit logs, and database recovery logs, and explain how logging helps with debugging, observability, and crash recovery.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Bytedance•More Software Engineer•Bytedance Software Engineer•Bytedance Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.