Those are actually bumps in the metal.
Honda used this same headlight bucket on one or two other bikes besides the Z50. I think a PA50 maybe, is a old moped that uses this bucket. The headlight is switches on and off with a switch that fits into the hole in the back of the bucket. The "useless hole" as some folks like to refer to it. That switch pointed to one or the other of those bumps... on bump and off bump, lol. Pretty sure that is how it is. Possible that the bumps could actually be more like stops for the switch as it's turned to on and off.
>>>by the way always5s, welcome to lilhonda.