• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Mock Question

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Source from certmagic.com MOck test.

Which statement is true about web container session management?

A. Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
B. To activate URL rewriting, the developer must use the HttpServlet Response.setURLRewriting method.
C. If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
D. The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.


Please answer this this question
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Option C
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Deepa raj, Your helping so much.

Can you tell me the meaning of that statement.
 
Greenhorn
Posts: 26
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A. Access to session-scoped attributes is guaranteed to be thread-safe by the web container. - wrong answer because session attributes also needs to be synchronized if they are to be used by the same user trying to login from the two browser screens.

B. To activate URL rewriting, the developer must use the HttpServlet Response.setURLRewriting method. - wrong answer - no such method exists

C. If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client. - Correct answer- This means that when the client sends the request via a secured protcol 301 , ie., http over secured SSL layer, the container may use the username,password in this request header ,because HTTPS guarantees integrity(data is not changed when transmitted) and here you should see the word " MAY" which they are using that means if there is any secured data ,then we can use it..else nothing wrong in it.

D. The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session. - wrong answer ,cokkies are not permanent in the client side. client can disable cookies and delete cookies even if the container stores them.
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Baddy Davay !!! ( I also got confused about C option correctness , though A,B,D were wrong for sure. )
reply
    Bookmark Topic Watch Topic
  • New Topic