No, hamsters should not consume Pepsi or any other carbonated drinks.

Carbonated drinks like Pepsi are not suitable for hamsters and can be harmful to their health. These drinks contain high levels of sugar, caffeine, artificial additives, and carbonation, which can cause digestive upset, obesity, tooth decay, and other health problems in hamsters.
Hamsters have specific dietary requirements and should primarily be fed a balanced diet consisting of a high-quality hamster pellet or mix, supplemented with fresh vegetables, occasional fruits, and suitable treats. Water is the best and safest choice for hydration.
It’s crucial to provide your hamster with a clean, fresh water source at all times. Ensure that the water is changed regularly to prevent contamination and maintain your hamster’s health.
Also explore the compatibility of these foods for your hamster:
Watermelon, Tomato, Spinach,
If you have concerns about your hamster’s diet or specific dietary questions, it’s best to consult with a veterinarian who specializes in small animals. They can provide you with appropriate dietary recommendations and ensure the well-being of your hamster.
Further Reading :
https://vethelpdirect.com/vetblog/2023/05/20/what-is-the-best-food-for-hamsters/