显示标签为“Pass4side SUN 310-052 考试题库”的博文。显示所有博文
显示标签为“Pass4side SUN 310-052 考试题库”的博文。显示所有博文

2008年9月15日星期一

Pass4side SUN 310-052考试题库分享(16-20)

16. Your web application requires access to several different services, so you created a Service Locator class to beused by the UI developers on the team. New services with different interfaces are occasionally added.Unfortunately, the caching benefits of the Service Locator class are NOT being realized because a new instance ofthis class is being created in every backing bean method that requires a service. Which pattern should you apply toeliminate this problem?A. BridgeB. SingletonC. PrototypeD. Factory MethodE. Business DelegateAnswer: B
17. What are two benefits of using the Value List Handler pattern? (Choose two.)A. improves network performanceB. facilitates exposing existing servicesC. provides an alternative to potentially inefficient EJB findersD. facilitates post-processing across heterogeneous requestsE. provides a mechanism to support shared elements of composite viewsAnswer: AC
18. What are two capabilities of the Abstract Factory pattern? (Choose two.)A. creates whole-part hierarchiesB. creates families of related objectsC. enforces dependencies between concrete classesD. specifies the types of objects to create using a sample instanceE. separates the construction of a complex object from its representationAnswer: BC
19. A teenage fashion web site, includes a set of pages for displaying and browsing their catalog, as well as pagesfor making fashion suggestions that also display tables of catalog entries. Currently, the JSP code uses scriptletsthat perform database SELECT statements and format the results in HTML tables. You have been hired to helpreduce the maintenance overhead when either the look is modified or the database schema changes. Which twopatterns, used together, do you apply to reduce this maintenance overhead? (Choose two.)A. View HelperB. Front ControllerC. Composite ViewD. Data Access ObjectAnswer: AD
20. A new security feature has been requested for an existing web application with the following requirements:All requests must be logged to a secure database.Each request must be time-stamped with the start and completion times.Each request must contain the IP address of the client that made the request.Which pattern is most applicable for this new feature?A. StrategyB. Front ControllerC. Abstract FactoryD. Intercepting FilterE. Model View ControllerAnswer: D
更多最新考试信息可登陆www.pass4side.cn网站查看!本文考试题库摘自pass4side.cn 更新时间:2008-9-11

Pass4side SUN 310-052考试题库分享(11-15)

11. Which three are parts of a SOAP message? (Choose three.)A. SOAP bodyB. SOAP endpointC. SOAP headersD. SOAP handlersE. SOAP attachmentsAnswer: ACE
12. You are integrating with a single legacy Enterprise Information System. You are interested in the transactionmanagement capabilities of the Java Connector Architecture. This new system needs the capability to invokemultiple operations against this single legacy system. These operations succeed together or fail together as a group.To which minimum level of transaction management are you going to set your resource adapter?A. No transactionB. Local transactionC. Distributed transactionD. Container Managed transactionAnswer: B
13. What is an advantage of XML over HTTP, as compared to SOAP over HTTP, for web services?A. guaranteed deliveryB. more security optionsC. smaller message sizeD. strongly typed parametersAnswer: C
14. An application needs to invoke a service on a remote system over a low latency connection, and then wait fora response. Which two are best for this type of invocation? (Choose two.)A. JMS topicB. JMS queueC. RMI over IIOPD. synchronous web serviceE. asynchronous web serviceAnswer: CD
15. Your new architecture needs to access the business logic of an Enterprise Information Solution (EIS). What arethree benefits of using the Java Connector Architecture to connect to EIS instead of implementing a proprietarysolution? (Choose three.)A. securityB. performanceC. loose couplingD. connection poolingE. Common Client InterfaceAnswer: ADE
更多最新考试信息可登陆www.pass4side.cn网站查看!本文考试题库摘自pass4side.cn 更新时间:2008-9-11

Pass4side SUN 310-052考试题库分享(6-10)

6. You are architecting an online ordering application with these requirements:Users access the system over the Internet using HTML.An email message is sent to the user confirming the order.Users must log in and are validated using LDAP.The product catalog is stored in a relational database.All orders are logged to the internal fulfillment system.Orders must not be lost.Which Java EE technology should be used to send orders to the fulfillment system?A. JNDIB. JMSC. JAX-WSD. RMI-IIOPAnswer: B
7. An online sporting goods store’s web application uses HTTPSession to store shopping carts. When theapplication is initially deployed, the business plan predicts only a few customers will access the site. Over time,the store projects a steady increase in volume.The deployment plan calls for a single web container in the initial deployment. As demand increases, the plancalls for multiple web containers on separate hardware with clustered HTTPSession objects.Which two principles will help the application meet the requirements and optimize performance? (Choose two.)A. The application should store as much as possible in HTTPSession objects.B. The application should NOT make frequent updates to HTTPSession objects.C. The application should make coarse-grained updates to HTTPSession objects.D. The application should create new HTTPSession objects instead of updating existing objects.Answer: BC
8. You are writing a utility that searches for existing web services provided by large companies through UDDI.Your web site allows the user to input search criteria using event-driven, state-managed GUI screens, performs thesearch, and displays them in a formatted HTML page. Which technologies would you use for this application?A. JSP and JAXBB. JSF and JAXRC. JSF and JAX-WSD. JSP and JAX-WSAnswer: B
9. A company has a web service that provides the most recent price for stocks, mutual funds, and commodities.The company has the only web service that allows a person to check prices on all three financial assets with onecall. Its system does not store this information but sends individual calls to each of the primary vendors for anasset and then aggregates the response to the requester. The company has committed to support a non-functionalrequirement (NFR) for performance that states it must process all requests within three seconds and each of thethree vendors is obligated to support the NFR as dictated by the company. Where, in the message flow, is itappropriate to measure whether all the NFRs are met?A. when a request is received and a response is sent to the requesterB. when a request is received, first call to vendor, last response from vendors, response is sent to a requesterC. when a requester sends a request, the request is received, each call to vendor, each response from vendor,requester receives responseD. when a request is received, each call to vendor, each response from a vendor, a response is sent to a requesterAnswer: D
10. A Java web component, EJB component, or another web service can be a client to a web service. Which JavaAPI can the client use to access the web service through a Service Endpoint Interface?A. JAXBB. JAXRC. JDBCD. JAX-WSAnswer: D
更多最新考试信息可登陆www.pass4side.cn网站查看!本文考试题库摘自pass4side.cn 更新时间:2008-9-11

Pass4side SUN 310-052考试题库分享(1-5)

1. What are the three primary roles in a web service interaction? (Choose three.)A. BrokerB. FacadeC. ProviderD. DecoratorE. RequestorF. InterceptorAnswer: ACE
更多最新考试信息可登陆www.pass4side.cn网站查看!本文考试题库摘自pass4side.cn 更新时间:2008-9-11
2. A stock trading company is writing a new application for stock market forecasting. A significant portion of thework required by the business logic involves navigating through the persistent object model. As lead architect onthis project, you have chosen JPA over EJB2 entity beans to implement these persistent objects. You have donethis to maximize performance when navigating through the model. Why does JPA offer better performance for thistask?A. JPA guarantees referential integrity at the object level.B. JPA allows the application to specify lazy or eager retrievals.C. JPA simplifies the source code that implements the object model.D. The guaranteed referential integrity in EJB2 entity beans is expensive.Answer: B
3. A developer creates a Java web service to be used by consumers in an SOA. This SOA uses a UDDI serviceregistry. How can the developer make the new service available to consumers?A. deploy to the registry using JAXRB. publish to the registry using JAXRC. query the registry using JAX-RPCD. target the registry using JAX-RPCAnswer: B
4. With the release of a new product line, there has been a significant increase in the volume of transactions onyour web site. You need to scale your application and manage session failover. What is the best option forscalability?A. add additional web servers and application serversB. introduce a High Availability pair and utilize sticky sessionsC. add additional application servers and implement DNS round robinD. add additional application servers and use clustered HttpSessionAnswer: D
5. You are asked to architect an SOA solution that leverages Java web services. The architecture needs to beflexible and allow for the SOAP 1.1, SOAP 1.2, and REST implementations. Which Java EE technology shouldyou use?A. JAXPB. JAXBC. JAX-WSD. JAX-RPCAnswer: C
更多最新考试信息可登陆www.pass4side.cn网站查看!本文考试题库摘自pass4side.cn 更新时间:2008-9-11