"Do you have a girlfriend?"
It can be confusing from a native speaker's point of view as well, because it's not always easy to explain why this happens. Depending on the sentence, including it could change the meaning, but you need more than Duo's usually limited context to determine what's the appropriate syntax. You just know when to use it - what the rule is is an entirely different matter! :)