We have a 2010 Cobalt that I suspect throws the CEL from poor fuel or ethanol.
Its the system too lean, bank #, sensor #. It only has 13,000 miles. Dealer couldn't find anything wrong with it but suggested a "routine maintenance" cleaning of the fuel system for ONLY $130 or so. Its not a flexfuel car. Lately the light has stayed off on its own. I've check the car over twice and so has the dealer and they have not found any problems. Adjusting the fuel trim would fix the problem.
Light was off for a while and we had some gas in a can for a month or so and my dad put the gas in the car and it turned the CEL on the next day. It was clean gas.