Exception Handling in a RESTful Service with @ControllerAdvice
Company: J.P. Morgan
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates a candidate's understanding of centralized error handling in RESTful API design, specifically using framework-level cross-cutting mechanisms to enforce a consistent error contract. It tests the ability to map exception types to appropriate HTTP status codes and design response structures that avoid leaking internal implementation details.