And the General Statistics Office (GSO) reported it expanded 6.61 per cent in April-June, slightly below forecasts in a Bloomberg News survey but a big improvement on the previous three months' 4.65 per cent.
For the first half of the year, it grew 5.64 per cent, in line with government expectations.
Though the figure is considered high, the GSO said "the Covid-19 pandemic boom in some localities across the country from April end has posed many challenges and risks for the country in realising the objective of fighting the pandemic while developing the economy".
The economy grew 2.91 per cent in 2020, its worst reading in more than three decades, while it is targeting a 6.5 per cent rate this year.
But Gareth Leather, senior Asia economist at Capital Economics, warned: "Looking past the jump in year-on-year growth due to a weak base for comparison, GDP data suggest that Vietnam is facing a heavy economic toll from its efforts to control the virus.
"With sporadic outbreaks continuing, the economy is likely to suffer further in the months ahead."
Vietnam has fared relatively well during the pandemic, recording more than 16,000 cases and 78 deaths, with the majority of infections occurring since late April when outbreaks hit northern industrial zones before spreading to the southern business hub of Ho Chi Minh City.
Restrictions and social distancing orders have been in place in several parts of the country since May but there have so far been no significant signs of improvement, while only about three per cent of the nearly 100 million population has been vaccinated.
The country is striving to obtain more jabs from overseas while also working on developing its own.