Los Angeles district attorney's spokeswoman Jane Robison says Natalie Mejia entered the plea Wednesday in a Pasadena courtroom.
A trial on a charge of possession with the intent to sell had been scheduled for this week. Mejia was arrested on March 9 in Glendale, Calif., after police said they found 13 bags of cocaine in her Gucci purse during a traffic stop.
Robison says Mejia will be required to undergo counseling and attend classes for the next 18 months.
If she completes the deferred judgment program, the felony charge will be dismissed.