The following guidelines will focus on the category of compound nouns comprised of nouns + nouns.
Noun + Noun
Generally speaking, the second noun is pluralized.
il pescecane ... i pescecani l'arcobaleno ... gli arcobaleni la ferrovia ... le ferrovie la banconota ... le banconote il cavolfiore ... i cavolfiori l'autostrada ... le autostrade