aspose file tools*
The moose likes Websphere and the fly likes Test 488 questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Test 488 questions" Watch "Test 488 questions" New topic
Author

Test 488 questions

Tian Shan
Greenhorn

Joined: Nov 14, 2001
Posts: 3
Hi,
I am preparing for exam 488, IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms, V4 Test right and have taken the pre-assessment exam a couple of times. I found the exam very hard since I haven't been able to scored over 60% yet.
Anyway, I have a list of questions I have no idea what the answers to them are. I am wondering if someone could help me to understand these questions better and possibly give me hints or answers. Thanks a lot in advance.

5) On a project, web client requests are serviced by a servlet controller that uses the Command pattern. The request is forwarded from Command classes to JSPs which respond with XML. Given this architecture, the BEST way to work with EJBs is to have the:
a) Command classes retrieve the required data from the EJBs, passing the data to the JSPs.

b) Command classes retrieve the required data from the EJBs, passing the data to the JSPs as an XML file.

c) JSPs retrieve the required data from the EJBs.
One answer, not sure about a or b.
7) A client invokes the create() method on an CMP entity bean. Which of the following is a correct sequence in which the operations mentioned below are performed?
a. Container creates an EJBObject.
b. EJB home object invokes ejbCreate() on Bean instance.
c. Bean instance is associated with EJBObject.
d. Container creates new bean instance.
e. Container calls setEntityContext() on bean instance.
f. Container creates the bean representation in a database.
g. ejbPostCreate() method is invoked on bean instance.
a) b -> f -> a -> c -> g
b) b -> a -> f -> c -> e -> g
c) a -> d -> c -> b -> e -> g -> f
d) a -> d -> c -> b -> f -> g -> e
e) a -> c -> e -> b -> f -> g

Single Select - Please select the best answer (one and only one choice must be selected).
I am leaning toward e.

22) The Customer EJB retrieving customer information from a database is to be displayed in a JSP. In order for the EJB provider to make the information from the Customer EJB available to the application assembler, the BEST approach is to provide the application assembler with a:

a) Wrapper object delegating all method calls to the remote Entity bean. The wrapper object provides access to only the getter methods defined in the Entity bean.

b) Jar file containing the Customer bean's stubs, remote and home interface.

c) Wrapper object delegating all method calls to the remote Entity bean. The wrapper object provides access to the bean's getter and setter methods.

d) Wrapper object acting as a local attribute cache for the remote Entity bean. The wrapper object provides access to the bean's getter methods.

Single Select - Please select the best answer (one and only one choice must be selected).
I like d.

24) A DataSource named "MyDatasource" has been created and configured (in WebSphere Application Server, Advanced Single Server Edition) to have an "idle timeout" of 30 and a "minimum pool size" of 10. If a servlet acquires a connection from that DataSource, and the servlet holds the connection for 2 minutes without using it, which statement is TRUE?

a) The servlet's connection will be unaffected by the idle timeout.

b) The pool size will be increased by 10 when some other servlet needs a connection.

c) After 30 seconds, WebSphere can return the connection to the connection pool.

d) The servlet's service() method will throw a javax.sql.PooledConnectionException if the servlet attempts to use its connection.

Single Select - Please select the best answer (one and only one choice must be selected).
c should be correct? A little explanation or pointers to websphere's connection pooling is appreciated here.
26) While testing a Session bean configured with "Bean Managed", a developer discovers that a TransactionRolledBackException is being thrown by a call to a method on an Entity Bean. The Session bean, prior to calling the method, explicitly started the transaction. Possible causes for the exception are that the:

a) entity bean method is throwing a checked exception.

b) entity bean method is throwing an un-checked exception.

c) entity bean is configured with a transaction attribute of "Not Supported".

d) entity bean method is throwing an exception and the entity bean is configured with a transaction attribute of "Requires New"

Multiple Select - Please select all of the correct answers (this question has 2 correct choices).
I am leaning toward a and b, but I am pretty sure it's incorrect.
31) When exporting EJBs from IBM VisualAge for Java for deployment in non-WebSphere EJB servers, the BEST export option to be used is:

a) Deployed Jar

b) EJB 1.1 Jar

c) EJB Jar for CB

d) Client Jar

Single Select - Please select the best answer (one and only one choice must be selected).
I selected b. What is EJB Jar for CB?

36)
When using IBM VisualAge for Java's "Create Enterprise Bean" SmartGuide to generate a CMP EJB, which of the following can be generated for the developer?

a) The Enterprise bean class.

b) The Home and remote interfaces.

c) The Primary Key class.

d) The Finder helper interface.

e) Custom finder methods.

Multiple Select - Please select all of the correct answers (this question has 4 correct choices).
I selected a, b, c, d.

38) The following error message is received in the browser while testing changes to a JSP page within the VisualAge for Java WebSphere Test Environment:
Error 500 An error has occured while processing
request:http://localhost:8080/very_simple.jsp Message: Unable to compile class for JSP:
Unable to import Java Page Compile source code
What is the MOST likely reason for this Error?

a) The project "JSP Page Compile Generated Code" contains the special marker package com.ibm.no.jsp.

b) The project "JSP Page Compile Generated Code" has been versioned.

c) The project "JSP Page Compile Generated Code" does not exist in the VisualAge WebSphere Test Environment.

d) The project "JSP Page Compile Generated Code" is owned by the user USERID and the workspace owner is DEVELOPER.
Single Select - Please select the best answer (one and only one choice must be selected).
b?
39)
There are two web applications which share a set of common classes. The classes are packaged into a separate JAR file. The WAR files representing the two web applications do NOT refer to this common JAR file in their MANIFEST Class-Paths. The WAR files and the JAR file are packaged into an EAR file. In order for the applications to work when deployed in IBM WebSphere, what should the Application Server's "Module Visibility" attribute be set to?
a) SERVLET ENGINE

b) SERVER

c) MODULE

d) APPLICATION

Multiple Select - Please select all of the correct answers (this question has 2 correct choices).
I am sure about d. What about c?

40) When an Web module (WAR file) accesses an EJB module, what is the BEST way for a Web module to reference the EJB interfaces and client stubs?

a) Package the EJB interfaces and client stubs into a separate EJB Client JAR file and specify this JAR file in the MANIFEST Class-path of the Web module.

b) Specify the EJB JAR file in the MANIFEST Class-path of the Web module.

c) Package the EJB interfaces and client stubs into the Web module.

d) Package the EJB and Web modules into an EAR file and specify EJB jar in the Class-path property of the EAR deployment descriptor.

Single Select - Please select the best answer (one and only one choice must be selected).
a or d? Leaning toward a now, but selected d during exams.

42) A B2B application employs Servlets, JSPs, HTML pages, images, EJBs and Java classes. These Java classes are common to both Servlets and EJBs. What is the BEST way to package these components into J2EE modules?

a) Package the Servlets and JSPs into a WAR file, the Enterprise Beans into an EJB jar and the Java classes in a separate JAR. After which package these archives along with the JSPs, HTML pages and images into an EAR file.

b) Package the Servlets, HTML pages, images and JSPs into a WAR file, the Enterprise Beans into an EJB jar and the Java classes in a separate JAR. After which package these archives into an EAR file.

c) Package the Servlets, Java Classes, HTML pages, images and JSPs into a WAR file, the Enterprise Beans and the Java classes into an EJB jar. After which package these archives into an EAR file.

d) Package the Servlets and JSPs into a WAR file, the Enterprise Beans into an EJB jar and the Java classes in a separate JAR. Publish the JSPs, HTML pages and images to the Web Server document root and package the Java archives into an EAR file.

Single Select - Please select the best answer (one and only one choice must be selected).
a or d?

49) For a business operation, a complex set of data is returned. The data is a subset of the data associated with an Entity bean. Much of the data needs to be presented back to the client through a JavaServer Page. What is the BEST technique to deliver the data back to the JSP?

a) Create a JavaBean Wrapper access bean to access the Entity EJB.

b) Create a Value Object (JavaBean) specific to request, copying data from the EJB on construction.

c) Create a Value Object (JavaBean) which represents complete persistent object, copying data from the EJB on construction.

d) Create a copy Helper access bean to access the Entity EJB.

e) Hand off a reference to the Entity bean directly to the JSP.

Single Select - Please select the best answer (one and only one choice must be selected).
c?
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
7) A client invokes the create() method on an CMP entity bean. Which of the following is a correct sequence in which the operations mentioned below are performed?
a. Container creates an EJBObject.
b. EJB home object invokes ejbCreate() on Bean instance.
c. Bean instance is associated with EJBObject.
d. Container creates new bean instance.
e. Container calls setEntityContext() on bean instance.
f. Container creates the bean representation in a database.
g. ejbPostCreate() method is invoked on bean instance.
a) b -> f -> a -> c -> g
b) b -> a -> f -> c -> e -> g
c) a -> d -> c -> b -> e -> g -> f
d) a -> d -> c -> b -> f -> g -> e
e) a -> c -> e -> b -> f -> g
The answer for this is definetly a
------------------

Mahindrakar
IBM Application Server Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
Tian Shan
Greenhorn

Joined: Nov 14, 2001
Posts: 3
Thanks Rahul. Regarding answer a, what about the step e? It must be called by the container, right?
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
About Step e which states
Container calls setEntityContext() on bean instance.
It is based on this that I decided a because the container calls this method before calling create on a bean. Just check up the lifecycle of the bean diagram in the EJB specs and you will know.
Rahul
Kavita Saluja
Greenhorn

Joined: Jun 05, 2001
Posts: 19
Hi Tian,
Can you send me your mail id. I will like to discuss all the questions of Test 488. We can do that 10 questions a mail. If interested please reply back.
Thanks
kavita saluja
kavita_kavita_kavita@yahoo.com
Tian Shan
Greenhorn

Joined: Nov 14, 2001
Posts: 3
Kavita,
You can reach me at tianshan_us@yahoo.com. Thanks!
Originally posted by Kavita Saluja:
Hi Tian,
Can you send me your mail id. I will like to discuss all the questions of Test 488. We can do that 10 questions a mail. If interested please reply back.
Thanks
kavita saluja
kavita_kavita_kavita@yahoo.com

faisal mahmood
Ranch Hand

Joined: Nov 30, 2000
Posts: 349
I am not sure if posting the questions here is LEGAL and helps in cheating in the IBM's special promotion since they don't seem to have a large pool of questions.

I can easily get 100% in the mock test. I am planning to sit for the actual ver 4.0 test sometime in mid December.

Faisal Mahmood
Sun/iPlanet Moderator
Certified SCJP2, SCWCD, SCEA (part 1), IBM OOAD with UML and Websphere 3

[This message has been edited by faisal mahmood (edited November 24, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test 488 questions