exam questions

Exam 1z0-900 All Questions

View all questions & answers for the 1z0-900 exam

Exam 1z0-900 topic 1 question 59 discussion

Actual exam question from Oracle's 1z0-900
Question #: 59
Topic #: 1
[All 1z0-900 Questions]

You want to allow one set of roles to POST to a resource and another set of roles to GET it.
Which two configuration options should you use? (Choose two.)

  • A. two separate @HttpMethodConstraints annotations and sets of roles
  • B. a single @HttpMethodContstraint annotation and a map of method to roles
  • C. two <web-resource-collection> with different <http-method> in the deployment descriptor
  • D. a single <web-resource-collection> with two <auth-constraint> with different <http-method> in the deployment descriptor
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
orjava
7 months ago
Answer A, C https://docs.oracle.com/cd/E19226-01/820-7627/bncbl/index.html @ServletSecurity(httpMethodConstraints = { @HttpMethodConstraint(value="GET", rolesAllowed={"user"}), @HttpMethodConstraint(value="POST", rolesAllowed={"admin"})})
upvoted 2 times
...
devmsaleh
2 years ago
Answer is : A,C
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago