InterviewStack.io LogoInterviewStack.io

Performance Profiling & Bottleneck Analysis Questions

Techniques for measuring where time and resources go in a running system and isolating the dominant bottleneck. Covers CPU/memory/allocation profiling, flame graphs, sampling vs instrumentation, hotspot identification, and distinguishing symptom from root cause. Emphasizes forming a measurement-first hypothesis before optimizing rather than guessing.

MediumTechnical
63 practiced
A C++ service flame graph shows many expensive syscalls. Describe how to decide whether to optimize userland code to avoid syscalls or instead tune OS/kernel parameters. Provide examples of both approaches and how to measure their relative impact.
HardTechnical
87 practiced
Design an experiment to evaluate whether GPU offloading yields net performance gain for an ML inference endpoint. Specify the metrics to collect (latency distribution, throughput, GPU utilization, CPU pre/post time, memory copy overhead), profiling tools to use, and how to reason about cost, cold-starts, and maintainability trade-offs.
HardSystem Design
60 practiced
Design a centralized observability platform for profiling data that lets engineers store, search, and compare flame graphs, CPU and heap profiles, and distributed traces across services and releases. Explain storage choices, indexing, retention, UI features for side-by-side comparison, and access controls for sensitive artifacts.
HardTechnical
52 practiced
Production shows GC pauses only under memory growth patterns not reproducible in staging. Describe a reproducible approach to capture and analyze the issue: capturing periodic heap histograms, allocation sampling, taking heap dumps at critical times, and using allocation guards or synthetic workloads to reproduce growth in staging.
EasyTechnical
71 practiced
A microservice becomes slow during peak traffic. Outline concrete steps you would take as an on-call SRE to gather data before making changes. Include which telemetry to collect, whether to increase sampling, how to take safe heap/CPU snapshots, and how to minimize risk to production.

Unlock Full Question Bank

Get access to hundreds of Performance Profiling & Bottleneck Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.