AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-899





Question ID 4713

Given the java code snippet in contextInitialized method of a ServletContextListner:
ServletRegistration.Dynamic sr = (ServletRegistration.Dynamic)sc.addServlet
(“myServlet”, myServletClass);
sr.addMapping(“/abc”);
sr.setServletSecurityElement(servletSecurityElement);
sr.addMapping(“/def”); Which statement is true?
 

Option A

A.    “/abc” is mapped to “myservlet”. The servletSecurityElementy applies to both “/abc” and “/def”.
 

Option B

B.    Both “/abc” and “/def” are mapped to “myservlet”. The servletSecurityElementy applies to “/abc”.
 

Option C

C.    Both “/abc” and “/def” are mapped to “myservlet”. The servletSecurityElementy applies to “/def”.
 

Option D

D.    Both “/abc” and “/def” are mapped to “myservlet”. The servletSecurityElementy applies to both “/abc” and “/def”.
 

Option E

E.    Both “/abc” and “/def” are mapped to “myservlet”. The servletSecurityElementy applies to “/abc”, but the behavior for “/def” is not specified.
 

Correct Answer E
Explanation


Question ID 4714

Given:
3.    class MyServlet extends HttpServlet {
4.    public void doPut(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
5.    // servlet code here ...
26.    }
27.    }
If the DD contains a single security constraint associated with MyServlet and its only <http-method> tags and <auth-constraint> tags are:
<http-method>GET</http-method> <http-method>PUT</http-method>
<auth-constrain>Admin</auth-constrain>
Which four requests would be allowed by the container? (Choose four)
 

Option A

A.    A user whose role is Admin can perform a PUT.
 

Option B

B.    A user whose role is Admin can perform a GET.
 

Option C

C.    A user whose role is Admin can perform a POST.
 

Option D

D.    A user whose role is Member can perform a PUT.
 

Option E

E.    A user whose role is Member can perform a POST.
 

Option F

F. A user whose role is Member can perform a GET.
 

Correct Answer A,B,C,E
Explanation

Send email to admin@getfreedumps for new dumps request!!!