By Carol E. Lee and Ryan Dube

LIMA, Peru -- President Barack Obama confronts lingering challenges to his limited time in office as he wraps up a foreign trip here this weekend, including a troubled trade pact with Asia and a possible encounter with Russian President Vladimir Putin.

Mr. Obama, as he has at stops earlier this week, also will be forced to answer questions about the election of Donald Trump, particularly his criticism of trade deals such as the Trans-Pacific Partnership and Nafta.

The U.S. president meets Saturday in Peru with the leaders of Asian countries that are part of the TPP, a trade pact his aides concede won't be ratified by Congress before he leaves office. TPP was one of the top foreign-policy initiatives of Mr. Obama's second term and the linchpin of his Asia policy. He prodded many of Asia's leaders to take on domestic political risk to support the pact.

The deal doesn't include China. Mr. Obama will hold his final meeting with Chinese President Xi Jinping at the gathering, though no major policy initiatives are expected to come out of that meeting. But Mr. Xi could be the key to ensuring Mr. Trump doesn't pull the U.S. out of the international climate-change agreement world leaders reached last year in Paris.

The U.S. and China were the anchors of the deal, pledging big commitments in 2014 that brought other countries to the table. It could fall to China to try to persuade Mr. Trump to keep the U.S. in the deal.

The meetings are taking place on the sidelines of a gathering of nations that are members of the Asia-Pacific Economic Cooperation, or APEC.

The White House isn't planning a meeting with Mr. Putin, either formal or informal. But an encounter is possible, and it would be the first since Mr. Obama's administration accused Mr. Putin's government of using cyberattacks to try to influence the U.S. election.

Russia has denied the accusation. Earlier this week Mr. Obama said, "there has been very clear proof that they have engaged in cyberattacks."

On Saturday Mr. Obama also plans to hold a town hall-style question-and-answer session with young people from Peru.

Write to Carol E. Lee at carol.lee@wsj.com and Ryan Dube at ryan.dube@dowjones.com

(END) Dow Jones Newswires

November 19, 2016 09:44 ET (14:44 GMT)

Copyright (c) 2016 Dow Jones & Company, Inc.