'c' of CD is a consonant.
'a' is used before consonant sound. 'An' is used with the words which begin with a vowel sound.
For example- The word 'M.L.A' (M is pronounced as em) begins with a consonant letter but the sound is a vowel. Therefore, the article 'an' will be used before 'M.L.A.'