Blue
Ravenous Bugblatter Beast of Traal
I'm with people who say you can use Uncanny Dodge. 5e has established in several places that your attack roll/getting hit and what modifies it (including reactions from feat like Defensive Duelist, spells like Absorb Energy, and class features like Cutting Words) happens before any effects are applied.
A earlier shocking grasp landing would have stopped uncanny dodge on a second shocking grasp because the effects would already be in place for the hit from the attack roll of the second one. But the feature is used and complete before we move onto effects.
Another way of looking at it is that you couldn't use Defensive Duelist if the attack would drop you, since if the effects were applied first and then retroactively applied back to the attack roll, you can't take a reaction when unconscious. That's not the case, showing that attack roll (including "on hit") resolve completely before moving moving onto the damage and other effects of the attack.
A earlier shocking grasp landing would have stopped uncanny dodge on a second shocking grasp because the effects would already be in place for the hit from the attack roll of the second one. But the feature is used and complete before we move onto effects.
Another way of looking at it is that you couldn't use Defensive Duelist if the attack would drop you, since if the effects were applied first and then retroactively applied back to the attack roll, you can't take a reaction when unconscious. That's not the case, showing that attack roll (including "on hit") resolve completely before moving moving onto the damage and other effects of the attack.