What is your concern with the elevation differences? If it is pressurized pipe, you may be concerned with high spots that collect air, or maybe that if the pipe is to shallow it may be within the frost zone of live loading may be a concern, or if it is too deep it may be difficult to excavate and repair if there are maintenance issues.
Without knowing what your concerns are, it is difficult to say what deviations are reasonable.