The second-quarter earnings season has kicked off, and snack food and beverage giant PepsiCo (NASDAQ: PEP) was one of the first companies to release its results. Shares of Pepsi are now flat year to date, faring much better than the S&P 500's 20% drop, which shows how well the company is able to combat inflationary pressures that have run rampant around the globe. Here's why PepsiCo's business is performing strongly right now and why the snack food and drink categories are so resilient in the face of high inflation.