Question # 1
You are the architect atACME, a large global retailer of festival and holiday accessories. ACME wants to launch a new shopping portal for the holiday shopping session, allowing two months from project inception to going live. The portal must containin-house and thirdparty stockto attack customers.Fast response times arealso critical so users remain engaged and sticky to the portal.What would you recommend to the ACME project team to deliver this project?
A. Access as much content with bulk-loading as possible; use JSONP to access the
B. Access all content regardless of source using the HTML 5 XML parsing capabilities of the browser
C. Access all third party content using JSON to dynamically load it from the browser.
Question # 2
The integration team has reported a problem in testing a few deployedMDBs. By design, each MDB listens to one of four named queues. Two producers write messages to each queue. The test issues messages of the same payload type that each producer will send, but varies the number or size of these messages to measure the messaging server’s performance.The team has noticed that the utilization remains at the same high rate any time the test writes messages destined for thethird MDB. The message server log does not reveal any failure in sending messages to this MDB. Which anticipation expresses cause for this condition?
A. Hot Potato
B. Leaky Abstraction
C. Cache less Cow
D. Golden Hammer
Question # 3
Which two measures are most effective in protecting websites from cross site scripting (XSS)attacks?
C. Ensure that thesession cookie is sent only onHTTPSconnections.
D. Treat all user-supplied input as unsafe, and white list known good characters
E. Execute all user-supplied scripts in aserver-side sandbox.
Question # 4
A company must honor a service-level agreement (SLA) for its application, which states all database requests must execute within three seconds.Users complain that some requests take longer than five seconds to complete. You have been contracted to fix the problem.Which course of action do you recommend?
A. Modify the program to implement multi threading and an event-driven design.
B. Add servers to distribute the load
B. Add servers to distribute the load. C. Upgrade the application server and the operating system.
D. Define a plan for isolating the bottleneck, and define indicators that will measure performance under a test load.
Question # 5
Whichare theobjectivesof theStrategy pattern?(Choose Two)
A. To define an object that encapsulates how a set of objects interacts
B. To define the skeleton of an algorithm, deferring some steps to subclasses
C. To decouple an abstraction horn its implementation so that the two can vary independently
D. To define a family of algorithms, encapsulate each one, and make them interchangeable
E. To allow subclasses to redefine certain steps of an algorithm without changing the algorithm's structure
Question # 6
Which two statements are true about thetimer serviceof a business component container?
A. Timed notifications for all types of session beans can be scheduled by using this
B. When the server is shut down,the timer is persisted automatically and becomes active again when the server is restarted.
C. Each instance of messagedriven beans has unique timers.
D. When stateful session bean instance is removed, the container detaches the timers associated with the instance and allocates them to the new instance.
E. When a transaction is rolled back, the timer creation within the transaction is also rolled back.