Autor Thema: ibm 484 (Thread ist kurzzeitig nach Oregon ausgewandert, kommt aber wieder)  (Gelesen 5586 mal)

Offline Axel_Janssen

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 769
Thread ist in Oregon:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=61&t=000563
 ;D

ibm hat seit dem 3.6.2003 ein freies voucherprogramm für 484.

(j2ee1.3). Sorry ich habs nicht früher gesehen.  ::)

leider zu spät gesehen. Bereits am 6. Juni waren die 100 Voucher ausgegeben.
 :o
http://www-1.ibm.com/certify/news/20030606.shtml

Egal. Zumindest haben wir nun hier die Testfragen sowie 70% korrekte Antworten für eine zentrale J2EE-Zertifizierung von IBM.



http://www-1.ibm.com/certify/news/20030527a.shtml

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=61&t=000557

...searching for answers...

Zitat
IBM is announcing a special limited time and quantity "free certification testing offer", available worldwide from June 4, 2003 (12:00 a.m. Eastern Time) to August 30, 2003 (11:59 p.m. Eastern Time) for Test 484.

Test 484 is one of four tests required for the IBM Certified Enterprise Developer - IBM WebSphere Studio V5.0.


ein paar Erläuterungen:
IBM gibt manchmal weltweit Umsonst-Voucher für Zertifizierungen raus. Diesmal für die nicht-Unatraktive J2EE.1.3 Zertifizierung (Problem bei dieser: sie hat eine geringe Haltbarkeit, da irgendwann J2EE1.4 kommt (und zwar in ca 18 Monate oder schneller Rhytmus).

Den Umsonst-Voucher bekommt man, wenn man im ICE-Test einen bestimmten Prozentsatz erreicht (59%, Fragen sind aber echt nicht einfach). Mit der Voucher-Nummer kann man ein Testcenter anrufen und umsonst den Test machen.

IBM sagte 100 Voucher rauszugeben. Es wird aber damit gerechnet, dass die Zahl höher ist. Es ist wohl auch so, dass man in Regionen mit geringerer Voucher-Gier (W-Europa) länger an Voucher kommt als etwa in Karatschi oder Bangalore.

Der Fragen-Pool auf ICE ist sehr klein. Ich habe aber leider keine Internet-Ressourcen gefunden. Und um andere anzuschnorren bin ich zu stolz.
Schliesslich habe ich einen gewissen internationalen Ruf zu verlieren.  8)
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=61&t=000127

Versuche es morgen nochmal.


Ich weiss nicht, ob ich die certi wirklich mache. Aber falls ich den gratis Voucher bekommen. Warum nicht.
Werde jedenfalls das Fragenspiel durchspielen.
« Letzte Änderung: 11.06.03 - 16:39:31 von Axel_Janssen »
... design patterns are abstract designs that help identify the structure and elements involved in a specific design solution. From this, a concrete implementation can be produced.
Kyle Brown

Offline Axel_Janssen

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 769
Re:ibm 484 freie voucher
« Antwort #1 am: 08.06.03 - 23:43:24 »
scheissendreck ich habe versagt.  :-[
fehlten 3 Fragen.

HAA!!! Aber jetzt habe ich bestanden.  ;D  ;D  ;D
Vermutlich zu spät, um den freien voucher zu bekommen. Ich werde berichten...

Der score ist immer noch ziemlich schlecht. Dies ist ein harter Test. Würde ich sagen.... Immer noch 30% der Antworten falsch.
Werde die Antworten irgendwann aufräumen und das Ergebnis vielleicht noch ein bischen hochpuschen (wenn ich Lust habe).


PASSING SCORE: 59% (33 out of 56)   YOUR SCORE: 70% (39 out of 56)   GRADE: Pass
 
 
The following shows the percentage weighting of each section/category and your related score.
          Section / Category         % of Test         Your Score    
                     
     1.    Java 2 Enterprise Edition (J2EE) Architecture         18%         70%    
     2.    Web Component Development         20%         73%    
     3.    Enterprise JavaBean (EJB) Development         27%         80%    
     4.    Client Development         9%         40%    
     5.    Connectivity Services         20%         73%    
     6.    Assembly and Deployment         7%         50%    
                    =========
                    100%


-1-
A Home interface for an EJB supplies a finder that returns a java.util.Collection. What MUST the client code do with elements of the collection to work with each EJB reference?

A.    Each reference needs to be type narrowed.
B.    Each reference needs to be cast to the corresponding local interface.
C.    Each reference needs to be cast to the corresponding remote interface.
D.    Each element is a EJB Handle from which the EJB reference can be obtained.

C  D
Bin mir ziemlich unsicher.
A. sicher nicht.

-2-
A Proxy design pattern is one where a surrogate or placeholder for an object is used to communicate with an object that is not locally available. Which of the following J2EE technologies use proxies that are visible to a developer?
   A.    JNDI
   B.    RMI
   C.    JSP
   D.    EJB


B, D
RMI  stub/skelleton
EJB  benutzt RMI over IIOP local Home Interface und local Interface / Remote Home und RemoteInterface

---

3. As part of an incoming request, a J2EE application needs to be able to asynchronously submit a request to a back-end application. The J2EE application should use:
   A.    an RMI ConnectionFactory.
   B.    a JMS QueueConnectionFactory.
   C.    a message driven bean.
   D.    a BMP entity Bean.
   E.    a JavaMail Session.

C  B
Asynchronously kann eigentlich nur B oder C heissen. C ist – würde ich sagen – dann gegeben, wenn die J2EE-Anwendung Nachrichten aus der back-end Anwendung pullt und nicht pushed.

---

4. Consider the following definition of a Person class:

public class Person extends Object {
    private String name;
   public String getName() {
       return name;
    }
    public String setName(String newName) {
       name = newName;
    }
    public Person() {}
}

An instance of this class is expected to be returned from a remote method invocation in RMI. At runtime, an exception is thrown instead. Why?
   A.    Person does not implement the java.io.Serializable interface.
   B.    Person does not implement the RemotePerson interface.
   C.    The class was not precompiled with rmic.
   D.    The class does not extend java.rmi.server.UnicastRemoteObject.
   E.    The name field is not set in the constructor.

A (sehr sicher)

---
5. An EJB that is deployed with container-managed transaction demarcation has a business method that performs an operation that might throw a checked exception. The bean cannot recover from this checked exception and should rollback. Which implementation accomplishes this with the least amount of code and a maximum of information for the EJB client?
A. public void businessMethod() {
    try {
        // operation throwing SomeCheckedException goes here
    } catch (SomeCheckedException ae) {
        throw new EJBException(ae);
    }
}

B. public void businessMethod() {
    try {
        // operation throwing SomeCheckedException goes here
    } catch (SomeCheckedException ae) {
        context.setRollbackOnly();
        throw new EJBException(ae);
    }
}

C. public void businessMethod() throws EJBException {
    try {
        // operation throwing SomeCheckedException goes here
    } catch (SomeCheckedException ae) {
            throw new EJBException(ae);
     }
}

D. public void businessMethod() throws EJBException {
    try {
        // operation throwing SomeCheckedException goes here
    } catch (SomeCheckedException ae) {
            context.setRollbackOnly();
            throw new EJBException(ae);
    }
}

A.

Ziemlich sicher, Monson Haefel 3, S. 435 f.
EJBException ist eine unchecked Exception (erbt von RuntimeException)

UncheckedException
Core – Java  kein throws nötig
EJB  automatisches Transaction-Rollback durch Container.

---

6. Which of the following represent valid state transitions through an EJB method for a CMP entity Bean, according to its life cycle?

A. "Does Not Exist" to "Pooled" via Class.newInstance() then setEntityContext()
B. "Ready" to "Does Not Exist" via ejbRemove()
C. "Pooled" to "Ready" via ejbCreate() then ejbPostCreate()
D. "Pooled" to "Ready" via ejbFind()


A, C (Bild Monson Haenfel, S. 308) ziemlich sicher.

---

7. Which of the following statements is FALSE for a distributed versus local architecture?
A. A distributed architecture has higher network overhead than a local architecture.
B. A distributed architecture has more scalable potential than a local architecture.
C. A local architecture has more efficient fine-grained access among its components.
D. A local architecture has more potential for higher availability despite hardware failures.


D.

(relativ sicher. A ist nicht false, B ist nicht false (kann clustern, etc), C ist nicht false, D ist false, distributed kann geclustert werden
---

8. An application accepts input from a user and invokes a function on a server. The client knows where the server resides. The client cannot continue processing until the server has returned. Application development productivity is more of a concern than end user application performance. What integration solution BEST fits this situation?
A. RMI
B. JMS
C. JCA
D. EJB

C ist nonsens.
B wäre assynchron. Also explizit nicht „The client cannot continue processing until the server has returned“
A oder D.
Versuchs mit D. Weil laut IBM Applic.-dev Productivity besser ist ejb als mit rmi.

A  D

----

9. Whose responsibility is it for providing an implementation for the home interface of an EJB?
   
A. the application assembler
B. the bean developer
C. the container and its tools
D. the bean deployer

C ?. Bean Developer erstellt interface und Container erstellt die Implementierung.  
Vielleicht auch B. Scheissen-Frage.
---

10. An application requires portable asynchronous messaging support for clients. What technology BEST provides this support?

A. CORBA
B. RMI
C. EJB
D. MDB

D würde ich sagen. Weder RMI noch Entity und Session EJB noch RMI sind asynchron. MDB ist asynchron. Moment MDBs sind doch auch eine Form von EJBs??? Hell. CORBA unterstützt (glaub ich) asynchron/synchron).  

---

11. Which of the following is the BEST mechanism to share objects between cooperating nested custom tags?
   A. Using the PageContext.getAttribute method and retrieve the object.
   B. Using the TagSupport.findAncestorWithClass method.
   C. Using the TagSupport.getParent method.
   D. Using the TagSupport.getSharedValue method.
   E. Using the implicit request or session variable and retrieve the object.

B.
(hab in api nachgeschaut. C, B wäre möglich. Vorteil von B ist wohl das man auch auf granparent-tag zugreifen kann. Deshalb B.
---

12. A container-managed persistence (CMP) bean A has a one-to-many container-managed relationship (CMR) with another container-managed persistence (CMP) bean B. Select the interface that will expose the methods related to this relationship.
A. The local interface of bean A.
B.  The local home interface of bean A.
C. The remote interface of bean A.
D. The home interface of bean A.


Versuche A, nicht klar. Warum nicht A, C
---

13. Which of the following statements does NOT describe the J2EE architecture?
A. Web components provide presentation logic that works well with anonymous clients over the Internet.
B. EJBs provide business logic within the context of transactions and persistence.
C. Web components access EJBs through the same APIs as application clients.
D. Application servers provide the infrastructure for the J2EE architecture.
E. Transactions are initiated by Web components.

E.
Ziemlich sicher


---

14. Given an Order entity EJB and a single class loader, which of the following is a Singleton?
A. OrderHomeRemote
B. OrderBean
C. OrderRemote
D. Order

Nicht klar.
B.

---

15. Which of the following are TRUE regarding BMP entity beans?
A. Persistent fields can be declared private.
B. The ejbFindByPrimaryKey() method returns void.
C. Finder methods are implemented at deployment time.
D. A record should be inserted into the database during ejbCreate().

A, D
Ziemlich sicher, dass B, C nicht stimmt. C wäre CMP entity Beans. B war früher so. Heute ist Rückgabewert PrimaryKey oder Collection.
---

16. Implementing the SingleThreadModel interface:
A. requires all servlet methods be declared as synchronized.
B. guarantees that synchronization problems will never occur.
C. may have a negative impact on performance.
D. prevents multiple HTTP request threads from accessing a single servlet instance concurrently.

C, D
Ziemlich sicher.
« Letzte Änderung: 10.06.03 - 01:28:08 von Axel_Janssen »
... design patterns are abstract designs that help identify the structure and elements involved in a specific design solution. From this, a concrete implementation can be produced.
Kyle Brown

Offline Axel_Janssen

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 769
Re:ibm 484 freie voucher
« Antwort #2 am: 08.06.03 - 23:45:45 »
17. A JMS session can implement:
A. the QueueSession interface to support the publish-subscribe model.
B. the TopicSession interface to support the publish-subscribe model.
C. the QueueSession interface to support the point-to-point model.
D. the TopicSession interface to support the point-to-point model.

B, C (Monson Haenfel, S. 373)
sicher
---
18.When comparing servlets and JSPs, which of the following are FALSE?
A. JSPs provide better performance than servlets.
B. JSPs may call servlets and vice-versa.
C. A JSP must be compiled into a servlet before it can be used.
D. Initialization and destruction behavior is supported in both servlets and JSPs.
E. At runtime, JSPs and Servlets must run in different containers.

A, D
sicher

19. The executeUpdate() method of a java.sql.Statement and its derivates has a return-type. Select the correct return type and its meaning from the answers below.
A. The executeUpdate() method returns a ResultSet, that will contain all items of a query. The ResultSet will be if the query returned no items.
B. The executeUpdate() method returns a ResultSet, that will contain all items of a query. The ResultSet will be empty (contain no elements) if the query returned no items.
C. The executeUpdate() method returns an int, indicating the number of records that were changed. If the integer returned is negative, an error occurred.
D. The executeUpdate() method returns an int, indicating the number of records that were changed. If the integer returned is zero, no rows will have been updated or the change to the database was a DDL operation.

D (sicher, habe mich in API versichert).

20. An EJB is required to process credit card purchases. All purchase-related information such as card number and amount will be supplied as parameters to a single business method invocation that processes the purchase. Server performance is critical. Which bean type BEST suits the requirement?
A. A stateless session bean
B. A stateful session bean
C. A BMP entity bean
D. A CMP entity bean
E. A message-driven bean

B., sicher..

21. Which of the following MUST be declared for a CMP entity bean in its deployment descriptor if it appears as a CMR field for some other entity bean?
   A. bean class.
   B. database connection factory reference.
   C. home and remote interfaces.
D. local home and local interfaces.
E. primary key class.

A, C, E

Nicht sicher.


22. servlet counts the number of times it has been called using an "synchronized void incrementCount()" method. During testing, the developer verifies that the servlet accurately counts the requests from a number of clients. Which of the following BEST explains this fact?
A. The Web container supports activation and passivation of the servlet.
B. The HttpServlet class is designed to share state data across all its instances.
C. The same servlet instance services all the requests.
D. The servlet doGet( ) method has been marked as synchronized.


C, sicher

23. Which of the following method declarations would MOST likely be found in the remote home interface of the entity bean named Customer?
A. Customer create() throws CreateException, RemoteException;
B. Customer createWithSSN(int id, String socialSecurityNumber) throws CreateException, RemoteException;
C. Customer findAllByAge(int age) throws FinderException, RemoteException;
D. Collection findAllByAge(int age) throws FinderException, RemoteException;

B, D
B und nicht A: Create ohne Parameter finde ich seltsam (kein Primary Key).
D und nicht C: Age ist kein Primary Key

24. When working with JAXP to perform XSLT, the method newTemplates(Source) on class TransformerFactory produces what kind of artifact?
A. An optimized representation of the XML source document to be transformed.
B. An optimized representation of the transformation instructions (i.e. stylesheet).
C. A concrete Transformer class that matches the source specification.
D. A collection of transformation objects.

C, ziemlich sicher.


25. JAAS CallbackHandlers are used by what object?
A. AuthPermssion
B. Policy
C. LoginModule
D. Credential

HÖLLE. Tendiere zu C.

26. Consider the following snippet from a web.xml file:

<web-app> ..
     <listener>
          <listener-class>com.bigbank.ConnectionManager</listener-class>
     </listener>
     <listener>
          <listener-class>com.bigbank.SessionTracker</listener-class>
     </listener>
 ...
</web-app>

Assuming that com.bigbank.ConnectionManager class implements ServletContextListener interface, and com.bigbank.SessionTracker implements HttpSessionListener interface, which of the following is a valid sequence of events that occur in time?
A.    
(1) ConnectionManager.contextInitialized
(2) SessionTracker.sessionCreated
(3) ConnectionManager.contextDestroyed
(4) SessionTracker.sessionDestroyed

B.    
(1) ConnectionManager.contextInitialized
(2) SessionTracker.sessionCreated
(3) SessionTracker.sessionDestroyed
(4) ConnectionManager.contextDestroyed

C.    
(1) ConnectionManager.contextInitialized
(2) SessionTracker.sessionDidActivate
(3) SessionTracker.sessionWillPassivate
(4) ConnectionManager.contextDestroyed
   
D.    
(1) ConnectionManager.contextInitialized
(2) SessionTracker.sessionCreated
(3) SessionTracker.sessionDidActivate
(4) SessionTracker.sessionWillPassivate
(5) SessionTracker.sessionDestroyed
(6) ConnectionManager.contextDestroyed


B:
(stimmen die Methoden). A sieht merkwürdig aus.
C.2/3 sind Methoden aus SessionActivationListener Interface


27. A CMP entity bean implements a BankAccount record. The bean requires a composite primary key consisting of a branch number and an account number. Both values are of type int. The class AccountKey has been created to hold these values. Which of the following declarations of ejbCreate() would be valid ways to create a BankAccount bean, given that neither field can be automatically generated ?
   A. ejbCreate()
   B. ejbCreate(int branchNumber)
   C. ejbCreate(int accountNumber)
   D. ejbCreate(int branchNumber, int accountNumber)
   E. ejbCreate(AccountKey key)

D, E
Halte ich erst einmal für offensichtlich

28. In which of the following scenarios should a developer choose an applet instead of a servlet for the application presentation?
   A. A text lookup tool, where the user enters a search string and matching entries are displayed.
   B. A financial spreadsheet, where dollar amounts can be interactively tabulated and graphed.
   C. A three-dimension multi-player video game, where players run around in a maze and try to pick roses before they are all gone.
   D. A zip code finder, where the user enters a street address and gets the zip code as well as the location address on a map.


B, C

29. Which of the following is NOT a required step to get a reference to an existing EJB's home?
A. Get a remote reference to the EJB home by using the JNDI Context lookup() method, passing the name of the EJB's home.
B. Use the RMIRegistry lookup() method to get a remote reference to the EJB home.
C. Cast the EJB home remote reference to the right type by using the PortableRemoteObject.narrow() static method, passing the remote reference and the class of the EJB home.
D. Cast the remote object reference to the right type within Java.

A statt D.???

30 Which object CANNOT be retrieved from a JNDI namespace by an Application Client?
A. EJBHome (stub)
B. EJBLocalHome
C. QueueConnectionFactory
D. TopicConnectionFactory

B statt D.

31. Which of the following implicit page objects are available for a JSP page with an "isErrorPage=true" page directive?
A. application
B. throwable
C. exception
D. config
E. error

A, C, D
Sicher, überprüft...

32. What J2EE technology BEST provides the View layer of an MVC design pattern?
A. servlet
B. JSP
C. EJB
D. MDB


B. sicher

33. Which of the following are valid JNDI bindings under the java:comp context, as defined by the J2EE specification?
A. url
B. jdbc
C. UserTransaction
D. env

B, D
(ziemlich sicher)

34. Which of the following is TRUE concerning CMP entity bean activation and passivation?

A. Storage of persistent state to the database is handled automatically by the EJB container during passivation.
B. A client must explicitly activate a bean that has been passivated.
C. Clients do not directly communicate with a bean and are unaware of activation and passivation.
D. Transient fields are handled explicitly by activation and passivation.

A. (unsicher)

35. Which of the following steps will occur when an EJB container obtains a Connection from a XADataSource and prepares to use it?
A. The container will obtain the XAResource reference from the Connection.;
B. The connection pool will register itself as a XAResourceEventListener with the XAResource.
C. The transaction manager will invoke the begin() method on the XAResource.
D. The transaction manager will invoke the start() method on the XAResource.

B, C
(nicht wirklich sicher)
(Monson Haenfel, S. 421 ff.)
Vermutlich B nicht A
C auf jedenfall, nicht D


36. Which is the BEST of the following designs to leverage the J2EE architecture?
A. Clients install Swing components on their system which interact via RMI with EJBs on the server, EJBs interact with backend services such as databases.
B. Clients view applets in Web browsers, servlets service the client requests on the server and interact with backend services such as databases.
C. Clients view HTML in Web browsers, JSP pages service the client requests and request services from EJBs on the server, EJBs interact with backend services such as databases.
D. Clients view HTML in Web browsers, CGI scripts service the client requests on the server and request services from EJBs on the server, EJBs interact with backend services such as databases.

C
(unsicher
D &#61664; keine CGI scripts.
C &#61664; Servlets und JSP request services from EJB.
A &#61664; Swing komponents interagieren nicht via RMI sondern über client Container???
« Letzte Änderung: 10.06.03 - 01:33:28 von Axel_Janssen »
... design patterns are abstract designs that help identify the structure and elements involved in a specific design solution. From this, a concrete implementation can be produced.
Kyle Brown

Offline Axel_Janssen

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 769
Re:ibm 484 freie voucher
« Antwort #3 am: 08.06.03 - 23:46:44 »
37. What types of EJB CANNOT use bean-managed transaction demarcation?
A. stateless session bean
B. stateful session bean
C. BMP entity bean
D. CMP entity bean
E. message-driven bean

A, D statt
D, E

38 An EJB is required to implement a wish list for "J2EE Book Store". A user can add books into the wish list and have access to it the next time he or she logs in. The application is required to be portable at the persistent layer. Which bean type BEST suits the requirements?
A. stateless session bean
B. stateful session bean
C. BMP entity bean
D. CMP entity bean
E. message-driven bean

D.

---

39. For a Web application under development, there is a requirement to display a clock in the bottom left corner of the browser. There is already a Java applet available that displays a clock, given the time zone. If a JRE plugin is not installed, the browser must be directed to download it. Which of the following JSP actions is the developer MOST likely to use to implement this requirement?
A. jsp:plugin
B. jsp:fallback
C. jsp:forward
D. jsp:useBean
E. jsp:params

---

ab, e statt abc (ab logisch, drittes nicht)

---

40. Which of the following is NOT true in deployment descriptors? Security roles and method permissions:
A. Cannot be shared among different EJBs.
B. Can utilize wildcard characters to authorize multiple methods at one time.
C. Can be defined during deployment.
D. Can be mapped to actual user groups during deployment.

B.(was sonst, unsicher)

---

41. A stateful session bean is to be created. Which of the following objects are necessary?
A. primary key class
B. home interface
C. bean class
D. passivation class
E. component interface


b, c, e
(A nur für entity, nicht session bean. Passivation class in nonsense. Component Interface vielleicht auch.
---

42. Which of the following do NOT support concurrent access?
A. Stateful session beans
B. Stateless session beans
C. Entity beans
D. Message-driven beans
(sehr unsicher)
A, C statt
A, D

---

43. EJB transaction attributes are:
A. all applicable for MDBs.
B. specified via deployment descriptor extensions.
C. specified to the method level.
D. specified to the class level only.

C
Monson Haenffel, S. 09 ff.)
(A: MDB kann nur NotSupporterd und Required unterstützen. Rest mach keinen Sinn.
B: kein extensions. Ist Teil von Standard DD
D.: geht auch, only ist falsch
---

44. An application accepts input from a user and needs to perform secure and transactional access to one or more Enterprise Information Systems synchronously for client request processing. What integration technology BEST fits this situation?
A. Java RMI
B. JTA
C. EJB
D. JMS

C., sicher.
(RMI nix mit Transaktionen zu tun,
JTA nix mit Secure zu tun,
JMS ist asynchron, nicht synchron).

---

45. A developer has created a stateless session bean named CounterBean. The test code creates a bean instance by calling the home interface's create() method and then calls the bean's count() method three times. The developer expects the results 1, 2, and 3, but receives the values 1, 1 and 1. What is the solution to this problem?
A. An initializer should be used to set the value of count to zero.
B. The ejbCreate() method should call super.ejbCreate().
C. The bean's session timeout value should be increased.
D. The bean should be declared stateful.
E. The bean should reset count during ejbActivate().


D.: ziemlich eindeutig. Bei Stateless ist client keine eindeutige Instanz zugeordnet.

---

46. Which of the following are deployment tasks that involve binding J2EE application references to deployment specific resources?
A. Mapping J2EE security roles to user registry entries.
B. Configuring the name service port or ports for the deployment server.
C. Resolving a WAR file's resource reference to a JNDI name.
D. Configuring the connection pool attributes for a Datasource.

A, C statt
A, D

---

47. Most Web applications require logic for validating form input and determining the next page to display. Given long term maintenance and reuse objectives, what is the BEST design to implement this logic?
A. A JSP that both validates form input and determines the next page.
B. A JSP validates form input and a servlet determines the next page.
C. A servlet validates form input and a JSP determines the next page.
D. A servlet both validates form input and determines the next page.


D.
(ziemlich sicher)

---

48. To successfully handle an account transfer over the Web requires the following 3 steps: validate the input form values, create and post a AccountTransferTransaction and generate an HTML confirmation page. Which one of the following describes the BEST approach for implementing these steps?
A. Create a ProcessAccountTransfer Servlet that validates form input, creates and posts an AccountTransferTransaction, and generates the confirmation page.
B. Create a "ProcessAccountTransfer.jsp" that validates form input, creates and posts an AccountTransferTransaction, and forwards to a confirmation JSP.
C. Create a ProcessAccountTransfer Servlet that validates form input, creates an AccountTransferTransaction, and forwards it to a confirmation JSP that posts the Transaction and generates the confirmation page.
D. Create a ProcessAccountTransfer Servlet that validates form input, creates and posts an AccountTransferTransaction, and forwards to a confirmation JSP.


D.

---

49. Given that a data source "FinanceDB" is already registered with JNDI, what are the steps that a JDBC application needs to take to create a connection to the database "FinanceDB"?
A. Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("FinanceDB");
Connection con = ds.getConnection("j2ee", "hello");
B. Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FinanceDB");
Connection con = ds.getConnection("j2ee", "hello");
C. Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FinanceDB");
Connection con = ds.createConnection("j2ee", "hello");
D. Context ctx = InitialContext.getContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/FinanceDB");
Connection con = ds.getConnection("j2ee", "hello");


C. statt A
( sicher, S. 273 monson haenffel)

---

50. When designing a distributed system, remote access to fine-grained objects should be avoided. Why?
A. Client use of coarse-grained objects is simpler.
B. Fine-grained objects result in increased network traffic.
C. Fine-grained objects are hard to develop and maintain.
D. Coarse-grained objects result in increased latency for user actions.

B, D statt
B, C
(B ist klar, versuchs mal mit D)

---

51. Which of the following are TRUE with respect to state management in a Web application?
A. Use of HTTPS protocol provides support for state management in a Web application.
B. URL Rewriting is an alternative to using cookies.
C. URL Rewriting does not require any client side configuration.
D. HttpSession information is available to JavaScript code in a Web page.

A, B statt
B, C
(D auf keinen Fall. A,B, C sind alle richtig).


---

52. Select the valid transaction attributes that a Message-Driven Bean (MDB) can use in container-managed transaction demarcation.
A. NotSupported
B. Required
C. Supports
D. RequiresNew
E. Mandatory
F. Never

AB statt
B, F
(Monson Haenffel)

---

54. A developer wants to send a serialized object to a message-driven bean. What steps should the developer take to accomplish this goal?
A. Create a MapMessage to send.
B. Create an ObjectMessage to send.
C. Define message processing logic in the MDB's onMessage() method.
D. Define message processing logic in the MDB's receiveMessage() method.

B, C
B, nicht A -&#61664; existieren verschiedene Message Types per JMS spec, S. 367
Ich bin mir relativ sicher, das es receiveMessage nicht gibt.

D...


55. Which of the following are TRUE about Filters?
A. Filters provide functionality that can be associated with any kind of Web resource.
B. Filters create the HTTP response, rather than modify the response.
C. Filters act only on dynamic content.
D. There is only one instance of the Java class defining the filter per <filter> declaration.
E. The Filter chain can be altered by the Servlet for which the filter is defined.

E (weiss nicht, werde ich nachlesen)


56. In a Web application where performance is key, JDBC is used to query a database. The database is queried with parameters that are specified by users on a form. Which of the following are valid?
A. aCallableStatement.setString(2, "data");
B. aPreparedStatement.setString(2, "data");
C. aStatement.setString(2, "data");
D. aResultSet.setString(2, "data");
E. aConnection.setString(2, "data");

A, B
A ist für Aufruf stored procedure. Dürfte o.k. sein, gut für Persormance.
B ist Prepared Statement, auch gut.
(am wichtigsten ist, dass die anderen alle keine setString-Methode haben.
57. A servlet uses a remote Session EJB, OrderFacade, that provides access to business operations on orders. Which one of the following, when stored in an HttpSession object, would enable other servlets to get a reference to the EJB in the LEAST number of steps? A reference to the:
A. EJB's primary key
B. EJB's Handle
C. Session reference
D.- Serialized EJB

B. sehr unsicher....

« Letzte Änderung: 10.06.03 - 01:32:56 von Axel_Janssen »
... design patterns are abstract designs that help identify the structure and elements involved in a specific design solution. From this, a concrete implementation can be produced.
Kyle Brown

Offline Axel_Janssen

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 769
Re:ibm 484 freie voucher
« Antwort #4 am: 10.06.03 - 01:45:07 »
2. Runde
Torolabs vs. Axel Janssen

ging dann an mich (s. Ergebnisse oben).  ;D


Wer Lust hat, kann versuchen sich mit den Antworten auch einen free-Voucher zu beschaffen.  8)
falls es noch welche gibt :-\
Programm fing am 4. Juni an.


Nein. eider zu spät gesehen. Bereits am 6. Juni waren die 100 Voucher ausgegeben.

http://www-1.ibm.com/certify/news/20030606.shtml

Egal.


Zumindest haben wir jetzt hier alle Testfragen. Wenn jemand Fragen hat, immer gerne.

Hier ist link zu torolab-ice test.
https://certify.torolab.ibm.com/ice/displayPage/en

4 Schritte:
a) Meine Antworten oben in ein Word-Doc oder ähnliches kopieren.
b) sich bei Torolab registrieren
 c) Test 484 starten
d) sich durch fragen klicken und mit Suchfunktion in Word korrekte Antwort suchen.




Ärgerlicherweise gibt es beim richtigen Test dann ähnliche aber andere Fragen.  :-\

 
« Letzte Änderung: 10.06.03 - 03:51:44 von Axel_Janssen »
... design patterns are abstract designs that help identify the structure and elements involved in a specific design solution. From this, a concrete implementation can be produced.
Kyle Brown

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz