It depends on how thick the armor is that a sniper's bullet can penetrate. Shooting without antimaterial rifle at a tank makes no sense, but shooting trucks and light vehicles does.
True, but a tank leader with half his body sticking out the top or if a tank is carrying units should be viable but snipers don't seem to hit anything.