First, let's make a sketch to better understand the situation
We can see that the triangle has been rotated 90 ° to the right, that is, clockwise.
So, the correct answer is letter A
Why D is not the correct option:
When we make a rotation on the y axis, the following happens,