Fair Value Measurements
9 Months Ended
Jan. 31, 2022
Fair Value Disclosures [Abstract]  
Fair Value Measurements Fair Value Measurements
The Company measures financial assets and liabilities that are measured at fair value on a recurring basis at each reporting period using a fair value hierarchy that prioritizes the use of observable inputs and minimizes the use of unobservable inputs when measuring fair value. A financial instrument’s classification within the fair value hierarchy is based upon the lowest level of input that is significant to the fair value measurement.
Financial Assets
The following table summarizes assets that are measured at fair value on a recurring basis as of January 31, 2022 and April 30, 2021 (in thousands):
 
January 31, 2022Level 1Level 2Level 3Total
Financial Assets:    
Cash and cash equivalents:    
Money market funds$559,337 $— — $559,337 
Short-term bank deposit— 1,700 — 1,700 
Total$559,337 $1,700 $— $561,037 

April 30, 2021Level 1Level 2Level 3Total
Financial Assets:    
Cash and cash equivalents:    
Money market funds$175,007 — — $175,007 
The Company considers all highly liquid investments, including money market funds with an original maturity of three months or less at the date of purchase, to be cash equivalents. The Company uses quoted prices in active markets for identical assets to determine the fair value of its Level 1 investments in money market funds. The Company classifies its short-term bank deposit within Level 2 because they are valued using inputs other than quoted prices that are directly or indirectly observable in the market, including readily available pricing sources for the identical underlying security which may not be actively traded.
Financial Liabilities
In July 2021, the Company issued $575.0 million aggregate principal amount of 4.125% Senior Notes due July 15, 2029 (the “Senior Notes”) in a private placement. Based on the trading prices of the Senior Notes, the fair value of the Senior Notes as of January 31, 2022 was approximately $537.8 million. While the Senior Notes are recorded at cost, the fair value of the Senior Notes was determined based on quoted prices in markets that are not active; accordingly, the Senior Notes are categorized as Level 2 for purposes of the fair value measurement hierarchy.