Is y = sqrt(x) a function? Or should it be y = |sqrt(x)| ?
It is y=sqrt(x)
If the square root is written into the question then the answer is positive. [this is the convention]
See the graph.
https://www.desmos.com/calculator/dzs67x9g9u