The level of confidence is taught early in most statistics courses.

The only way to achieve 100% confidence is the 100% survey. Too costly but there are some that would do that (the census for example.)
Bob