1Z0-897 Free Dumps Study Materials
Question 9: Given the resource class fragment:
Choose the code fragment below that would secure access only to the Resource update() method
(Choose one):
A. <security-constraint>
<web-resource-collection>
<url-pattern>/rest</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
B. <security-constraint>
<web-resource-collection>
<url-pattern>/rest</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
C. <security-constraint>
<web-resource-collection>
<url-pattern>/rest/id</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
D. <security-constraint>D.<security-constraint>
<web-resource-collection>
<url-pattern>/id</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
Correct Answer: B