In most places yes, you aren’t allowed to even ask these questions during an interview since it can introduce a bias.
There is a major risk to employers pretty much any western country when it comes to these sort of discrimination claims.
There is a major risk to employers pretty much any western country when it comes to these sort of discrimination claims.
Also depending on the jurisdiction and circumstances they might say that they honestly believed that they would be capable of it but realized that they aren’t and you might be obligated to accommodate them to a certain degree.