310-084 SCWCD Braindump
ExamSoon 310-084 Exams
SUN Sun Certified Web Component Developer for Java. EE 5 Upgrade
O rder : 310-084 Exam
Practice Exam: 310-084
Exam Number/Code: 310-084
Exam Name: Sun Certified Web Component Developer for Java. EE 5 Upgrade
Questions and Answers: 119 Q&As
Free 310-084 Braindumps
Exam : SUN 310-084
Title : Sun Certified Web Component Developer for Java. EE 5 Upgrade
1. Your company has a corporate policy that prohibits storing a customer's credit card number in any corporate
database. However, users have complained that they do NOT want to re-enter their credit card number for each
transaction. Your management has decided to use client-side cookies to record the user's credit card number for 120
days. Furthermore, they also want to protect this information during transit from the web browser to the web container;
so the cookie must only be transmitted over HTTPS.
Which code snippet creates the "creditCard" cookie and adds it to the out going response to be stored on the user's
web browser?
A. 10. Cookie c = new Cookie("creditCard", usersCard);
11. c.setSecure(true);
12. c.setAge(10368000);
13. response.addCookie(c);
B. 10. Cookie c = new Cookie("creditCard", usersCard);
11. c.setHttps(true);
12. c.setMaxAge(10368000);
13. response.setCookie(c);
C. 10. Cookie c = new Cookie("creditCard", usersCard);
11. c.setSecure(true);
12. c.setMaxAge(10368000);
13. response.addCookie(c);
D. 10. Cookie c = new Cookie("creditCard", usersCard);
11. c.setHttps(true);
12. c.setAge(10368000);
13. response.addCookie(c);
E. 10. Cookie c = new Cookie("creditCard", usersCard);
11. c.setSecure(true);
12. c.setAge(10368000);
13. response.setCookie(c);
Answer: C
2. Which two are valid values for the <transport-guarantee> element inside a <security-constraint> element of a web
application deployment descriptor? (Choose two.)
A. NULL
B. SECURE
C. INTEGRAL
D. ENCRYPTED
E. CONFIDENTIAL
Answer: CD
3. c.setAge(10368000);
13. response.addCookie(c);
B. 10. Cookie c = new Cookie("creditCa