You can't appear for CDS Examination until you have a graduate degree from a recognized university. Being a diploma holder, you are unable to apply for CDS. You must be a graduate first. However, final year graduation students can apply. Beside this, there are other criteria also like applicants age should be within 20-24 years.
Check the CDS eligibility criteria here-