How does logistic regression estimate coefficients?

Group of answer choices

By minimizing the sum of squared residuals.

By maximizing a likelihood function.

By minimizing the odds of whatever is coded a "successful" outcome.

By maximizing a log-likelihood function.