Performance Profiling & Bottleneck Analysis Questions

Techniques for measuring where time and resources go in a running system and isolating the dominant bottleneck, independent of platform, language, or role. Covers CPU, memory, and allocation profiling, including GPU utilization profiling on ML-inference services; generating and reading flame graphs; choosing sampling vs instrumentation profiling; heap dumps and GC diagnostics; and using profiler, trace, and metric output to distinguish symptom from root cause. Emphasizes the measurement methodology itself: forming a measurement-first hypothesis before optimizing and validating that a fix actually worked, rather than the optimization technique applied afterward, the platform's resource limits, or production incident triage under time pressure.

MediumTechnical
68 practiced

A production process's resident memory increases by 100MB every hour and eventually triggers OOM kills. Describe a methodical approach to find whether this is a native memory leak, GC tuning issue, or intentional cache growth, including commands, profiling tools, and short-term mitigations to prevent OOM.

HardTechnical
62 practiced

A 10% CPU regression appears after changes to compiler optimization flags in the build pipeline. Outline steps to isolate a compiler-induced regression, including how to bisect commits/flags, use stripped/unstripped builds, compare generated assembly, and mitigate regressions in CI/CD.

MediumTechnical
72 practiced

Explain Amdahl's Law and its implications for optimizing a service: given a component that accounts for 30% of execution time, calculate the maximum theoretical speedup if that component is made infinitely fast and discuss how that informs prioritization.

EasyTechnical
73 practiced

Explain what profiling is in the context of Site Reliability Engineering. Describe the main goals of profiling, common types of profilers (sampling vs instrumentation), typical metrics collected (CPU, memory, I/O, network), and why SREs follow a measure-first, change-later approach to keep optimizations safe and reproducible.

MediumTechnical
62 practiced

As an SRE, how would you validate that a reported optimization actually improved performance? Detail the before-and-after measurement plan, statistical tests for significance, regression analysis for non-target metrics, and how to communicate findings to stakeholders.

Unlock Full Question Bank

Get access to all 40 Performance Profiling & Bottleneck Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.