The checks are extensive - almost every relevant database the government has on you [1]. They can also oder medical exams to check if you've been using drugs if they find any indication of any usage in the past in the data. It's absurd, utterly absurd.
[1] https://www.gesetze-im-internet.de/luftsig/__7.html