nerdexam
CompTIA

ADR-001 · Question #55

A developer has written an Android application that uses the HttpURLConnection API to communicate with a backend server. Which of the following is the simplest method to protect the network…

The correct answer is C. Replace every HttpURLConnection object with an HttpsURLConnection API. See the full explanation below for the reasoning.

Question

A developer has written an Android application that uses the HttpURLConnection API to communicate with a backend server. Which of the following is the simplest method to protect the network communications of the application?

Options

  • APurchase an SSL library from a major vendor and integrate it into the application to protect the
  • BAdd the call setSecureSocket(true) to each HttpURLConnection object immediately after it is
  • CReplace every HttpURLConnection object with an HttpsURLConnection API.
  • DCall Android's built-in AES and RC-4 encryption implementations.

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    80% (16)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full ADR-001 Practice