Of those, only A is correct. In conversation, "It is" would normally be contracted to "It's" — or, in fact, would often be dropped altogether in this reply. If I was transcribing dialogue, I would write "three kilometres" rather than "3 km".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.