China's exports rose sharply in July, defying market expectations and signaling resilience in trade activity even as a critical tariff truce with the US nears expiration.