Can speeding ticket cause 221g? What to answer in DS 160 for arrest and conviction?

If there was not arrest, then you can answer ‘No’ to this question.

I see that you have asked DS 5535 form question on other page. Are you sure you are filling DS160 or DS5535?

On DS 5535, you should clearly mention your traffic ticket incident.