Rep. Alexandria Ocasio-Cortez asked Michael Cohen about President Donald Trump's finances during his testimony in front of the House Oversight Committee on Wednesday.

Ocasio-Cortez received praise for how she used her time during Cohen's hearing.

She credited her work as a bartender and waitress for helping her develop a "razor-sharp BS detector."

Rep. Alexandria Ocasio-Cortez said her time working as a bartender and waitress helped her develop a "razor-sharp BS detector" after she was praised for the questions she asked during Michael Cohen's public testimony on Wednesday.

Ocasio-Cortez focused her questions on President Donald Trump's finances as Cohen, Trump's former lawyer and fixer, testified in front of the House Oversight Committee.

Her questions and use of time received praise on social media, and she said it was her experience in the restaurant industry that helped her hone her skills.

"Bartending + waitressing (especially in NYC) means you talk to 1000s of people over the years. Forces you to get great at reading people + hones a razor-sharp BS detector," she said on Twitter after the hearing. "Just goes to show that what some consider to be 'unskilled labor' can actually be anything but."

Ocasio-Cortez worked at a bar in New York City until late 2017, months before she defeated former Rep. Joe Crowley, a 10-term Democratic incumbent, in the 2018 congressional primary.

Read more: Alexandria Ocasio-Cortez's line of questioning at Michael Cohen's hearing is earning her praise. Here's how it could affect Trump and his businesses.

In January, she told The Hollywood Reporter that her work in the restaurant industry prepared her for working in Washington politics.

"When you work in the service industry as a woman, you are harassed all the time. It's just part of your job," she said. "You're often spoken to in a way that is very classist. You are treated like a servant. So you really get used to navigating those dynamics."

In her questions on Wednesday, Ocasio-Cortez asked Cohen about Trump's tax returns, tax-fraud allegations against Trump, and whether or not the president ever inflated or deflated assets.