I recently went through a final-round interview process, and a large piece of the technical part of the interview involved handing me a laptop connected to the internet and the interviewer saying "Build a REST API that can handle these 4 curl requests and respond correctly. Use any technology you want. You have access to Google and anything else you can find. You have about an hour, I'll be back to check on you in 20 minutes. Go!"
I felt like this was SUCH a better test of my abilities as a professional programmer versus remembering specific algorithms or reciting "best practices" for X, Y and Z.