I’m using the term domain very broadly here, I apologise.
What I mean is, if the job your applying for is mostly about working with implementing 3rd party APIs IMO it makes sense that your tech test represents that to some degree.
Can you understand basic documentation.
Can you use data structures.
Can you write tests and understand what actually needs to be tested.
Can you handle exceptions.
Do you try and get the entire resource?
Believe it or not I’ve joined a team in the past who owned a service where no one knew what pagination was.
Bonus points if you demonstrate that you understand what a transaction is.
And I forgot to add, can you design a sensible database schema.
Can a candidate talk about those simple concepts?
Now, would I be able to do a tech test based around domains in machine learning? I would have to do a lot of research first!