Your question is Debug Python Performance Bottlenecks. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Describe the steps you take to debug a performance bottleneck in a Python-based application.
Explain how you would establish a baseline, identify the limiting resource, select appropriate profiling and observability tools, validate the root cause, and choose a remediation. Address how you would manage risk during rollout and confirm that the fix improves performance without introducing regressions.