I think either would be correct in your example.
These examples are more clear cut to me, but I can't really define the rule.
"Is it true you are going to quit your job?" ("that" would not work here)
"I heard you are going to quit your job; is that true?" ("it" would work here, but I think "that" sounds more natural)
*** Not a teacher ***
Student or Learner