Before state senators confirmed her as a judge on New York’s top court, Madeline Singas sought to mark her independence and defend her background as a career prosecutor.

State lawmakers questioned Singas’ long prosecutorial career and inquired about her time as Nassau County district attorney. The hearing, which was held Tuesday, was at times marked by pointed exchanges.