In a medium saucepan over medium heat, combine the refried beans, sour cream, salsa, cumin, chili powder, garlic powder, salt, and black pepper.
Stir the mixture well and cook for about 5-7 minutes, until the ingredients are heated through and well combined.
Once heated, reduce the heat to low and add half of the shredded cheddar cheese. Stir until melted and mixed in.
Transfer the bean dip to an oven-safe dish if desired, and top with the remaining cheddar cheese.
If using an oven-safe dish, broil on high for 2-3 minutes, or until the cheese is bubbly and golden brown. Keep a close eye on it to prevent burning.
Remove from the oven and let it cool slightly. Garnish with fresh cilantro, if desired.
Serve warm with tortilla chips or fresh vegetables for dipping.