Actually I have the same questions. I asked a few times and still have the same questions since no logical explanations were given. So the rule is that when you have a countable noun and in singular form you use "a";if you want to specify, I mean when you are talking about a specific object you put "the".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.