<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4/A</documentType>

    <periodOfReport>2024-11-05</periodOfReport>

    <dateOfOriginalSubmission>2024-11-06</dateOfOriginalSubmission>

    <issuer>
        <issuerCik>0001743725</issuerCik>
        <issuerName>GRID DYNAMICS HOLDINGS, INC.</issuerName>
        <issuerTradingSymbol>GDYN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001805657</rptOwnerCik>
            <rptOwnerName>Livschitz Leonard</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O GRID DYNAMICS HOLDINGS, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>5000 EXECUTIVE PARKWAY, SUITE 520</rptOwnerStreet2>
            <rptOwnerCity>SAN RAMON</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94583</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>true</isDirector>
            <isOfficer>true</isOfficer>
            <officerTitle>CHIEF EXECUTIVE OFFICER</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>true</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2024-11-05</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>20000</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>15.66</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3415901</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>4853</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See footnote</value>
                    <footnoteId id="F3"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">These shares were sold pursuant to a Rule 10b5-1 trading plan adopted by the Reporting Person on September 1, 2023.</footnote>
        <footnote id="F2">This transaction was executed in multiple trades at prices ranging from $15.54 to $16.03. The price reported above reflects the weighted average sale price. The Reporting Person undertakes to provide upon request by the staff of the Securities and Exchange Commission, the Issuer, or a security holder of the Issuer, full information regarding the number of shares sold at each separate sale price.</footnote>
        <footnote id="F3">The shares are held by the Reporting Person's spouse.</footnote>
    </footnotes>

    <remarks>The initial Form 4, filed on November 6, 2024, is being amended by this Form 4 amendment to correct an administrative error, which misreported the amount of shares sold as 10,000.</remarks>

    <ownerSignature>
        <signatureName>/s/Anil Doradla, by power of attorney</signatureName>
        <signatureDate>2024-11-07</signatureDate>
    </ownerSignature>
</ownershipDocument>
