Code Room
Code reviewMediumcr-g101
Subject Circuit breakerLevel Mid–Senior~25 minCommon in Code quality & review interviewsIndustries Software development

Question

Review this Python feature-flag check guarded by a breaker.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewpython
def is_enabled(flag, user_id):    try:        return flag_service.check(flag, user_id)    except Exception:        breaker.record_failure()        if breaker.is_open():            return True        return True
Run or narrate your approach, then ask the coach.