Call the court to find out if they are infractions or misdemeanors. Infractions don't matter at all. You are allowed up to three less serious misdemeanors. You may have two. So, you still should be fine if you are otherwise eligible for deferred action. Good luck to you.
As my colleague stated, it appears you likely have 2 misdemeanors, and you are allowed up to 3. However, keep in mind that Deferred Action is not a right, it is discretionary. You still need to address these two incidents in your application.
My firm handles Deferred Action cases throughout Southern California, and I'd be happy to speak to you about your case. You can reach me at the information located below.
Best of luck,
Sanjay Paul, Esq.
This is not legal advice. No attorney client relationship exists between us.
If you are certain you went to traffic court your cases are most likely infractions, but checking directly with the court is the way to make sure. You should also find out if they were for Vehicle Code section 14601 violations (being unlicensed or having a suspended license) or were for Vehicle Code section 12500 (not having a license in your possession). Assuming those are your only convictions you should be fine applying for Deferred Action but should consult with an immigration attorney first.