Skip to content
Sharp

Networking · interview question

Which feature of HttpClient helps mitigate risks when connecting to untrusted HTTPS endpoints?

Multiple choiceHardchapter-11-curatedpremiumnetworkinghttpclient-basics
Choose one answer
Answer and explanation

Correct answer

B. Using a custom SSLContext

Why

Using a custom SSLContext with HttpClient allows developers to specify trusted certificates and configure security settings, providing control over how HTTPS connections are handled and making it safer to connect to potentially untrusted endpoints.

Test yourself on Networking

A free test with instant, explained results. No account needed.

Start free test
All Networking questions →