I have a problem from a book and I don't know how to justify my answer. I am still confused between the difference of the idea of z test and confidence interval.

I have identified Z and P value as 4 and 6.3E-3, respectively. I am confused as whether to reject the null hypothesis because
(1) $$P_{value}= 6.3E-3<\alpha=0.05$$ OR
(2) because in the confidence interval provided, $\mu_0$ does not lie within it.
Both are correct. The confidence interval essentially describes the range of values of $\mu$ such that you would not reject the null hypothesis.