Exhibit 5.1

|
Jon C. Avina T: +1 650 843 5307 javina@cooley.com |
April 16, 2024
Rubrik, Inc.
3495 Deer Creek Road,
Palo Alto, CA 94304
Ladies and Gentlemen:
We have acted as counsel to Rubrik, Inc., a Delaware corporation (the “Company”), in connection with the filing by the Company of a Registration Statement (333-278434) on Form S-1 (the “Registration Statement”) with the Securities and Exchange Commission (the “Commission”), including a related prospectus included in the Registration Statement (the “Prospectus”), covering an underwritten public offering of up to 26,450,000 shares (the “Shares”) of the Company’s Class A Common Stock, par value $0.000025 per share, including up to 3,450,000 shares that may be sold upon the exercise of an option to purchase additional shares.
In connection with this opinion, we have (i) examined and relied upon (a) the Registration Statement and the Prospectus, (b) the Company’s certificate of incorporation and bylaws, each as currently in effect, (c) the forms of the Company’s Amended and Restated Certificate of Incorporation and Amended and Restated Bylaws, filed as Exhibits 3.2 and 3.4 to the Registration Statement, respectively, each of which is to be in effect prior to the closing of the offering contemplated by the Registration Statement and (d) such other records, documents, opinions, certificates, memoranda and instruments as in our judgment are necessary or appropriate to enable us to render the opinion expressed below and (ii) assumed that (a) the Shares will be sold at a price established by the board of directors of the Company or a duly authorized committee thereof and (b) the Amended and Restated Certificate of Incorporation referred to in clause (i)(c) is filed with the Secretary of State of the State of Delaware before issuance of the Shares.
We have assumed the genuineness of all signatures, the authenticity of all documents submitted to us as originals, the conformity to originals of all documents submitted to us as copies, the accuracy, completeness and authenticity of certificates of public officials; and the due authorization, execution and delivery of all documents by all persons other than by the Company where authorization, execution and delivery are prerequisites to the effectiveness thereof. As to certain factual matters, we have relied upon a certificate of an officer of the Company and have not independently verified such matters.
Our opinion is expressed only with respect to the General Corporation Law of the State of Delaware. We express no opinion to the extent that any other laws are applicable to the subject matter hereof and express no opinion and provide no assurance as to compliance with any federal or state securities law, rule or regulation.
On the basis of the foregoing, and in reliance thereon, we are of the opinion that the Shares, when sold and issued against payment therefor as described in the Registration Statement and the Prospectus, will be validly issued, fully paid and nonassessable.