Exhibit (h)(24)

FORM OF RULE 12d1-4

FUND OF FUNDS INVESTMENT AGREEMENT

THIS AGREEMENT, dated as of March 19, 2024, between each Acquiring Fund(s) listed on Schedule A, severally and not jointly (each, an “Acquiring Fund”), and each series of VanEck ETF Trust (except such series listed on Schedule B which may be amended from time to time), severally and not jointly (each, an “Acquired Fund” and together with the Acquiring Fund[s], the “Funds”).

WHEREAS, each Fund is registered with the U.S. Securities and Exchange Commission (“SEC”) as an investment company under the Investment Company Act of 1940, as amended, (the “1940 Act”);

WHEREAS, Section 12(d)(1)(A) of the 1940 Act limits the extent to which a registered investment company may invest in shares of other registered investment companies, Section 12(d)(1)(B) limits the extent to which a registered investment company, its principal underwriter or registered brokers or dealers may knowingly sell shares of such registered investment company to other investment companies, and Section 12(d)(1)(C) limits the extent to which an investment company may invest in the shares of a registered closed-end investment company;

WHEREAS, Rule 12d1-4 under the 1940 Act (the “Rule”) permits registered investment companies, such as the Acquiring Funds, to invest in shares of other registered investment companies, such as the Acquired Funds, in excess of the limits of Section 12(d)(1) of the 1940 Act subject to compliance with the conditions of the Rule; and

WHEREAS, an Acquiring Fund may, from time to time, invest in shares of one or more Acquired Funds in excess of the limitations of Section 12(d)(1)(A) in reliance on the Rule.

NOW THEREFORE, in accordance with the Rule, the Acquiring Fund(s) and the Acquired Fund(s) desire to set forth the following terms pursuant to which the Acquiring Fund(s) may invest in the Acquired Fund(s) in reliance on the Rule.

| 1. | Terms of Investment.

(a) In order to help reasonably address the risk of undue influence on an Acquired Fund by an Acquiring Fund, and to assist the Acquired Fund’s investment adviser with making the required findings under the Rule each Acquiring Fund and each Acquired Fund agree as follows:

(i) In-kind redemptions. The Acquiring Fund acknowledges and agrees that, if and to the extent consistent with the Acquired Fund’s registration statement, as amended from time to time, and Rule 6c-11 under the 1940 Act, the Acquired Fund may honor any redemption request from the Authorized Participant acting as an intermediary to execute the Acquiring Fund’s transaction partially or wholly in-kind.

(ii) Timing/advance notice of transactions. Only upon the request of the Acquired Fund, the Acquiring Fund will use reasonable efforts to spread orders

| 1 |

given to an Authorized Participant that reasonably are expected to result in that Authorized Participant redeeming shares from the Acquired Fund (greater than such percentage of the Acquired Fund’s total outstanding shares as the Acquired Fund shall establish, from time to time, which percentage may be amended, upon notification to the Acquiring Fund, in the sole discretion of the Acquired Fund) over multiple days or to provide advance notification of such orders to the Acquired Fund whenever practicable and only if consistent with the Acquiring Fund’s and its shareholders’ best interests. The Acquired Fund acknowledges and agrees that any notification provided pursuant to the foregoing is not a commitment to sell the Acquired Fund shares and constitutes an estimate that may differ materially from the amount, timing and manner in which a redemption request is submitted, if any. The Acquiring Fund and Acquired Fund each acknowledge and agree that this voluntary notification provision does not apply to trades placed by the Acquiring Fund in secondary markets.

(iii) Scale of investment. Upon a reasonable request by an Acquired Fund, the Acquiring Fund will provide summary information regarding the anticipated timeline of its investment in the Acquired Fund and the scale of its contemplated investments in the Acquired Fund.

(b) Notwithstanding anything herein to the contrary, any Acquiring Fund that has an “affiliated person” (as defined under the 1940 Act) that is: (i) a broker or dealer, (ii) a bank or bank holding company, or (iii) a futures commission merchant or a swap dealer, (collectively, “Affiliates”), will: (a) provide VanEck ETF Trust with a complete list of such Affiliates (“List of Affiliates”) on or before the effective date of this Agreement; (b) promptly provide VanEck ETF Trust with an updated List of Affiliates following any change to such list; and (c) not make an investment in an Acquired Fund that causes such Acquiring Fund to hold 5% or more of such Acquired Fund’s total outstanding voting securities without prior approval from the Acquired Fund.

(c) In order to assist the Acquiring Fund’s investment adviser with evaluating the complexity of the structure and fees and expenses associated with an investment in an Acquired Fund, each Acquired Fund shall provide each Acquiring Fund with information on the fees and expenses of the Acquired Fund reasonably requested by the Acquiring Fund with reference to the Rule.

| 2. | Representations of the Acquired Funds.

In connection with any investment by an Acquiring Fund in an Acquired Fund in excess of the limitations in Section 12(d)(1)(A), the Acquired Fund agrees to: (i) comply with all conditions of the Rule, as interpreted or modified by the SEC or its Staff from time to time, applicable to Acquired Funds; (ii) comply with its obligations under this Agreement; and (iii) promptly notify the Acquiring Fund if such Acquired Fund fails to comply with the Rule with respect to an investment by the Acquiring Fund, as interpreted or modified by the SEC or its Staff from time to time, or this Agreement.

| 3. | Representations of the Acquiring Funds.

In connection with any investment by an Acquiring Fund in an Acquired Fund in excess of the limitations in Section 12(d)(1)(A), the Acquiring Fund agrees to: (i) comply with all

| 2 |

conditions of the Rule, as interpreted or modified by the SEC or its Staff from time to time, applicable to Acquiring Funds; (ii) comply with its obligations under this Agreement; and (iii) promptly notify the Acquired Fund if such Acquiring Fund fails to comply with the Rule with respect to its investment in such Acquired Fund, as interpreted or modified by the SEC or its Staff from time to time, or this Agreement. Additionally, an Acquiring Fund shall promptly notify an Acquired Fund: (i) of any purchase or acquisition of shares in an Acquired Fund that causes such Acquiring Fund to hold 3% or more of such Acquired Fund’s total outstanding voting securities; (ii) of any purchase or acquisition of shares in an Acquired Fund that causes such Acquiring Fund to hold 5% or more of such Acquired Fund’s total outstanding voting securities; (iii) where an Acquiring Fund and its Advisory Group (as defined in the Rule),individually or in the aggregate, hold more than 25% of such Acquired Fund’s total outstanding voting securities; and (iv) if at any time an Acquiring Fund no longer holds voting securities of an Acquired Fund in excess of an amount noted in (i).

| 4. | Notices.

All notices, including all information that either party is required to provide under the terms of this Agreement and the Rule, shall be in writing and shall be delivered by registered or overnight mail, or electronic mail to the address for each party specified below.

If to the Acquiring Fund: | If to the Acquired Fund:
Scott D.Hogan, Chief Compliance Officer c/o DWS Investment Management Americs, Inc. 100 Summer Street, 8th Floor Boston, MA 02110 Email: scott-d.hogan@db.com | VanEck Compliance Department c/o Van Eck Associates Corporation 666 Third Avenue, 9th Floor New York, NY 10017 Email: compliance@vaneck.com
With a copy to: | With a copy to:
John Millette, Secretary c/o DWS Investment Management Americas, Inc. 100 Summer Street, 8th Floor Boston, MA 02110 Email: john.millette@db.com | Van Eck Associates Corporation Attn: Legal Dept. 666 Third Avenue, 9th Floor New York, NY 10017 Email: legalnotices@vaneck.com

| 3 |

| 5. | Term and Termination; Assignment; Amendment.

(a) This Agreement shall be effective for the duration of the Acquired Funds’ and the Acquiring Funds’ reliance on the Rule, as interpreted or modified by the SEC or its Staff from time to time. While the terms of the Agreement shall only be applicable to investments in Funds made in reliance on the Rule, as interpreted or modified by the SEC or its Staff from time to time, the Agreement shall continue in effect until terminated pursuant to Section 5(b).

(b) This Agreement shall continue until terminated in writing by either party upon 60 days’ notice to the other party. Upon termination of this Agreement, the Acquiring Fund may not purchase additional shares of the Acquired Fund beyond the Section 12(d)(1)(A) limits in reliance on the Rule.

(c) This Agreement may not be assigned by either party without the prior written consent of the other.

(d) This Agreement may be amended only by a writing that is signed by each affected party, except that Schedule B to this Agreement may be amended by the Acquired Funds, in their sole discretion, by providing notice to the Acquiring Funds in accordance with Section 4.

(e) In any action involving the Acquiring Funds under this Agreement, each Acquired Fund agrees to look solely to the individual series of the Acquiring Fund(s) that are involved in the matter in controversy and not to any other series of the Acquiring Fund(s).

(f) In any action involving the Acquired Funds under this Agreement, each Acquiring Fund agrees to look solely to the individual series of the Acquired Funds that are involved in the matter in controversy and not to any other series of the Acquired Funds.

IN WITNESS WHEREOF, the parties have executed this Agreement as of the date first written above.

VanEck ETF Trust |  |
Signature | Name | Title
/s/Lisa Moss | Lisa Moss | Assistant Secretary

Each of the Deutsche/DWS trusts listed on Schedule A, on behalf of each of their series listed on Schedule A

Signature | Name | Title
/s/John Millette | John Millette | Secretary

| 4 |

SCHEDULE A

List of Acquiring Funds to Which the Agreement Applies

Deutsche DWS Asset Allocation Trust

DWS Equity Sector Strategy Fund

DWS Multi-Asset Conservative Allocation Fund

DWS Multi-Asset Moderate Allocation Fund

Deutsche DWS Market Trust

DWS RREEF Real Assets Fund

Deutsche DWS Variable Series II

DWS Alternative Asset Allocation VIP

| 5 |

SCHEDULE B (as of June 29, 2023)

List of Series of VanEck ETF Trust to which the Agreement Does Not Apply

VanEck BDC Income ETF

VanEck CEF Muni Income ETF

VanEck CLO ETF

VanEck Dynamic High Income ETF

VanEck Inflation Allocation ETF

VanEck Long/Flat Trend ETF

6