Trump had 2 Secretaries of State in his first 2 years - Rex Tillerson and Mike Pompeo. Tillerson, who was CEO of Exxon, had zero government experience and lasted just over a year. He famously called Trump a moron. Pompeo also had zero government experience when Trump first tagged him to be Director of the CIA and then as a replacement for Tillerson. Pompeo had been an Army Captain, a lawyer and a businessman before leading the CIA.
Trump had 2 Secretaries of Defense in his first 2 years - General James Mattis who resigned after just under 2 years in office and Mark Esper who was eventually fired by tweet just 15 months later. After Trump lost the 2020 presidential election to Joe Biden, Trump launched a months-long effort to subvert the election outcome and remain in power, falsely claiming that the election had been "stolen" from him.[89] In his subsequent memoir, published in 2022, Esper wrote that Trump's effort "was a national embarrassment that undermined our democracy, our credibility, and our leadership on the world stage."
In an open letter published in September 2022, Esper and Jim Mattis, as well as a bipartisan group of former top U.S. generals and former defense secretaries, said that the failure to commit to a peaceful transfer of power worsened "an extremely adverse environment" for the U.S. military.
On the other hand:
Biden has had Antony Blinken as his Secretary of State, a man who had decades of experience in the State Department and National Security positions.
Biden has had General Lloyd Austin as his Secretary of Defense. He was confirmed by the Senate in a 93–2 vote on January 22, 2021.[56] Republican senators Josh Hawley and Mike Lee were the only "no" votes.