What do you call "impulsive tension"? I learned about momentum, I know that the force is equal to the time derivative of momentum, and the momentum of a closed system is conserved. I also know that conservation of momentum does not apply if there is some "impulsive" external force, from a constraint, that can become indefinitely large during the interaction. Is there any constraint for the motion of the bodies along the string? Both are free to move.
There is no such thing that infinite force in real life. And inextensible strings do not exist. All strings are extensible a bit. If you think that the connected bodies do not move together, you should take the elasticity of the string into consideration. It is clear that the bullet interacts with block A and it starts to move. That motion causes stress in the string, it stretches a bit. That disturbance travels along the string and reaches block B, and causes to move it, when the tension at that place overcomes gravity. .The acceleration of B is the effect, and the initial motion of the first block is the cause. It can happen, that B moves faster than A when the bullet leaves A, but you need to derive it from the properties of the string. The problem says that the string is inextensible, that means the blocks start to move together, as parts of a rigid body. There is also the possibility, that you push block B upward, and this way it moves faster than block A. That makes the string slack. No force opposes gravity at B, and no retarding tension acts to block A. While it interacts with the bullet, it will accelerate faster than in case of a taut string. After the bullet leaves, it will move with a constant speed, while block B will decelerate because of gravity. Sooner or later the string becomes taut and the blocks get to move together.
As the bullet and the blocks and the string make a system, the component of the momentum along the string is conserved as the only external force is gravity and it is constant, so its effect can be ignored during the interaction with the bullet. You do not know what happens exactly during the interaction with the bullet and after a short time, but the result of the collision process is a taut string and two blocks moving together.
ehild