WASHINGTON — Paula Broadwell, whose affair with the nation’s CIA director led to his resignation on Friday, was the valedictorian of her high school class and homecoming queen, a fitness champion at West Point with a graduate degree from Harvard, and a model for a machine gun manufacturer.

It may have been those qualities — and a string of achievements that began in her native North Dakota, where she was state student council president, an all-state basketball player and orchestra concertmistress — that drew the attention of David H. Petraeus, the nation’s top spy and a four-star general, as the two spent hours together for a biography of Petraeus that Broadwell co-wrote.

Broadwell’s name burst into public view on Friday evening after Petraeus resigned abruptly amid an FBI investigation that uncovered evidence of their relationship.

But Broadwell was hardly shy about her interactions with Petraeus as she promoted her book, ‘‘All In: The Education of General David Petraeus,’’ in media appearances earlier this year. She had unusual access, she noted in promotional appearances, taping many of her interviews for her book while running six-minute miles with Petraeus in the thin mountain air of the Afghan capital.

Get Political Happy Hour in your inbox:

Your afternoon shot of politics, sent straight from the desk of Joshua Miller.

Broadwell said in an interview in February that Petraeus was enjoying his new civilian life at the CIA, where he became director in September 2011. ‘‘It was a huge growth period for him, because he realized he didn’t have to hide behind the shield of all those medals and stripes on his arm,’’ she said. Broadwell was 39 at the time.

Her biography on the Penguin Speakers Bureau website says that she is a research associate at Harvard’s Center for Public Leadership and a Ph.D. candidate in the Department of War Studies at King’s College London. She received a master’s in public administration from Harvard’s Kennedy School of Government.

A self-described ‘‘soccer mom’’ and an ironman triathlete, Broadwell became a fixture on the Washington media scene after the publication of her book about Petraeus, who is 60. In a Twitter message this summer, she bragged about appearing on a panel at the Aspen Institute, a policy group for deep thinkers.

On her Twitter account, she often commented on the qualities of leadership. ‘‘Reason and calm judgment, the qualities specially belonging to a leader. Tacitus,’’ she wrote. In another message, she said: ‘‘A leader is a man who has the ability to get other people to do what they don’t want to do and like it. Truman.’’

She also used her Twitter account to denounce speculation in the Drudge Report that Petraeus would be picked as a running mate by Mitt Romney, the Republican candidate for president.

Married with two children, she was described in a biography on the website of Inspired Women Magazine as a high achiever since high school.

The biography says that Broadwell received a degree in political geography and systems engineering from West Point, where she was ranked No. 1 overall in fitness in her class. She benefited from a different ranking scale for women, she told a reporter this year. But ‘‘I was still in the top 5 percent if I'd been ranked as a male,’’ she said.

The official website for Broadwell’s book was taken down Friday, but comments from her echoed across the Internet.

''I was driven when I was younger,’’ she was quoted as saying on the website noting her induction into her high school’s hall of fame. ‘‘Driven at West Point where it was much more competitive in that women were competing with men on many levels, and I was driven in the military and at Harvard, both competitive environments.’’

''But now,’’ she is quoted as saying, ‘‘as a working mother of two, I realize it is more difficult to compete in certain areas. I think it is important for working moms to recognize that family is the most important.’’

On ‘‘The Daily Show,’’ Jon Stewart summed up Broadwell’s book by saying: ‘‘I would say the real controversy here is, is he awesome or incredibly awesome?’’ A short time later, Broadwell challenged Stewart to a push-up contest, which she won handily. Stewart had to pay $1,000 to a veterans’ support group for each push-up she did beyond his total. Broadwell said he wrote a check for $20,000 on the spot.

On Friday evening, her house in the Dilworth neighborhood of Charlotte, N.C., was dark when a reporter rang the doorbell. Two cars were in the home’s carport and an American flag was flying out front.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.

Thanks & Welcome to Globe.com

You now have unlimited access for the next two weeks.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.