UPDATE 1-China April producer inflation picks up for first time in 7 months

* China producer inflation picks up for first time since Sept

* Consumer inflation moderates

* Trade row with U.S. could have price repercussions

* April PPI +3.4 pct y/y vs poll 3.5, March 3.1

* April CPI +1.8 pct y/y vs poll 1.9, March 2.1 (Adds sub-indexes, background)

BEIJING, May 10 (Reuters) - China's producer inflation picked up for the first time in seven months in April, bolstered by surging commodities prices and suggesting industrial demand remains resilient even as trade tensions ratchet up with the United States.

But consumer inflation eased from the previous month as food prices rose at a slower pace, official data showed on Thursday.

Analysts and investors are closely watching producer inflation in China for signs of a long-expected economic slowdown that would weigh on industrial profit growth and investment, even if there are no trade shocks.

But the country's commodity futures markets are notoriously speculative, making it difficult to tell if price swings are pointing to a real change in underlying demand.

The producer price index (PPI) rose 3.4 percent in April from a year ago, accelerating from a 17-month low of 3.1 percent in March, the National Bureau of Statistics (NBS) said on Thursday.

On a month-on-month basis, the PPI declined 0.2 percent.

Analysts polled by Reuters had expected April producer inflation would rebound to 3.5 percent as steel mills stocked up on raw materials such as iron ore and coking coal to meet a seasonal surge in construction activity. Crude oil and fuel prices have also been on the rise.

Sharper factory-gate price rises could bolster profits for industrial firms, which saw earnings growth slow to the weakest pace in over a year in March.

The consumer price index (CPI) rose 1.8 percent from a year earlier, marginally lower than expectations and slowing from March's gain of 2.1 percent.

On a month-on-month basis, the CPI declined 0.2 percent.

The core consumer price index, which strips out volatile food and energy prices, rose 2.0 percent in April, unchanged from March.

The food price index rose 0.7 percent from a year earlier, after rising 2.1 percent in March as distortions from the long Lunar New Year holiday receded. Non-food prices rose 2.1 percent, the same as a month ago.

While neither Washington nor Beijing has set a hard timeframe for the imposition of tit-for-tat tariffs, there are worries that the threat of disruptions and higher costs could start to add upward pressure on inflation in China ranging from factory floors to farms.

(Reporting by Lusha Zhang, Stella Qiu and Kevin Yao; Editing by Kim Coghill)