Hi Everyone,
I am preparing for IBM 287 exam. I am going to take the exam on 1st of March.
I have gone through previous threads to find out the pre assessment questions. But After going through those threads, I am not able to understand some of the answers.
I wanted to post some questions and discuss the correct answers for those quesions.I feel that it would be good Idea,if every one preparing for this exam come forward, so that everyone can benifit.
Thanks in Advance.
Here are the Questions:
5. Given the design goal of having an application be as robust as possible, which techniques should the developer AVOID in the design?
A. Use persistent HttpSessions to manage application state data.
B. Use stateful session EJBs to manage application state data.
C. Make references to node-specific resources.
D. Make all resource references via
java:comp/env JNDI references.
ANS:- B,C
Why is answer B wrong?
First of all I don't understand what does PersistanceHttpSessions mean?
Does it mean that HttpSessions saves data in to a Database
and what does Option C mean? Make references to node-specific resources.
11. A typical use of ejbHome and ejbSelect method would be?
A. use ejbSelect methods within ejbHome methods to return entities
B. use ejbSelect methods to access fields of a bean instance
C. use ejbHome methods to perform operation not specific to a entity instance
D. Use ejbHome methods to initialize entity bean instance variables
ANS :- B,C
I feel that answers A,C are correct.. Can Any one explain why A is not correct?
Select 2 answers.
20. Upon startup, a web application reads global information from a database into an object of type com.ibm.ApplicationInfo and adds this object to the
servlet context. Which of the following tags allows for accessing this information from a
JSP page?
A. <jsp:useBean id="appinfo" class="com.ibm.ApplicationInfo" />
B. <jsp:useBean id="appinfo" class="com.ibm.ApplicationInfo" scope="config"/>
C. <jsp:useBean id="appinfo" class="com.ibm.ApplicationInfo" scope="context"/>
D. <jsp:useBean id="appinfo" scope="application" class="com.ibm.ApplicationInfo"/>
ANS :-d
I have a doubt here. Is not the order in which this expression comes is not important
ie <jsp:useBean id class type scope /> . This order is not important?
23. Deployment descriptorSession
bean White: security-identity use-caller-id
entitySession bean Black: security-identity run-as roleC
Entity bean Blue: nothing specified
Entity bean Yellow: nothing specified
Entity bean Green: nothing specified
Assembly-descriptor
security-role roleA
security-role roleB
security-role roleC
method-permission
roleA White <method-name>*</method-name>
Blue <method-name>*</method-name>
Yellow <method-name>*</method-name>
roleB White <method-name>*</method-name>
Black <method-name>*</method-name>
Yellow <method-name>*</method-name>
roleC Blue <method-name>*</method-name>
Green <method-name>*</method-name>
Which of the following statements are TRUE regarding this deployment descriptor?
A. A client under the identity of roleA can invoke Blue and Yellow through White.
B. A client under the identity of roleA can invoke Blue and Yellow through Black.
C. A client under the identity of roleB can invoke Yellow and Green through White.
D. A client under the identity of roleB can invoke Blue and Green through Black.
E. A client under the identity of roleB can invoke Yellow and Green through Black.
ANS :-b,d
Select 2 answers.
I feel that answers A and D are correct. Can any one explain why B is Correct
25. A JSP is displaying data from a JavaBean accessed through a <jsp:useBean> tag. It is an error condition if the JavaBean is not found in the request scope at runtime. What should the JSP developer do to ensure correct behavior?
A. Specify the real JavaBean's Java type as the value for only the class attribute of the jsp:useBean tag.
B. Specify the JavaBean's Java type as the value for only the type attribute of the jsp:useBean tag.
C. Add an isErrorPage specification in a JSP page directive.
D. Add an errorPage specification in a JSP page directive.
ANS :-a,d
Select 2 answers.
I feel that answers C, D are correct. If the java bean is not found in the request scope then it is better to add isErrorPage and errorpage attributes in the page directives of the jsp page.