A lead diaphragm in X-ray units serves to

prevent secondary radiation

All of the above.

produce a more homogeneous X-ray beam.

collimate the useful beam of rays