Preheat the oven to 425°F. Prepare a baking sheet with parchment paper.
Place the green beans on the baking sheet. Drizzle with olive oil. Season with salt and black pepper. Put it in the oven for 25 minutes.
While those are cooking, in a mixing bowl, whisk together the sour cream, buttermilk, garlic, thyme, granulated garlic, and onion powder. Season with salt and black pepper, to taste. Set aside.
Heat a 12” skillet over medium heat. Add about 1/4 inch of oil to the skillet and heat until shimmering. Combine the shallots and flour in a bowl and toss to coat.
Once the oil is hot, add the shallots in an even layer, shaking off any excess flour. Fry until golden brown and crisp, trying to maintain an even temperature so they don’t burn. When done, use a slotted spoon to transfer them to a paper towel to drain.
When the green beans are done, transfer them to a serving platter. Drizzle over the buttermilk dressing and sprinkle the crispy shallots on top. Garnish with fresh thyme and black pepper.