As an NES, but not an English teacher:
I would normally pronounce it as "forty kilometres per hour" despite the abbreviation being singular.
In your context, "forty kilometre per hour" grates somewhat, unless used in the context of, say, "the 40 km per hour route vs the 80 km per hour route".
I'm happy to stand corrected if I'm breaking any grammar rules.
Student or Learner