Exhibit 23.1
Consent of Ernst & Young LLP, Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the Registration Statement (FormS-8) pertaining to the 2017 Equity Incentive Plan and 2017 Employee Stock Purchase Plan of Okta, Inc. of our reports dated March 5, 2020, with respect to the consolidated financial statements of Okta, Inc. and the effectiveness of internal control over financial reporting of Okta, Inc. included in its Annual Report (Form10-K) for the year ended January 31, 2020, filed with the Securities and Exchange Commission.
/s/ ERNST & YOUNG LLP
San Francisco, California
March 6, 2020