nerdexam
Oracle

1Z0-900 · Question #43

1Z0-900 Question #43: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-900 to reveal the answer and full explanation for question #43. The question stem and answer options stay visible for context.

Secure Java EE 7 Applications

Question

Given an HttpServletRequest request and an EJB SessionContext ctx. Which is a valid way to retrieve the Principal invoking either behavior?

Options

  • Arequest.getCallerPrincipal() and ctx.getCallerPrincipal()
  • Brequest.getUserPrincipal() and ctx.getUserPrincipal()
  • Crequest.getCallerPrincipal() and ctx.getUserPrincipal()
  • Drequest.getUserPrincipal() and ctx.getCallerPrincipal()

Unlock 1Z0-900 to see the answer

You've previewed enough free 1Z0-900 questions. Unlock 1Z0-900 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Principal retrieval#EJB SessionContext#Servlet security#Caller identity
Full 1Z0-900 Practice