OCEA仿真试题

KillFail      质量高质量高  服务好服务好
www.killfail
更新到考完并且通过为止
宜昌人事局
Q1. What are the three primary roles in a web service interaction? (Choose three.)
A. Broker
B. Facade
C. Provider
D. Decorator
E. Requestor
F. Interceptor
Answer: A,C,E
Q2. A stock trading company is writing a new application for stock market forecasting. A significant
portion of the work required by the business logic involves navigating through the persistent
object model. As lead architect on this project, you have chosen JPA over EJB2 entity beans to
implement these persistent objects. You have done this to maximize performance when
navigating through the model. Why does JPA offer better performance for this task?
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
Q3. A developer creates a Java web service to be used by consumers in an SOA. This SOA uses a
UDDI service registry. How can the developer make the new service available to consumers?
A. Deploy to the registry using JAXR
B. Publish to the registry using JAXR
C. Query the registry using JAX-RPC
D. Target the registry using JAX-RPC
Answer: B
Q4. With the release of a new product line, there has been a significant increase in the volume of transactions on your web site. You need to scale your application and manage session failover.
What is the best option for scalability?
A. Add additional web servers and application servers
B. Introduce a High Availability pair and utilize sticky sessions
C. Add additional application servers and implement DNS round robin
D. Add additional application servers and use clustered HttpSession
Answer: D
Q5. You are asked to architect an SOA solution that leverages Java web services. The architecture needs to be flexible and allow for the SOAP 1.1, SOAP 1.2, and REST implementations. Which Java
EE technology should you use?
A. JAXP
B. JAXB
C. JAX-WS
D. JAX-RPC
Answer: C
Q6. 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. JNDI
B. JMS
C. JAX-WS
D. RMI-IIOP
Answer: B
Q7. An online sporting goods store's web application uses HTTPSession to store shopping carts.
When the application 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 plan calls 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: B,C
Q8. 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 the search, and displays them in a formatted HTML page. Which technologies would you use for this application?
A. JSP and JAXB
B. JSF and JAXR
C. JSF and JAX-WS
D. JSP and JAX-WS
Answer: B
Q9. 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 one call. Its system does not store this information but sends individual calls to each of the primary vendors for an asset and then aggregates the response to the
requester. The company has committed to support a non-functional requirement (NFR) for
PKPM下节点performance that states it must process all requests within three seconds and each of the three vendors is obligated to support the NFR as dictated by the company. Where, in the message
flow, is it appropriate to measure whether all the NFRs are met?
A. when a request is received and a response is sent to the requester
B. when a request is received, first call to vendor, last response from vendors, response is sent to a requester
C. when a requester sends a request, the request is received, each call to vendor, each response from vendor, requester receives response
D. when a request is received, each call to vendor, each response from a vendor, a response is sent to a requester Answer: D
Q10. A Java web component, EJB component, or another web service can be a client to a web service. Which Java API can the client use to access the web service through a Service Endpoint
Interface?
A. JAXB
B. JAXR
C. JDBC
D. JAX-WS
Answer: D
Q11. Which three are parts of a SOAP message? (Choose three.)
A. SOAP body
B. SOAP endpoint
C. SOAP headers
D. SOAP handlers
E. SOAP attachments
Answer: A,C,E
Q12. You are integrating with a single legacy Enterprise Information System. You are interested in th
e transaction management capabilities of the Java Connector Architecture. This new system needs the capability to invoke multiple 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 transaction
B. Local transaction
C. Distributed transaction
D. Container Managed transaction
Answer: B
Q13. What is an advantage of XML over HTTP, as compared to SOAP over HTTP, for web services?
A. Guaranteed delivery
B. More security options
C. Smaller message size
D. Strongly typed parameters
Answer: C
Q14. An application needs to invoke a service on a remote system over a low latency connection, and then wait for a
response. Which two are best for this type of invocation? (Choose two.)
A. JMS topic
B. JMS queue
C. RMI over IIOP
D. synchronous web service
E. asynchronous web service
Answer: C,D
Q15.
Your new architecture needs to access the business logic of an Enterprise Information Solution (EIS). What are three benefits of using the Java Connector Architecture to connect to EIS instead of implementing a proprietary solution? (Choose three.)
A. Security
B. Performance
C. Loose coupling
D. Connection pooling
E. Common Client Interface
Answer: A,D,E
Q16. Your web application requires access to several different services, so you created a Service Locator class to be used 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 of this class is being created in every backing bean
method that requires a service. Which pattern should you apply to eliminate this problem?
A. Bridge
B. Singleton
C. Prototype
D. Factory Method
E. Business Delegate
Answer: B
Q17. What are two benefits of using the Value List Handler pattern? (Choose two.)
A. Improves network performance
B. Facilitates exposing existing services
C. Provides an alternative to potentially inefficient EJB finders
D. Facilitates post-processing across heterogeneous requests
E. Provides a mechanism to support shared elements of composite views
Answer: A,C
Q18.
What are two capabilities of the Abstract Factory pattern? (Choose two.)
A. Creates whole-part hierarchies
B. Creates families of related objects
C. Enforces dependencies between concrete classes
D. Specifies the types of objects to create using a sample instance
E. Separates the construction of a complex object from its representation
Answer: B,C
Q19. A teenage fashion web site, includes a set of pages for displaying and browsing their catalog, as well as pages for making fashion suggestions that also display tables of catalog entries.
Currently, the JSP code uses scriptlets that perform database SELECT statements and format the results in HTML tables. You have been hired to help reduce the maintenance overhead when either the look is modified or the database schema changes. Which two patterns, used together, do you apply to reduce this maintenance overhead? (Choose two.)
A. View Helper
B. Front Controller
C. Composite View
D. Data Access Object
Answer: A,D
Q20. 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. Strategy
B. Front Controller
C. Abstract Factory
D. Intercepting Filter
E. Model View Controller
Answer: D
Q21. Which two are benefits of using the Intercepting Filter pattern? (Choose two.)
A. Allows the recombination of filters
B. Provides efficient data sharing between filters
C. Facilitates creating a generic command interface
D. Facilitates common processing across heterogeneous requests
E. Helps to minimize coupling between the presentation and business tiers
Answer: A,D
Q22. You are building a subsystem that has several complex components, but you want to hide that complexity from the client code. Which pattern can you apply to hide this complexity?
A. Proxy
B. Bridge
C. Adaptor
D. Facade
E. Decorator
Answer: D
Q23. Some media players use a virtual proxy for image loading. What is the benefit of using a virtual proxy?
A. It controls access to the original object.
B. It defers creation of expensive objects until necessary.
C. It provides a local representation for an object in a different address space.互教通
D. It is a replacement for a bare pointer that performs additional actions when an object is accessed.
Answer: B

本文发布于:2024-09-21 16:43:41,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/647909.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:空间   高质量   考完   宜昌
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议