What a pathetic sentence. No one who actually speaks English would ever say anything like that. Is the judge also suspected of becoming a judge by the lawyer? I wonder?
May be a better word to use is "expected" -> "He is expected to become a lawyer by a judge", it is still an awkward sentence, so it is better to use an active voice -> "A judge expects him to become a lawyer (soon)".
Duolingo is by far my favourite crime drama