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 5 of our report dated September 19, 2025, relating to the financial statements and financial highlights of PGIM Target Date Income Fund, PGIM Target Date 2020 Fund, PGIM Target Date 2025 Fund, PGIM Target Date 2030 Fund, PGIM Target Date 2035 Fund, PGIM Target Date 2040 Fund, PGIM Target Date 2045 Fund, PGIM Target Date 2050 Fund, PGIM Target Date 2055 Fund, PGIM Target Date 2060 Fund, PGIM Target Date 2065 Fund and PGIM Target Date 2070 Fund, which appears in Prudential Investment Portfolios 5’s Certified Shareholder Report on Form N- CSR for the year ended July 31, 2025. 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 September 24, 2025

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 5 of our report dated September 19, 2025, relating to the financial statements and financial highlights of PGIM 60/40 Allocation Fund, which appears in Prudential Investment Portfolios 5’s Certified Shareholder Report on Form N-CSR for the year ended July 31, 2025. 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 September 24, 2025

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 5 of our report dated September 18, 2025, relating to the financial statements and financial highlights of PGIM Jennison Diversified Growth Fund, which appears in Prudential Investment Portfolios 5’s Certified Shareholder Report on Form N-CSR for the year ended July 31, 2025. 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 September 24, 2025

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 5 of our report dated September 18, 2025, relating to the financial statements and financial highlights of PGIM Jennison Rising Dividend Fund, which appears in Prudential Investment Portfolios 5’s Certified Shareholder Report on Form N-CSR for the year ended July 31, 2025. 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 September 24, 2025