I filter for “smart and gets things done” (Joel Spolsky circa 2001).
“tell me about the project that you are most proud of” and then we talk about the architecture, tradeoffs, technical and business complexities, etc.
“I see you’ve been working for $x years. I’m sure there is a project you look back on knowing what you know now and cringe. Tell me about the project and what would you do differently?”
There are a few other questions. But I am usually also trying to measure soft skills and what level of scope and ambiguity they are comfortable with. The last thing I’ve ever needed when I am looking to hire is another “ticket taker”.
Even before AI, why would ever hire a junior dev? They are practically useless, do negative work and easy enough to poach someone with experience from another company for only slightly more money if you paying standard enterprise dev wages.