The interaction the prairie dogs have with rattlesnake is prey predator interaction.
In a Food chain the prairie dog is primary consumer that feeds on the producers or plants and rattle snakes are secondary consumers that feed on prairie dogs. Hence the prairie dog is prey and rattlesnake is predator which preys on prairie dog.
<span>Rattlesnakes would eat a prairie dog if they could catch it. However, if a rattlesnake approached a prairie dog colony, the prairie dog's "sentinels" would alert the rest of them, and they would hide in their holes. A rattlesnake could fit into the holes, but I don't think that snakes usually actively seek prey (they act more like a trap, waiting for prey to come to them). </span>