SUN Sun Certified Web Component Developer for J2EE 5 認定 310-083 試験問題:
1. The Squeaky Beans Inc. shopping application was initially developed for a non-distributed environment. The company recently purchased the Acme Application Server, which supports distributed HttpSession objects. When deploying the application to the server, the deployer marks it as distributable in the web application deployment descriptor to take advantage of this feature.
Given this scenario, which two must be true? (Choose two.)
A) The J2EE web container must use the native JVM Serialization mechanism for distributing HttpSession objects.
B) The J2EE web container must support migration of objects that implement Serializable.
C) Storing references to Enterprise JavaBeans components in the HttpSession object might
NOT be supported by J2EE web containers.
D) As per the specification, the J2EE web container ensures that distributed HttpSession objects will be stored in a database.
2. A developer for the company web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?
A) The developer must provide an alternate mechanism for managing sessions and abandon the HttpSession mechanism entirely.
B) The developer must ensure that every URL is properly encoded using the appropriate
URL rewriting APIs.
C) The developer can ignore this issue. Web containers are required to support automatic
URL rewriting when cookies are not supported.
D) The developer must add the string id=<sessionid> to the end of every URL to ensure that the conversation with the browser can continue.
3. 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);
1 1. c.setSecure(true);
1 2. c.setMaxAge(10368000);
1 3. response.addCookie(c);
B) 10. Cookie c = new Cookie("creditCard", usersCard);
1 1. c.setSecure(true);
1 2. c.setAge(10368000);
1 3. response.setCookie(c);
C) 10. Cookie c = new Cookie("creditCard", usersCard);
11. c.setHttps(true);
12. c.setAge(10368000);
13. response.addCookie(c);
D) 10. Cookie c = new Cookie("creditCard", usersCard);
1 1. c.setHttps(true);
1 2. c.setMaxAge(10368000);
1 3. response.setCookie(c);
E) 10. Cookie c = new Cookie("creditCard", usersCard);
1 1. c.setSecure(true);
1 2. c.setAge(10368000);
1 3. response.addCookie(c);
4. A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner. Which two can support this design goal? (Choose two.)
A) Store the data in the ServletContext object.
B) Store the data in an instance variable.
C) Store the data in the ServletRequest object.
D) Store the data in a local variable.
E) Store the data in the HttpSession object.
5. Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all of the JSP files specified in the requests below exist in the locations specified. Which two requests, issued from a browser, will return an HTTP 404 error?
(Choose two.)
A) http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp
B) http://www.example.com/SCWCDtestApp/META-INF/test.jsp
C) http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp
D) http://www.example.com/SCWCDtestApp/test.jsp
E) http://www.example.com/SCWCDtestApp/Customer/test.jsp
F) http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp
質問と回答:
| 質問 # 1 正解: B、C | 質問 # 2 正解: B | 質問 # 3 正解: A | 質問 # 4 正解: C、D | 質問 # 5 正解: B、F |














1030 お客様のコメント
品質保証JPexamはIT認定試験のシラバスに従って、試験問題の範囲を正確に絞って、的中率が99%の最新問題集を捧げます。
1年間の無料更新サービスJPexamは1年以内に問題集の無料更新サービスを提供し、お客様がいつでも最新版の問題集を持つことを保証いたします。もし試験の内容が変更されたら、弊社は直ちにお客様にお知らせします。それに、弊社の問題集が更新されたら、早速メールで最新バージョンを送付いたします。
全額返金JPexamの問題集を利用すると、短時間で勉強しても試験に合格できるのを保証いたします。試験に不合格になってしまった場合、弊社は全額返金いたします。(
ご購入前のお試しJPexamは問題集のサンプルを無料で提供いたします。ご購入前にサンプルを試用して製品の品質を確認することができます。ご遠慮なく利用してください。
