Few more questions for the exam:
57. The Java system you are enhancing needs an integration point to an external system to gain access to data stored in a database. The application uses an open database connectivity data source to access data. What do you use to connect to the database ?
A. XML over HTTP
B. RPC-style SOAP
C. RMI-IIOP and EJB
D. JDBC-ODBC bridge driver
Correct Answer: D
58. Java Connector Architecture (JCA) as a technology solution addresses certain needs for your Java applications. What is the best description of a JCA solution. ?
A. asynchronuous message-based interfaces
B. integration of slow responders in a loosely-coupled way
C. access tightly-coupled business logic of legacy systems
D. integration of systems/components and guaranteing message delivery
Correct Answer: C
59. Your client is interested in the benefits or integration with an external system using RMI-IIOP, RMI-JRMP, and CORBS for external inegration. What should you tell your client?
A. An RMI-JRMP client can call a CORBA server.
B. A CORBA client can call an RMI_JRMP server.
C. An RMI-JRMP client can call an RMI_IIOP server.
D. A CORBA client CANNOT call an RMI-IIOP server.
Correct Answer: C
60. Your online e-commerce application has a message driven bean (MDB) that calls an email server. Which statement about invoking the MDB is true?
A. The client can access the MDB directly.
B. The client accesses the MDB using an interface.
C. A message driven bean is simply a JMS message provider.
D. A JMS message is sent to the destination to which the MDB is listening.
Correct Answer: A
61. SOAP was selected as an integration technology for the flexibility of messaging styles it supports (in particular, how an XML payload can be presented in a SOAAP message). Which message style statement is correct?
A. The body of an RPC-style SOAP message cannot be a literal message.
B. The XML payload for a document-style message cannot be an encoded message.
C. The XML payload for RPC and document-style messages guarantee XML payload delivery.
D. An RPC-style message has the XML payload wrapped inside an operation element in a SOAP body
Correct Answer: D
62. As part or you Java application, you are required to integrate with an external system that has a Java web service. Tha java web service is using synchronous communication and exposes several methods with varying method signatures. Which technology do you use for this solution?
A. JMS
B. SOAP
C. RMI-IIOP
D. RMI-JRMP
Correct Answer: B
63. Your company is going through an extensive security audit and it has been identified that your internet-facing web site is vulnerable to SQL injection from authenticated users. Which two are appropriate for mitigating this threar? (Choose two.)
A. Using security roles in the deployement descriptor
B. In stored procedures called with prepared statements
C. Adding an intercepting validation filter to your syste,
D. Requiring SSL in the deployement descriptor transport guarantee.
Correct Answers: B, C.
64. Your competitor is trying to crash your web site by using various Denial of Service attacks. Which two flaws should you protect against for this specific threat? (Choose two.)
A. SQL injection
B. buffer overflow
C. Man in the middle
D. session hijacking
E. weak password exploits
Correct Answers: A, B
65. Which is an appropriate technique for minimizing the consequences of a successful attack?
A. Input validation
B. Principle of least privilege
C. Encryption os wire transmissions
D. Use of strong/two-factor authentication
Correct Answer: B
66. What is the appropriate location to configure a JSP based application to require secure communication between a broswer and particular resources?
A. In the application code
B. In the business-tier code
C. In the broswer configuration
D. In the deployement descriptor
E. In the web server configuration
Correct Answer: D.
67. Service methodA(), implemented in a session bean, performs a highly sensitive operation. This operation must be available in limited ways to low privilege users to support a low sensitivity operationB()
Which approach addresses the requirements most securely?
A. mark the methodA() as accessible to all necessary roles
B. mark the methodA() as accessible to all appropriate roles, and use the programmatic security model to impose the necessary additional restrictions
C. mark the methodA() as accessible to all appropriate roles, and use the deployment desciptor to indicate the conditions under which each role can invoke the high priority method
D. mark methodA() as accessible only to a special role, then use a run-as element to invoke A() from B(); before making the call to A(), B() checks that conditions are appropriate for the call
Correct Answer: D.
Showing posts with label Practise Questions. Show all posts
Showing posts with label Practise Questions. Show all posts
Sunday, March 29, 2009
Saturday, February 28, 2009
SCEA 5.0 Exam Questions - 4
Few more questions for the exam:
41. Which design pattern is usefull for hiding the construction and implementation details of an object?
A. Flyweight
B. Singleton
C. Abstract Factory
D. Chain of Command
Correct Answer: C
42. Some media players use a virtual proxy for image loading. What is the benefit of using a virtual proxy?
A. It controls access to the original object.
B. It defers creation of expensive objects until necessary.
C. It provides a local representation for an object in a different address space.
D. It is a replacement for a bare pointer that performs additional actions when an object is accessed.
Correct Answer: B
43. What are two capabilities of the Decorator pattern ? (Choose two.)
A. Provides a unified interafe to a subsystem
B. Converts the interface of a class into another interface
C. Is used when the base class is unavailable for subclassing
D. Promotes loose coupling by keeping objects from referring to each other
E. Modifies responsibilities to individual objects dynamically and transparently
Correct Answers: C, E
44. You are building a web application that must integrate to a content management system(CMS). Your company currently has a homegrown CMS, but management is considering purchasing a new CMS.
Unfortunately, you have little confidence that their lates choice, BigCMS, is likely to be the final decision. After analyzing the interface to BigCMS, you find that its interface is different from the homegrown CMS. Furthermore, you suspect that any other third-party CMS will have yet another interface.
What is the simplest pattern that would isolate your web application from the interface of the CMS tool ?
A. Proxy
B. Bridge
C. Adapter
D. Service Locator
E. Business Delegate
Correct Answer: C
45. What is a benefit of using the Transfer Object pattern ?
A. Reduces requests across the network
B. Avoids the overhead of using EJB finder methods for large searches
C. Separates the business state and related behavior from the rest of the appliation
D. Implements parent-child relationships efficiently when imlementing Business Objects
Correct Answer: A
46. What are two benefits of using the Value List Handler pattern? (Choose two.)
A. Improves network performence
B. Facilitates exposing existing services
C. Provides an alternative to petentially inefficient EJB finders.
D. Facilitates post-processing across heterogeneous requsts
E. Provides a mechanism to support shared eleemnts of composite views
Correct Answers: A, C
47. A company created its own MVC-like framework in the years before struts and JSF. Unfortunately, the company's Front Controller has become bloated with too many features including fine-grained authorization, view dispatching, and business logic invocation. Which three patterns could be applied to reduce the complexity of the Front Controller? (choose three.)
A. Mediator
B. Command
C. View Helper
D. Intercepting Filter
E. Composite View.
F. Application controller
Correct Answers: B, D, F
48. What are two advantages of the Business Delegate pattern? (Choose two.)
A. Increases the scalability of remote services
B. Decouples presentation logc from business logic
C. Avoids unnecessary invocation of remote services
D. Hides underlying communication details of the service
E. Enables transparent presistent storage of the business entity
Correct Answers: C, D
49. What are two advantages of a thin client, three tier architecture over a thick client, two-tier architecture ? (choose two.)
A. It is more secure.
B. It is more reliable
C. It is easier to maintain.
D. It makes it easier to manage the application deployment.
Correct Answers: C, D
50. A teenage fashion website, has a multi-tier web application with 103 web servers, 12 middle-tier servers, and a large RDBMS server with more than enough capacity to support peak loads. You are the architect of the system, and you are concerned about reliability of the web application. Which change could you make to improve reliability ?
A. Add additional web servers.
B. Add additional database servers
C. Add additional middle-tier servers
D. Reduce the number of web servers
E. Reduce the number of middle-tier servers.
Correct Answer: B
51. Which is NOT a valid reason to separate presentation from business logic ?
A. Improved scalability
B. Improved performence
C. Separation of cencerns
D. Improved maintainability
Correct Answer: B
52. A company is considering re-architecting their application from a two-tier to a three-tier architecture. To see what impact the new architecture would have on their non-funtional requirements (NFRs), they created a prototype.
When they tested the prototype based on their three-tier architecture they noticed, contrary to expectations, that the prototype was less scalable than the original two-tier solution.
Which two statements explain the result? (Choose two.)
A. Clients end up competing for CPU cycles on the common business logic tier.
B. Clients end up competing for resources on the back-end database used by the application.
C. Clients did NOT share interest in any domain objects, but the business tier spent too much time coordinating among clients anyway.
D. Clients did NOT share interest in any domain objects and the business tier ran out of memory to represent all domain objects required by the clients.
Correct Answers: A, D
53. Which two statements are true only when implementing rich client applications, and NOT when implementing web browser-based clients that support only HTML? (Choose two.)
A. Information can be sent to the client by the server, without client polling
B. Information can be encrypted prior to delivering it to the client and decrypted when received to the client.
C Information can be compressed prior to delivering it to the client and decompressed when received ro the client.
D. Information can be delivered to the client incrementally, without requiring that the server deliver all the information to be presented to the client on each update.
Correct Answers: A, D
54. A bank designed its first-generation web-based banking system aroung a Java technology rich client application that interacts with server-side service objects implemented as stateful session beans in a portable Java EE application. For their second-generation system, the company wants to open the architecture to other types of clients. The company is considering exposing its existing stateful session bean service as a web service. Which statement is true ?
A. Session beans cannot be exposed as web services.
B Stateful session beans cannot be exposed as web services.
C. Stateful session beans are automatically exposed as web services.
D. Stateful session beans annotated with @WebService are exposed as web services.
Correct Answer: B
55. Brokers at a firm currently use a two-tier application to execute stock transactions on behalf the their customers. Business componens within the application enforce a number of complex business rules that ensure that stock transactions are executed properly.
Management has decided that clients should be able to execute their own transactions to streamline operations. Management also wants clients to run the same existing two-tier applications from their home computers. They have hired you to advise them on how to proceed to unsure that no illegal stock transactions are executed once the application is available directly to clients.
Which two recommendations should you give to this brokerage firm? (Choose two.)
A. The code already checks for correct execution so they can deliver the application to clients "as is"
B. Checks for correctness should be rewritten as database constraints because the application running on the client might be modified.
C. The application should be re-architected as a thee-tier solution. That way, validation checks can be moved to a server-side business tier, which remains trustworthy.
D. The application should be obfuscated before it is delivered to the client. That way, clients cannot modify it. Therefore, the validation checks currently implemented will remain trustworthy.
Correct Answers: B, C
56. A travel company re-architected its application from a two-tier to a three-tier architecture. To see what impact the new architecture would have on its non-functional requirements(NFR), the company intends to build a prototype based on the new architecture. The company compared the MFR metrics associated with the new prototype against the metrics from their original two-tier solution. What is an advantage of the original two-tier solution?
A. It has better availability because it has fewer single point of failure.
B. It has better manageability because each client has its own copy of the application.
C. It has better performence because each client must use is own set of domain objects.
D. It has better scalability because each client can access the database independently of other clients.
Correct Answer: A
41. Which design pattern is usefull for hiding the construction and implementation details of an object?
A. Flyweight
B. Singleton
C. Abstract Factory
D. Chain of Command
Correct Answer: C
42. Some media players use a virtual proxy for image loading. What is the benefit of using a virtual proxy?
A. It controls access to the original object.
B. It defers creation of expensive objects until necessary.
C. It provides a local representation for an object in a different address space.
D. It is a replacement for a bare pointer that performs additional actions when an object is accessed.
Correct Answer: B
43. What are two capabilities of the Decorator pattern ? (Choose two.)
A. Provides a unified interafe to a subsystem
B. Converts the interface of a class into another interface
C. Is used when the base class is unavailable for subclassing
D. Promotes loose coupling by keeping objects from referring to each other
E. Modifies responsibilities to individual objects dynamically and transparently
Correct Answers: C, E
44. You are building a web application that must integrate to a content management system(CMS). Your company currently has a homegrown CMS, but management is considering purchasing a new CMS.
Unfortunately, you have little confidence that their lates choice, BigCMS, is likely to be the final decision. After analyzing the interface to BigCMS, you find that its interface is different from the homegrown CMS. Furthermore, you suspect that any other third-party CMS will have yet another interface.
What is the simplest pattern that would isolate your web application from the interface of the CMS tool ?
A. Proxy
B. Bridge
C. Adapter
D. Service Locator
E. Business Delegate
Correct Answer: C
45. What is a benefit of using the Transfer Object pattern ?
A. Reduces requests across the network
B. Avoids the overhead of using EJB finder methods for large searches
C. Separates the business state and related behavior from the rest of the appliation
D. Implements parent-child relationships efficiently when imlementing Business Objects
Correct Answer: A
46. What are two benefits of using the Value List Handler pattern? (Choose two.)
A. Improves network performence
B. Facilitates exposing existing services
C. Provides an alternative to petentially inefficient EJB finders.
D. Facilitates post-processing across heterogeneous requsts
E. Provides a mechanism to support shared eleemnts of composite views
Correct Answers: A, C
47. A company created its own MVC-like framework in the years before struts and JSF. Unfortunately, the company's Front Controller has become bloated with too many features including fine-grained authorization, view dispatching, and business logic invocation. Which three patterns could be applied to reduce the complexity of the Front Controller? (choose three.)
A. Mediator
B. Command
C. View Helper
D. Intercepting Filter
E. Composite View.
F. Application controller
Correct Answers: B, D, F
48. What are two advantages of the Business Delegate pattern? (Choose two.)
A. Increases the scalability of remote services
B. Decouples presentation logc from business logic
C. Avoids unnecessary invocation of remote services
D. Hides underlying communication details of the service
E. Enables transparent presistent storage of the business entity
Correct Answers: C, D
49. What are two advantages of a thin client, three tier architecture over a thick client, two-tier architecture ? (choose two.)
A. It is more secure.
B. It is more reliable
C. It is easier to maintain.
D. It makes it easier to manage the application deployment.
Correct Answers: C, D
50. A teenage fashion website, has a multi-tier web application with 103 web servers, 12 middle-tier servers, and a large RDBMS server with more than enough capacity to support peak loads. You are the architect of the system, and you are concerned about reliability of the web application. Which change could you make to improve reliability ?
A. Add additional web servers.
B. Add additional database servers
C. Add additional middle-tier servers
D. Reduce the number of web servers
E. Reduce the number of middle-tier servers.
Correct Answer: B
51. Which is NOT a valid reason to separate presentation from business logic ?
A. Improved scalability
B. Improved performence
C. Separation of cencerns
D. Improved maintainability
Correct Answer: B
52. A company is considering re-architecting their application from a two-tier to a three-tier architecture. To see what impact the new architecture would have on their non-funtional requirements (NFRs), they created a prototype.
When they tested the prototype based on their three-tier architecture they noticed, contrary to expectations, that the prototype was less scalable than the original two-tier solution.
Which two statements explain the result? (Choose two.)
A. Clients end up competing for CPU cycles on the common business logic tier.
B. Clients end up competing for resources on the back-end database used by the application.
C. Clients did NOT share interest in any domain objects, but the business tier spent too much time coordinating among clients anyway.
D. Clients did NOT share interest in any domain objects and the business tier ran out of memory to represent all domain objects required by the clients.
Correct Answers: A, D
53. Which two statements are true only when implementing rich client applications, and NOT when implementing web browser-based clients that support only HTML? (Choose two.)
A. Information can be sent to the client by the server, without client polling
B. Information can be encrypted prior to delivering it to the client and decrypted when received to the client.
C Information can be compressed prior to delivering it to the client and decompressed when received ro the client.
D. Information can be delivered to the client incrementally, without requiring that the server deliver all the information to be presented to the client on each update.
Correct Answers: A, D
54. A bank designed its first-generation web-based banking system aroung a Java technology rich client application that interacts with server-side service objects implemented as stateful session beans in a portable Java EE application. For their second-generation system, the company wants to open the architecture to other types of clients. The company is considering exposing its existing stateful session bean service as a web service. Which statement is true ?
A. Session beans cannot be exposed as web services.
B Stateful session beans cannot be exposed as web services.
C. Stateful session beans are automatically exposed as web services.
D. Stateful session beans annotated with @WebService are exposed as web services.
Correct Answer: B
55. Brokers at a firm currently use a two-tier application to execute stock transactions on behalf the their customers. Business componens within the application enforce a number of complex business rules that ensure that stock transactions are executed properly.
Management has decided that clients should be able to execute their own transactions to streamline operations. Management also wants clients to run the same existing two-tier applications from their home computers. They have hired you to advise them on how to proceed to unsure that no illegal stock transactions are executed once the application is available directly to clients.
Which two recommendations should you give to this brokerage firm? (Choose two.)
A. The code already checks for correct execution so they can deliver the application to clients "as is"
B. Checks for correctness should be rewritten as database constraints because the application running on the client might be modified.
C. The application should be re-architected as a thee-tier solution. That way, validation checks can be moved to a server-side business tier, which remains trustworthy.
D. The application should be obfuscated before it is delivered to the client. That way, clients cannot modify it. Therefore, the validation checks currently implemented will remain trustworthy.
Correct Answers: B, C
56. A travel company re-architected its application from a two-tier to a three-tier architecture. To see what impact the new architecture would have on its non-functional requirements(NFR), the company intends to build a prototype based on the new architecture. The company compared the MFR metrics associated with the new prototype against the metrics from their original two-tier solution. What is an advantage of the original two-tier solution?
A. It has better availability because it has fewer single point of failure.
B. It has better manageability because each client has its own copy of the application.
C. It has better performence because each client must use is own set of domain objects.
D. It has better scalability because each client can access the database independently of other clients.
Correct Answer: A
Saturday, February 14, 2009
SCEA 5.0 - Exam Questions - 3
Few more questions for the exam:
31. Which two can be used to maintain convesational state ? (Choose two.)
A. Entity beans
B. Http session
C. Stateful session beans
D. message-driven beans
E. stateless session beans
Correct B,C
32. You are the architect of a project that will provide an external, low latency, scalable, and highly- available sevice for handling string transactions. Each request consists of a short string ID and laguage key, limited to "EN", "FR", "ES", "DE", and "JP". Each response is a simple unicode string averaging 256 bytes in size, and there will be no more than 50,000 records for each language. All the records have aleady been translated and changes to the records will be rare.
What should you do to ensure that your service wll scale and perform well as new clients are added ?
A - store all the records in an LDAP server and use JNDI to access them from the web tier
B - deploy a standard 3-tier solution that is supported by a fast and reliable relational database
C - deploy a single service on many servers in the web tier, each storing all the records in memory
D - store all of the records in a network attached file system so they can be served directly from the file system
Correct: C
33.Tou are the architect of a web application that uses JSF as a presentation tier for business processes coded as stateless session beans. When you add new code to the stateless session beans to address new accounting requirements, without changing the interface, you discover that the new business processes are being ignored by some of the JSF components.
Which might be the cause of this problem?
A - The presentation tier is relying on validation logic in the business tier.
B - The broswer is caching out-of-date versions of the JSF components.
C - The business processes are not rigorously encpsulated in the session beans.
D - The new session beans have been deployed incorrectly, and proper deployment will resolve the problem.
Correct: C
34. You have refactored your legacy Java application into a three-tiered architecture. Your security audit group is concerned that your architecture may be vulnerable to security threats in the separate tiers. Which two methods can you use to reduce those threats? (Choose two).
A - programmatic security in the EJB entities
B - interecepting filters between the view and the controller
C - intercepting filters between the controller and the model
D - role-based security for the EJBs in the deployement descriptor
Correct: B,D
35. Drag and drop the question. Drag the items to the proper locations.
40. As a project architect, you are selecting technologies for a complex, n-tier web application's virtual platform. At this stage in the project, which two technologies should be of primary consideration? (choose two.)
31. Which two can be used to maintain convesational state ? (Choose two.)
A. Entity beans
B. Http session
C. Stateful session beans
D. message-driven beans
E. stateless session beans
Correct B,C
32. You are the architect of a project that will provide an external, low latency, scalable, and highly- available sevice for handling string transactions. Each request consists of a short string ID and laguage key, limited to "EN", "FR", "ES", "DE", and "JP". Each response is a simple unicode string averaging 256 bytes in size, and there will be no more than 50,000 records for each language. All the records have aleady been translated and changes to the records will be rare.
What should you do to ensure that your service wll scale and perform well as new clients are added ?
A - store all the records in an LDAP server and use JNDI to access them from the web tier
B - deploy a standard 3-tier solution that is supported by a fast and reliable relational database
C - deploy a single service on many servers in the web tier, each storing all the records in memory
D - store all of the records in a network attached file system so they can be served directly from the file system
Correct: C
33.Tou are the architect of a web application that uses JSF as a presentation tier for business processes coded as stateless session beans. When you add new code to the stateless session beans to address new accounting requirements, without changing the interface, you discover that the new business processes are being ignored by some of the JSF components.
Which might be the cause of this problem?
A - The presentation tier is relying on validation logic in the business tier.
B - The broswer is caching out-of-date versions of the JSF components.
C - The business processes are not rigorously encpsulated in the session beans.
D - The new session beans have been deployed incorrectly, and proper deployment will resolve the problem.
Correct: C
34. You have refactored your legacy Java application into a three-tiered architecture. Your security audit group is concerned that your architecture may be vulnerable to security threats in the separate tiers. Which two methods can you use to reduce those threats? (Choose two).
A - programmatic security in the EJB entities
B - interecepting filters between the view and the controller
C - intercepting filters between the controller and the model
D - role-based security for the EJBs in the deployement descriptor
Correct: B,D
35. Drag and drop the question. Drag the items to the proper locations.
Correct:
36. The current architecture of a fashion website consists of one web server, three application servers, and a database. You, as the lead architect, recommend adding more web servers. What are two valid justifications for new architecture? (Choose two.)
A. New web servers will decrease latency for I/O-bound requests.
B. Adding multiple web servers will have a positive impact on scalability.
C. Adding new web servers will increase the overall availability of the web site.
D. New web servers will increase the number of user accounts that can be supported.
B. Adding multiple web servers will have a positive impact on scalability.
C. Adding new web servers will increase the overall availability of the web site.
D. New web servers will increase the number of user accounts that can be supported.
Correct: B,C
37. Which three statements are true about delegation as on OO design technique? (Choose three.)
A. It is applied to a system only at compile time.
B. It is an essential element of the State pattern.
C. It is an essential element of the Singleton pattern.
D. It allows you to replace inheritance with composition.
E. In Java technology, it is always implemented through the use of generics.
F. It always requires that at least two objects are involved in handling a request.
B. It is an essential element of the State pattern.
C. It is an essential element of the Singleton pattern.
D. It allows you to replace inheritance with composition.
E. In Java technology, it is always implemented through the use of generics.
F. It always requires that at least two objects are involved in handling a request.
Correct: B, D, F
38. Which two statements are true about the Flyweight pattern? (Choose two.)
A. It allows a single instance of a class to virtually represent many instances.
B. When used approximately it can reduce memory demands on your servers.
C. It allows for many instances of a class to be controlled by a single instance.
D. It allows many tightly related, homogeneous objects to each maintain their own state.
B. When used approximately it can reduce memory demands on your servers.
C. It allows for many instances of a class to be controlled by a single instance.
D. It allows many tightly related, homogeneous objects to each maintain their own state.
Correct: A, B
39. Which two techniques can used to provide polymorphic behavior? (Choose two.)
A. extending a class and adding a new method
B. implementing two interfaces in the same class
C. extending a class and overriding an existing method
D. implementing an interface with several different classes
B. implementing two interfaces in the same class
C. extending a class and overriding an existing method
D. implementing an interface with several different classes
Correct: C, D
40. As a project architect, you are selecting technologies for a complex, n-tier web application's virtual platform. At this stage in the project, which two technologies should be of primary consideration? (choose two.)
A. RMI
B. Linux
C. JDBC
D. Firefox
E. Tomcat
B. Linux
C. JDBC
D. Firefox
E. Tomcat
Correct: A, C
Monday, February 9, 2009
SCEA1.5 - My Experience
Hi I have attended SCEA5.0 recently, I'm updating all the information from my experience and posted the material that I have prepared as part of my preparation.
It consists of all the questions on new technologies and new versions exactly to say J2EE 1.5 technologies.
Below are the types of questions that I have faced:
Which one to use JSF , JSP, Servlets
Which one to use JPA, JDO or JDBC
Which one to use EJB3.0 or older
Which one to use web services, SOA, session beans, JMS
Security questions from JAAS
Desing Patterns
The below topics are mandatory to prepare:
EJB3.0,
Web Services (JAX-WS, JAX-RPS)
XML binding JAXB,(i think SaTX)
EJB3.0JPA, JDO
SOA
JMS
GOf Desgin patterns
J2EE design patterns
JSF etc.,
Here is the tutorial for which sun is covering the exam
http://java.sun.com/javaee/5/docs/tutorial/doc/gfirp.html
These are few questions from SCEA 1.5 exam (that i found on the net and repeated in the exam):
1.What are the three primary roles in a web service interaction? (Choose three.)
A.Broker
B.Facade
C.Provider
D.Decorator
E.Requestor
F.Interceptor
Correct:A C E
2.A stock trading company is writing a new application for stock market forecasting. A significantportion of the work required by the business logic involves navigating through the persistentobject model. As lead architect on this project, you have chosen JPA over EJB2 entity beans toimplement these persistent objects. You have done this to maximize performance whennavigating through the model. Why does JPA offer better performance for this task?
A.JPA guarantees referential integrity at the object level.
B.JPA allows the application to specify lazy or eager retrievals.
C.JPA simplifies the source code that implements the object model.
D.The guaranteed referential integrity in EJB2 entity beans is expensive.
Correct:B
3.A developer creates a Java web service to be used by consumers in an SOA. This SOA uses aUDDI service registry. How can the developer make the new service available to consumers?A.deploy to the registry using JAXR
B.publish to the registry using JAXR
C.query the registry using JAXRPC
D.target the registry using JAXRPC
Correct:B
4.With the release of a new product line, there has been a significant increase in the volume oftransactions on your web site. You need to scale your application and manage session failover.What is the best option for scalability?
A.add additional web servers and application servers
B.introduce a High Availability pair and utilize sticky sessions
C.add additional application servers and implement DNS round robin
D.add additional application servers and use clustered HttpSession
Correct:D
5.You are asked to architect an SOA solution that leverages Java web services. The architectureneeds to be flexible and allow for the SOAP 1.1, SOAP 1.2, and REST implementations. Which JavaEE technology should you use?
A.JAXP
B.JAXB
C.JAXWS
D.JAXRPC
Correct:C
For Java related information please visit my other blog
http://java-issues-solutions.blogspot.com/2009/02/java-issues-and-solutions-1.html
it will have few java issues and solutions for them.
It consists of all the questions on new technologies and new versions exactly to say J2EE 1.5 technologies.
Below are the types of questions that I have faced:
Which one to use JSF , JSP, Servlets
Which one to use JPA, JDO or JDBC
Which one to use EJB3.0 or older
Which one to use web services, SOA, session beans, JMS
Security questions from JAAS
Desing Patterns
The below topics are mandatory to prepare:
EJB3.0,
Web Services (JAX-WS, JAX-RPS)
XML binding JAXB,(i think SaTX)
EJB3.0JPA, JDO
SOA
JMS
GOf Desgin patterns
J2EE design patterns
JSF etc.,
Here is the tutorial for which sun is covering the exam
http://java.sun.com/javaee/5/docs/tutorial/doc/gfirp.html
These are few questions from SCEA 1.5 exam (that i found on the net and repeated in the exam):
1.What are the three primary roles in a web service interaction? (Choose three.)
A.Broker
B.Facade
C.Provider
D.Decorator
E.Requestor
F.Interceptor
Correct:A C E
2.A stock trading company is writing a new application for stock market forecasting. A significantportion of the work required by the business logic involves navigating through the persistentobject model. As lead architect on this project, you have chosen JPA over EJB2 entity beans toimplement these persistent objects. You have done this to maximize performance whennavigating through the model. Why does JPA offer better performance for this task?
A.JPA guarantees referential integrity at the object level.
B.JPA allows the application to specify lazy or eager retrievals.
C.JPA simplifies the source code that implements the object model.
D.The guaranteed referential integrity in EJB2 entity beans is expensive.
Correct:B
3.A developer creates a Java web service to be used by consumers in an SOA. This SOA uses aUDDI service registry. How can the developer make the new service available to consumers?A.deploy to the registry using JAXR
B.publish to the registry using JAXR
C.query the registry using JAXRPC
D.target the registry using JAXRPC
Correct:B
4.With the release of a new product line, there has been a significant increase in the volume oftransactions on your web site. You need to scale your application and manage session failover.What is the best option for scalability?
A.add additional web servers and application servers
B.introduce a High Availability pair and utilize sticky sessions
C.add additional application servers and implement DNS round robin
D.add additional application servers and use clustered HttpSession
Correct:D
5.You are asked to architect an SOA solution that leverages Java web services. The architectureneeds to be flexible and allow for the SOAP 1.1, SOAP 1.2, and REST implementations. Which JavaEE technology should you use?
A.JAXP
B.JAXB
C.JAXWS
D.JAXRPC
Correct:C
For Java related information please visit my other blog
http://java-issues-solutions.blogspot.com/2009/02/java-issues-and-solutions-1.html
it will have few java issues and solutions for them.
Sunday, February 8, 2009
SCEA 5.0 - Exam Questions - 2
Few more Questions for SCEA 5.0:
6. You are architecting an online ordering application with these requirements: Users access the system over the Internet using HTML. An email message is sent to the user confirming the order.
Users must log in and are validated using LDAP. The product catalog is stored in a relationaldatabase. All orders are logged to the internal fulfillment system. Orders must not be lost.
WhichJava EE technology should be used to send orders to the fulfillment system?
A.JNDI
B.JMS
C.JAXWS
D.RMI IIOP
Correct:B
7.An online sporting goods store's web application uses HTTPSession to store shopping carts.When the application is initially deployed, the business plan predicts only a few customers willaccess the site. Over time, the store projects a steady increase in volume. The deployment plancalls for a single web container in the initial deployment. As demand increases, the plan calls formultiple web containers on separate hardware with clustered HTTPSession objects. Which twoprinciples will help the application meet the requirements and optimize performance? (Choosetwo.)
A.The application should store as much as possible in HTTPSession objects.
B.The application should NOT make frequent updates to HTTPSession objects.
C.The application should make coarsegrainedupdates to HTTPSession objects.
D.The application should create new HTTPSession objects instead of updating existing objects.
Correct:B C
8.You are writing a utility that searches for existing web services provided by large companiesthrough UDDI. Your web site allows the user to input search criteria using eventdriven,statemanagedGUI screens, performs the search, and displays them in a formatted HTML page.Which technologies would you use for this application?
A.JSP and JAXB
B.JSF and JAXR
C.JSF and JAXWS
D.JSP and JAXWS
Correct:B
9.A company has a web service that provides the most recent price for stocks, mutual funds, andcommodities. The company has the only web service that allows a person to check prices on allthree financial assets with one call. Its system does not store this information but sends individualcalls to each of the primary vendors for an asset and then aggregates the response to therequester. The company has committed to support a nonfunctionalrequirement (NFR) forperformance that states it must process all requests within three seconds and each of the threevendors is obligated to support the NFR as dictated by the company.
Where, in the message flow,is it appropriate to measure whether all the NFRs are met?
A.when a request is received and a response is sent to the requester
B.when a request is received, first call to vendor, last response from vendors, response is sent to arequester
C.when a requester sends a request, the request is received, each call to vendor, each response fromvendor, requester receives response
D.when a request is received, each call to vendor, each response from a vendor, a response is sent to arequester
Correct:D
10.A Java web component, EJB component, or another web service can be a client to a webservice. Which Java API can the client use to access the web service through a Service EndpointInterface?
A.JAXB
B.JAXR
C.JDBC
D.JAXWS
Correct:D
11.Which three are parts of a SOAP message? (Choose three.)
A.SOAP body
B.SOAP endpoint
C.SOAP headers
D.SOAP handlers
E.SOAP attachments
Correct:A C E
12.You are integrating with a single legacy Enterprise Information System. You are interested inthe transaction management capabilities of the Java Connector Architecture. This new systemneeds the capability to invoke multiple operations against this single legacy system. Theseoperations succeed together or fail together as a group. To which minimum level of transactionmanagement are you going to set your resource adapter?
A.No transaction
B.Local transaction
C.Distributed transaction
D.Container Managed transaction
Correct:B
13.What is an advantage of XML over HTTP, as compared to SOAP over HTTP, for web services?
A.guaranteed delivery
B.more security options
C.smaller message size
D.strongly typed parameters
Correct:C
14.An application needs to invoke a service on a remote system over a low latency connection,and then wait for a response. Which two are best for this type of invocation? (Choose two.)
A.JMS topic
B.JMS queue
C.RMI over IIOP
D.synchronous web service
E.asynchronous web service
Correct:C D
15.Your new architecture needs to access the business logic of an Enterprise Information Solution(EIS). What are three benefits of using the Java Connector Architecture to connect to EIS insteadof implementing a proprietary solution? (Choose three.)
A.security
B.performance
C.loose coupling
D.connection pooling
E.Common Client Interface
Correct:A D E
16.Your web application requires access to several different services, so you created a ServiceLocator class to be used by the UI developers on the team. New services with different interfacesare occasionally added. Unfortunately, the caching benefits of the Service Locator class are NOTbeing realized because a new instance of this class is being created in every backing beanmethod that requires a service.
Which pattern should you apply to eliminate this problem?
A.Bridge
B.Singleton
C.Prototype
D.Factory Method
E.Business Delegate
Correct:B
17.What are two benefits of using the Value List Handler pattern? (Choose two.)
A.improves network performance
B.facilitates exposing existing services
C.provides an alternative to potentially inefficient EJB finders
D.facilitates postprocessingacross heterogeneous requests
E.provides a mechanism to support shared elements of composite views
Correct:A C
18.What are two capabilities of the Abstract Factory pattern? (Choose two.)
A.creates wholeparthierarchies
B.creates families of related objects
C.enforces dependencies between concrete classes
D.specifies the types of objects to create using a sample instance
E.separates the construction of a complex object from its representation
Correct:B C
19.A teenage fashion web site, includes a set of pages for displaying and browsing their catalog,as well as pages for making fashion suggestions that also display tables of catalog entries.Currently, the JSP code uses scriptlets that perform database SELECT statements and format theresults in HTML tables. You have been hired to help reduce the maintenance overhead when eitherthe look is modified or the database schema changes.
Which two patterns, used together, do youapply to reduce this maintenance overhead? (Choose two.)
A.View Helper
B.Front Controller
C.Composite View
D.Data Access Object
Correct:A D
20.A new security feature has been requested for an existing web application with the followingrequirements: All requests must be logged to a secure database. Each request must betimestampedwith the start and completion times. Each request must contain the IP address ofthe client that made the request.
Which pattern is most applicable for this new feature?A.Strategy
B.Front Controller
C.Abstract Factory
D.Intercepting Filter
E.Model View Controller
Correct:D
21.Which two are benefits of using the Intercepting Filter pattern? (Choose two.)
A.allows the recombination of filters
B.provides efficient data sharing between filters
C.facilitates creating a generic command interface
D.facilitates common processing across heterogeneous requests
E.helps to minimize coupling between the presentation and business tiers
Correct:A D
22.You are building a subsystem that has several complex components, but you want to hide thatcomplexity from the client code.
Which pattern can you apply to hide this complexity?A.Proxy
B.Bridge
C.Adaptor
D.Facade
E.Decorator
Correct:D
23.Some media players use a virtual proxy for image loading.
What is the benefit of using a virtualproxy?
A.It controls access to the original object.
B.It defers creation of expensive objects until necessary.
C.It provides a local representation for an object in a different address space.
D.It is a replacement for a bare pointer that performs additional actions when an object is accessed.
Correct:B
24.Your company's web site is supported with a cluster of loadbalancedweb servers and adatabase server. To reduce expenses, your company must replace your current cluster of webservers with a single web server. All servers under consideration have the same specification.
Which three items will be negatively impacted by this rearchitecture?(Choose three.)
A.security
B.reliability
C.scalability
D.availability
E.manageability
F.maintainability
Correct:B C D
25.A company manufactures widgets for sale to distributors. Distributors call this company when they want to order more widgets. The company wants the distributors to send orders using XML documents over the Internet to reduce the number of data entry personnel needed. It has no control over the distributor's technologies. The company does not want the orders to impact the performance of the other users. You have been assigned the task of designing the new API.
Which approach do you take?
A.design the API as a JMS queue
B.design the API as an RMI interface
C.design the API as a synchronous web service
D.design the API as an asynchronous web service
Correct:D
26.You have been tasked with improving the availability of an existing threetierapplication. Whatis your first step in evaluating what changes should be made to the architecture to achieve thegoal?
A.monitor network traffic between tiers
B.separate presentation from business logic
C.identify and document all single points of failure
D.cluster the presentation tier without session replication
Correct:C
27.Which nonfunctionalrequirement is a disadvantage for a twotierarchitecture?
A.security
B.reliability
C.availability
D.manageability
Correct:D
28.A travel company is designing an application to allow customers to browse for information onany flights operating domestically and to place new reservations on any of those flights. Thecompany makes the following assumptions: significant read volume, in terms of operations thecustomers will perform significant overlap, in the search criteria of customers simple processingof each customer browse/update request .
What advice can you give this company?
A.use a twotierarchitecture (rich client directly accessing the database) because running copies of thebusiness logic in each client provides significant advantages in terms of processing time per request
B.use a threetierarchitecture (thin client >application server >database) because executing businesslogic remotely on a central location results in better performance per request
C.use a threetierarchitecture (thin client >application server >database) because the shared businessserver allows them to cache information with high likelihood of cache hits, which reduces the load on thedatabase
D.use a twotierarchitecture (rich client directly accessing the database) because each client can operateon its own business objects, independently of others, which provides significant advantages from reducedlatency due to synchronization
Correct:C
29.A company provides call center support for corporations worldwide.Each agent in the callcenter can be assigned to multiple call center customers. All of the company's customers useWindowsbased user interfaces and it has just signed a new customer that uses a Java EEbackend and wants a rich interface. The company is developing a user interface for the newcustomer with the following requirements: Customer service representatives (CSRs) must be ableto work with minimal training on the application. CSRs must be able to switch between call centersystems quickly. Screens must have a Windows "look and feel." 2000 agents spread across fourlocations must be able to use the system.
What advice would you give this company on the userinterface (UI)?
A.write the UI using JSP and JSTL
B.write the UI using JSPs with embedded scriptlets
C.write the UI using Ajax, accessing servlets directly
D.write the UI using Java Swing and distribute using JNLP
Correct:D
30.A travel company decides to rearchitecttheir twotierapplication (where each client ran itsown copy of the application against a shared database) and hires you as their lead architect. Yousuggest they rearchitecttheir application as a browserbased,threetiersolution: presentation,business logic, and persistence. You also suggest they deploy each of the three tiers on its owncomputer.
Why is the three tier solution more scalable than the twotiersolution?
A.Every client runs its own GUI application. Clients do not compete for resources for presentationpurposes.
B.Clients share the same business logic tier. Clientspecificobjects can be stored centrally, optimizingaccess.
C.Every client shares the same business logic tier. Each client competes with each other for resources onthat JVM.
D.Clients share the same business logic tier. Duplicate effort can be avoided by sharing objects, reducingthe load on the database.
Correct:D
6. You are architecting an online ordering application with these requirements: Users access the system over the Internet using HTML. An email message is sent to the user confirming the order.
Users must log in and are validated using LDAP. The product catalog is stored in a relationaldatabase. All orders are logged to the internal fulfillment system. Orders must not be lost.
WhichJava EE technology should be used to send orders to the fulfillment system?
A.JNDI
B.JMS
C.JAXWS
D.RMI IIOP
Correct:B
7.An online sporting goods store's web application uses HTTPSession to store shopping carts.When the application is initially deployed, the business plan predicts only a few customers willaccess the site. Over time, the store projects a steady increase in volume. The deployment plancalls for a single web container in the initial deployment. As demand increases, the plan calls formultiple web containers on separate hardware with clustered HTTPSession objects. Which twoprinciples will help the application meet the requirements and optimize performance? (Choosetwo.)
A.The application should store as much as possible in HTTPSession objects.
B.The application should NOT make frequent updates to HTTPSession objects.
C.The application should make coarsegrainedupdates to HTTPSession objects.
D.The application should create new HTTPSession objects instead of updating existing objects.
Correct:B C
8.You are writing a utility that searches for existing web services provided by large companiesthrough UDDI. Your web site allows the user to input search criteria using eventdriven,statemanagedGUI screens, performs the search, and displays them in a formatted HTML page.Which technologies would you use for this application?
A.JSP and JAXB
B.JSF and JAXR
C.JSF and JAXWS
D.JSP and JAXWS
Correct:B
9.A company has a web service that provides the most recent price for stocks, mutual funds, andcommodities. The company has the only web service that allows a person to check prices on allthree financial assets with one call. Its system does not store this information but sends individualcalls to each of the primary vendors for an asset and then aggregates the response to therequester. The company has committed to support a nonfunctionalrequirement (NFR) forperformance that states it must process all requests within three seconds and each of the threevendors is obligated to support the NFR as dictated by the company.
Where, in the message flow,is it appropriate to measure whether all the NFRs are met?
A.when a request is received and a response is sent to the requester
B.when a request is received, first call to vendor, last response from vendors, response is sent to arequester
C.when a requester sends a request, the request is received, each call to vendor, each response fromvendor, requester receives response
D.when a request is received, each call to vendor, each response from a vendor, a response is sent to arequester
Correct:D
10.A Java web component, EJB component, or another web service can be a client to a webservice. Which Java API can the client use to access the web service through a Service EndpointInterface?
A.JAXB
B.JAXR
C.JDBC
D.JAXWS
Correct:D
11.Which three are parts of a SOAP message? (Choose three.)
A.SOAP body
B.SOAP endpoint
C.SOAP headers
D.SOAP handlers
E.SOAP attachments
Correct:A C E
12.You are integrating with a single legacy Enterprise Information System. You are interested inthe transaction management capabilities of the Java Connector Architecture. This new systemneeds the capability to invoke multiple operations against this single legacy system. Theseoperations succeed together or fail together as a group. To which minimum level of transactionmanagement are you going to set your resource adapter?
A.No transaction
B.Local transaction
C.Distributed transaction
D.Container Managed transaction
Correct:B
13.What is an advantage of XML over HTTP, as compared to SOAP over HTTP, for web services?
A.guaranteed delivery
B.more security options
C.smaller message size
D.strongly typed parameters
Correct:C
14.An application needs to invoke a service on a remote system over a low latency connection,and then wait for a response. Which two are best for this type of invocation? (Choose two.)
A.JMS topic
B.JMS queue
C.RMI over IIOP
D.synchronous web service
E.asynchronous web service
Correct:C D
15.Your new architecture needs to access the business logic of an Enterprise Information Solution(EIS). What are three benefits of using the Java Connector Architecture to connect to EIS insteadof implementing a proprietary solution? (Choose three.)
A.security
B.performance
C.loose coupling
D.connection pooling
E.Common Client Interface
Correct:A D E
16.Your web application requires access to several different services, so you created a ServiceLocator class to be used by the UI developers on the team. New services with different interfacesare occasionally added. Unfortunately, the caching benefits of the Service Locator class are NOTbeing realized because a new instance of this class is being created in every backing beanmethod that requires a service.
Which pattern should you apply to eliminate this problem?
A.Bridge
B.Singleton
C.Prototype
D.Factory Method
E.Business Delegate
Correct:B
17.What are two benefits of using the Value List Handler pattern? (Choose two.)
A.improves network performance
B.facilitates exposing existing services
C.provides an alternative to potentially inefficient EJB finders
D.facilitates postprocessingacross heterogeneous requests
E.provides a mechanism to support shared elements of composite views
Correct:A C
18.What are two capabilities of the Abstract Factory pattern? (Choose two.)
A.creates wholeparthierarchies
B.creates families of related objects
C.enforces dependencies between concrete classes
D.specifies the types of objects to create using a sample instance
E.separates the construction of a complex object from its representation
Correct:B C
19.A teenage fashion web site, includes a set of pages for displaying and browsing their catalog,as well as pages for making fashion suggestions that also display tables of catalog entries.Currently, the JSP code uses scriptlets that perform database SELECT statements and format theresults in HTML tables. You have been hired to help reduce the maintenance overhead when eitherthe look is modified or the database schema changes.
Which two patterns, used together, do youapply to reduce this maintenance overhead? (Choose two.)
A.View Helper
B.Front Controller
C.Composite View
D.Data Access Object
Correct:A D
20.A new security feature has been requested for an existing web application with the followingrequirements: All requests must be logged to a secure database. Each request must betimestampedwith the start and completion times. Each request must contain the IP address ofthe client that made the request.
Which pattern is most applicable for this new feature?A.Strategy
B.Front Controller
C.Abstract Factory
D.Intercepting Filter
E.Model View Controller
Correct:D
21.Which two are benefits of using the Intercepting Filter pattern? (Choose two.)
A.allows the recombination of filters
B.provides efficient data sharing between filters
C.facilitates creating a generic command interface
D.facilitates common processing across heterogeneous requests
E.helps to minimize coupling between the presentation and business tiers
Correct:A D
22.You are building a subsystem that has several complex components, but you want to hide thatcomplexity from the client code.
Which pattern can you apply to hide this complexity?A.Proxy
B.Bridge
C.Adaptor
D.Facade
E.Decorator
Correct:D
23.Some media players use a virtual proxy for image loading.
What is the benefit of using a virtualproxy?
A.It controls access to the original object.
B.It defers creation of expensive objects until necessary.
C.It provides a local representation for an object in a different address space.
D.It is a replacement for a bare pointer that performs additional actions when an object is accessed.
Correct:B
24.Your company's web site is supported with a cluster of loadbalancedweb servers and adatabase server. To reduce expenses, your company must replace your current cluster of webservers with a single web server. All servers under consideration have the same specification.
Which three items will be negatively impacted by this rearchitecture?(Choose three.)
A.security
B.reliability
C.scalability
D.availability
E.manageability
F.maintainability
Correct:B C D
25.A company manufactures widgets for sale to distributors. Distributors call this company when they want to order more widgets. The company wants the distributors to send orders using XML documents over the Internet to reduce the number of data entry personnel needed. It has no control over the distributor's technologies. The company does not want the orders to impact the performance of the other users. You have been assigned the task of designing the new API.
Which approach do you take?
A.design the API as a JMS queue
B.design the API as an RMI interface
C.design the API as a synchronous web service
D.design the API as an asynchronous web service
Correct:D
26.You have been tasked with improving the availability of an existing threetierapplication. Whatis your first step in evaluating what changes should be made to the architecture to achieve thegoal?
A.monitor network traffic between tiers
B.separate presentation from business logic
C.identify and document all single points of failure
D.cluster the presentation tier without session replication
Correct:C
27.Which nonfunctionalrequirement is a disadvantage for a twotierarchitecture?
A.security
B.reliability
C.availability
D.manageability
Correct:D
28.A travel company is designing an application to allow customers to browse for information onany flights operating domestically and to place new reservations on any of those flights. Thecompany makes the following assumptions: significant read volume, in terms of operations thecustomers will perform significant overlap, in the search criteria of customers simple processingof each customer browse/update request .
What advice can you give this company?
A.use a twotierarchitecture (rich client directly accessing the database) because running copies of thebusiness logic in each client provides significant advantages in terms of processing time per request
B.use a threetierarchitecture (thin client >application server >database) because executing businesslogic remotely on a central location results in better performance per request
C.use a threetierarchitecture (thin client >application server >database) because the shared businessserver allows them to cache information with high likelihood of cache hits, which reduces the load on thedatabase
D.use a twotierarchitecture (rich client directly accessing the database) because each client can operateon its own business objects, independently of others, which provides significant advantages from reducedlatency due to synchronization
Correct:C
29.A company provides call center support for corporations worldwide.Each agent in the callcenter can be assigned to multiple call center customers. All of the company's customers useWindowsbased user interfaces and it has just signed a new customer that uses a Java EEbackend and wants a rich interface. The company is developing a user interface for the newcustomer with the following requirements: Customer service representatives (CSRs) must be ableto work with minimal training on the application. CSRs must be able to switch between call centersystems quickly. Screens must have a Windows "look and feel." 2000 agents spread across fourlocations must be able to use the system.
What advice would you give this company on the userinterface (UI)?
A.write the UI using JSP and JSTL
B.write the UI using JSPs with embedded scriptlets
C.write the UI using Ajax, accessing servlets directly
D.write the UI using Java Swing and distribute using JNLP
Correct:D
30.A travel company decides to rearchitecttheir twotierapplication (where each client ran itsown copy of the application against a shared database) and hires you as their lead architect. Yousuggest they rearchitecttheir application as a browserbased,threetiersolution: presentation,business logic, and persistence. You also suggest they deploy each of the three tiers on its owncomputer.
Why is the three tier solution more scalable than the twotiersolution?
A.Every client runs its own GUI application. Clients do not compete for resources for presentationpurposes.
B.Clients share the same business logic tier. Clientspecificobjects can be stored centrally, optimizingaccess.
C.Every client shares the same business logic tier. Each client competes with each other for resources onthat JVM.
D.Clients share the same business logic tier. Duplicate effort can be avoided by sharing objects, reducingthe load on the database.
Correct:D
Subscribe to:
Posts (Atom)

