C2040-918 Question And Answer
QUESTION NO: 1
Anna has been testing a model and is concerned about the time certain actions seem to be taking.
Her development environment is a high-end system, and other portlets she has developed have not exhibited the kind of response time lag that she and her testers perceive. She suspects one of the data services builders is experiencing network latency, but is unsure where the real problem lies. What actions can she take to help isolate the performance issue?
A. Add counters to the builder calls that are suspect.
B. Consult the performance log, which is created by default with each model run.
C. Enable system tracing in the run configuration tab to log the execution time for each action (page or method).
D. Dedicate a larger Java HEAP_SIZE to the main method associated with the model that is suspect.
Answer: C
QUESTION NO: 2
Tim has a web application that accesses a database through a provider model containing SQL Call builders. He thinks there might be a performance problem with one or more of the database calls. How can he get WebSphere Portlet Factory to log detailed performance information about all aspects of the database access?
A. He needs to use a SQL Override builder; this builder provides several fields that enable
detailed logging of performance information for database access.
B. He must enable DEBUG-level database performance tracing in the Log4J properties file and redeploy the WAR file.
C. He must enable the Log Server Stats field in each SQL Call builder.
D. No changes are required; WebSphere Portlet Factory automatically logs performance statistics for all executed actions, such as database access calls.
Answer: C
QUESTION NO: 3
Pat wants to know how many web service calls are being made in a given time frame, how long on average each web service call is taking, and how many web service calls are failing. How can Pat obtain such performance information?
A. That information is not yet available from the WebSphere Portlet Factory web service support, but the application can be built to log this information itself, if desired.
B. WebSphere Portlet Factory logs all requests, average latency and faults, in the deployed applications WEB-INF/logs/event.log file.
C. WebSphere Portlet Factory logs web service requests, average latency and faults, in the deployed applications WEB-INF/logs/serverStats.txt log file.
D. Enable this logging using the Performance field in the Web Service Call builder, and the
information comes back with the web service call results to the consumer model.
Answer: C
QUESTION NO: 4
Emma is not satisfied with her codeveloper Jakob’s description of system tracing events and times, and wants to check the system logs herself. Where can she find and view them?
A. Log files are created in the base WEB-INF directory.
B. Log files are stored in the WEB-INF/logs directory in the deployed WAR file.
C. All WebSphere Portlet Factory logging output is intertwined with WebSphere Portal logging; users must open the application server’s log files on the server to view them.
D. The location of log files is variable depending on selections made in the run configuration; users must inspect the run configuration to discover the path to the log files.
Answer: B
QUESTION NO: 5
The primary use for the WebSphere Portlet Factory server configuration is?
A. To deliver your application to a production server.
B. To deploy, run, and test your application on a development server.
C. To create a WAR file for manual deployment to a production or development server.
D. To give your application access to APIs that are specific to the target server.
Answer: B
C2040-927 Question And Answer
QUESTION NO: 1
Tim has a web application that accesses a database through a provider model containing SQL Call builders. He thinks there might be a performance problem with one or more of the database calls. How can he get IBM Web Experience Factory to log detailed performance information about all aspects of the database access?
A. He needs to use a SQL Override builder. This builder provides several fields that enable detailed logging of performance information for database access.
B. He must enable DEBUG-level database performance tracing in the Log4J properties file and redeploy the WAR file.
C. He must enable the Log Server Stats input in each SQL Call builder.
D. No changes are required. Web Experience Factory automatically logs performance statistics for all executed actions, such as database access calls.
Answer: C
QUESTION NO: 2
Jane wants to debug the Java code in one or more of the Method builders in her model. How can she leverage the Eclipse Java debugger to do so?
A. She must purchase full rights to the IBM Web Experience Factory source to debug generated Java.
B. This feature is not yet supported.
C. Right-click a method in the Application Tree view to set/toggle a breakpoint. Start the
application server in debug mode and run the model with a remote Java debug configuration, as documented in the Web Experience Factory help.
D. System.out.println is the only way to debug Java associated with Method builders.
Answer: C
QUESTION NO: 3
Sean wants to trace the value of a variable as a model he is running to help track down a problem somewhere in a computation later in the model. How can he trace the value of the variable?
A. Use the enable Debug Tracing field on the Variable builder.
B. Add an entry to the log4j.properties file indicating the model and action to trace.
C. Inspect the logging.properties file for variable values because all changes are reflected in this file at run time.
D. Add a Debug Tracing builder to the model specifying whether to trace all actions or naming a specific action to trace.
Answer: D
QUESTION NO: 4
Dave wants to see information about web service parameters, URL endpoint, and SOAP
envelope. What must he do to obtain this data for a particular Web Service Call builder?
A. There is no way for him to get this information other than contacting customer support.
B. He must use a Java debugger to get this information.
C. He must set the Logging field to All in the Web Service builder to log this information to the WEB-INF/logs/debugTracing.txt file.
D. This information is always printed to the standard output console log without any developer intervention required.
Answer: C
QUESTION NO: 5
Which of the following is the ideal development configuration for building and testing portlets?
A. No publish is necessary. It all runs out of the project.
B. Manually publish the portlet WAR file and let the designer discover its location.
C. Publish the project two times, once to an application server, and once to an IBM WebSphere Portal server for development and testing.
D. Publish the application once to a WebSphere Portal server. IBM Web Experience Factory development applications run stand-alone and as portlets with one configuration.
Answer: D