In theory, tight fiscal and monetary policies should be adopted to adjust the surplus, because the surplus will lead to a large amount of domestic money, which may lead to inflation, so tight policies should be adopted to reduce the amount of money.
Surplus will lead to the increase of foreign exchange held by the state, so, in theory, it is because of selling foreign exchange!