You buy the CD (and give the issuer your money on deposit against the rate of 3.5%)
The path to beating inflation is (a) borrowing at fixed low rates before it kicks in & (b) buying some asset that appreciates at greater than inflation rates (or at least paces it).