You mean the person's political party affiliation from his voter registration? I have trouble believing this story, what state did this supposedly take place in and why would a DMV examiner have access to voter registration data? Sure, they can register people to vote, but that's not the same as two-way access to the electoral rolls. And in any case, it's hard to believe that a DMV worker would knowingly jeopardize their job in such an obviously inappropriate way.
Frankly, as someone who has dealt with the DMV since the age of 16, I have a hard time believing that their treatment of a citizen could ever jeopardize their job.
I'm not certain it's possible to be fired from the DMV. There was a story about a year ago about a woman at the CA DMV that was sleeping on the job four hours a day every day for years. She's still working there.