Hi cristianxb1983,
FCOM 1.31.30 says "MASTER CAUT lights: The aural warnings cease when one pilot presses the MASTER WARN light (except for some red warnings, such as the overspeed and stall warnings)"
You must have had very fast reflexes, because I've not witnessed a crew respond to a TCAS RA so fast that, the Altitude Alert has been triggered before the end of the RA warning.
The simulator can't reproduce the vertical acceleration you will feel in real life. In the sim, it's easy to satisfy the TCAS required ROC/ROD unrealistically rapidly. In real life, you would probably be more gentle with the pitch change, and the TCAS warning (once or twice) will be over before the Alt Alert warning.