Small amounts of cheese and yogurt can be given to hamsters as occasional treats. However, these dairy products should only be offered sparingly due to their high fat content. Opt for low-fat options, and always monitor how your hamster reacts to new foods.