nerdexam
Oracle

1Z0-897 · Question #72

HTTP clients can provide authentication information to the server via the "Authorization" header in the HTTP request. Choose the alternative, if any, that would serve as the definition for a…

The correct answer is D. @GET @Path("/authInfo"). See the full explanation below for the reasoning.

Question

HTTP clients can provide authentication information to the server via the "Authorization" header in the HTTP request. Choose the alternative, if any, that would serve as the definition for a resource method that would allow a JAX-RS resource to obtain this authentication data (Choose one):

Options

  • AIt is impossible for a JAX-RS resource to obtain this information, since low-level HTTP data is not
  • B@GET @Path("/authInfo")
  • C@GET @Path("/authInfo/{AUTHENTICATE}")
  • D@GET @Path("/authInfo")

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    2% (1)
  • C
    11% (5)
  • D
    80% (35)

Community Discussion

No community discussion yet for this question.

Full 1Z0-897 Practice