InterviewDB
Experience
Code Review: Identify Bugs, Performance Issues, and Design Flaws in a Given Code Snippet
Onsite
Interview Experience
Problem You are given a Python snippet that implements a user session cache. Identify all bugs, performance issues, and design problems. Be prepared to explain the impact of each issue and propose fixes. Your task: List every issue you can find in 10 minutes. Rewrite the module addressing all concerns. Follow-ups cleanup_old_sessions modifies a dict while iterating — what error does this cause and how do you fix it? The global dict is not thread-safe. How would you make this safe for a multi-thr…
Full Details
🔒
Unlock all Abnormal Security questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a abnormal security interview during the onsite round.
It covers the following topics: Onsite .