The context in which the challenge is given (typically narrowly time-boxed and with only a little information and little support) is wholly artificial — and so whether a candidate succeeds or fails is not a meaningful indicator of actual practice. There is nothing you will find out in such a test that you couldn’t better learn through probing the candidate about their portfolio.