The most common solution I found is to just put the cable end through the hole and attach the cable stop - basically letting the cable be the cotter pin.
I guess that works fine - though it seems it could lead to binding, wear, and breaking of the cable end.
That is the way it is shown in the Assembly Manual and it allows the cable to pull up the throttle and also allows the throttle to slide up the cable. The clips shown by mayna (although a good idea), are not shown in the Assembly Manual.
Phak1 those cable stops are available at ace hrdwr
Thanks, always good to know.