Rocks in my car

Is this car still under warranty? If so I’d bring it in ASAP. “Marbles in a tin can” is the classic description of knocking, but that should be a thing of the past on a car this new. Does it make the noise all the time or just when you’re accelerating? Do you have to be moving? Have you tried checking under the hood to see if you can tell where it’s coming from?