ATHENS—Greece's fiscal discipline efforts appear to be paying off, according to budget data released Monday that showed the country turning last year's steep deficit into a surplus, potentially bolstering its case for further debt relief from international creditors.

But other data highlighted how much the steep spending cuts have cost the country. The Greek economy contracted by 4.6% in the second quarter, dragging out a painful recession that began six years ago, government figures showed.

...