A lorry driver apparently showing off to his friends drove his car at more than 105mph on the A92.
Darren Christie, a motorsports enthusiast, had been at a drifting show before he was caught speeding by police.
Other drivers had to brake to avoid crashing because of Christie’s antics.
But the former soldier avoided a driving ban which he said would have cost him his job.
Christie, 38, of Smeaton Gardens, Kirkcaldy, appeared in the dock at Dunfermline Sheriff Court.
He admitted driving carelessly on the A92 between Cowdenbeath and Crossgates on July 28 last year.
Police officers saw Christie’s Ford Focus join the dual carriageway in front of a car which had to brake.
Depute fiscal Dev Kapadia said: “The defence accepts that this is at the top end of careless driving.
“At 4.30pm a number of vehicles were seen coming on to the A92 from the Cowdenbeath slip road.
“Police were travelling at 70mph but Christie’s vehicle was pulling away from them.
“When the police vehicle accelerated to 105mph, Christie was still travelling faster than them.”
Police activated their sirens and blue lights and Christie pulled in sharply, causing another driver to brake to avoid a collision.
Mr Kapadia said: “When he was stopped he was belligerent towards the officers, asking them if they had video of his driving.”
Sheriff Craig McSherry fined Christie £600 and endorsed his licence with nine penalty points.