I'm going to pass the exam soon.
You need the definite article.
You would only use "I'm going to pass exam soon" if you were texting, where you want to be as short as possible. Otherwise, you should take the trouble to use articles such as 'the','a' and 'an'.