The article discusses the necessity for selecting a statistically optimal sample size so as to control the probability of error occurrences in hypothesis test results and maintain optimum quality. Topics discussed include various scenarios with regard to the matter, considerations for calculating the optimal sample size and the appropriate hypothesis test to be the one-tailed Z test.