If using frozen broccoli, microwave it for about 1 minute to soften it slightly, then roughly chop it. Dice the onion and chop the carrots into small pieces.
In a Dutch oven or large pot, melt the butter over medium-high heat.
Add the diced onion and cook for about 4 to 5 minutes, stirring occasionally, until softened.
Add the minced garlic and cook for about 30 seconds.
Sprinkle in the flour and stir continuously for about 1 minute.
Slowly pour in the chicken broth while whisking until combined.
Add the half-and-half and give everything a nice mix.
Add the broccoli and chopped carrots.
Season with garlic powder, salt, and black pepper.
Bring the soup to a gentle simmer, reducing the heat as needed. Cook for about 15 to 20 minutes, stirring occasionally, until the vegetables are tender.
Turn the heat to low and slowly add the shredded cheddar cheese, one handful at a time. Stir until each handful melts before adding more.
Once all the cheese is incorporated, continue stirring over low heat for another 2 to 3 minutes until smooth and creamy. Do not let the soup boil.
Ladle the soup into bowls and top with grated Parmesan cheese if desired.