Democratic presidential front-runner Hillary Rodham Clinton on Wednesday said that county clerks who object to issuing marriage licenses to gay and lesbian couples should follow the law or resign.

Clinton made her remarks at a campaign event at Cornell College in Mount Vernon, Iowa.

During a Q&A session, a student asked, “What would you do about somebody if they were to do something like what Kim Davis did recently?”

Davis is the elected clerk of Rowan County, Kentucky who was jailed for 5 days for refusing to comply with the Supreme Court's June ruling striking down gay marriage bans in all 50 states. She has said that issuing marriage licenses to gay couples would violate her conscience.

“I think what happened to Kim Davis was the right thing,” Clinton answered.

“She violated the law, and therefore she was arrested. I actually think that she was treated as she should have been treated. … You either enforce the law or you resign,” she added.

Davis has refused to resign and continues her legal fight to be exempt from the law.