nerdexam
Oracle

1Z0-899 · Question #52

Which of the following annotations relate to security in a servlet? (i) @WebSecurity (ii) @RolesAllowed (iii) @WebConstraint (iv) @HttpConstraint (v) @Servletsecurity

The correct answer is C. (iv) and (v). See the full explanation below for the reasoning.

Question

Which of the following annotations relate to security in a servlet? (i) @WebSecurity (ii) @RolesAllowed (iii) @WebConstraint (iv) @HttpConstraint (v) @Servletsecurity

Options

  • A(i) only
  • B(i) and (iii)
  • C(iv) and (v)
  • D(iii) and (v)
  • E(ii) and (iv)

How the community answered

(21 responses)
  • B
    5% (1)
  • C
    86% (18)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice