CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in this Registration Statement on Form N-1A of Prudential Investment Portfolios 2 of our report dated March 17, 2026, relating to the financial statements and financial highlights of PGIM Core Ultra Short Bond Fund, which appears in Prudential Investment Portfolios 2’s Certified Shareholder Report on Form N-CSR for the year ended January 31, 2026. We also consent to the references to us under the headings "Financial Statements", "Independent Registered Public Accounting Firm" and "Financial Highlights" in such Registration Statement.

/s/PricewaterhouseCoopers LLP New York, New York

March 30, 2026


CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in this Registration Statement on Form N-1A of Prudential Investment Portfolios 2 of our report dated March 17, 2026, relating to the financial statements and financial highlights of PGIM Institutional Money Market Fund, which appears in Prudential Investment Portfolios 2’s Certified Shareholder Report on Form N-CSR for the year ended January 31, 2026. We also consent to the references to us under the headings "Financial Statements", "Independent Registered Public Accounting Firm" and "Financial Highlights" in such Registration Statement.

/s/PricewaterhouseCoopers LLP New York, New York

March 30, 2026