SCEA – questions

SCEA – questions -2

Question 1

Happy Joe Banking Corporation is building a Banking application to provide online access to their account holders. They have chosen 2 SUN 450s for their web server cluster and 1 SUN E10000 for their application server. The business requirements indicate that to become a customer, a person must have at least a primary checking account with the bank. Further since the customer will be using the Internet to view confidential information, security is considered paramount. What do you understand about the requirements of the system?

a) The need for Security is a classic example of a functional service level requirement and the checking account rule, an example of non-functional QoS requirement.  b) The discussion about Security and the mandatory checking account both illustrate functional service level requirements. 

c) Neither Security nor the mandatory Checking Account is examples of any kind of requirements, theoretically speaking. d) Security is an Architectural non-functional requirement and the Mandatory Checking Account a functional design requirement.

e) They are both examples of Business Use Cases.  

Question 2

 Nopester Inc., a CD manufacturer uses Metallic Corporation for making jewel cases. When the inventory of jewel cases falls under the reorder level, Nopester communicates with Metallic via faxes. Nopester now wants to build a solution for its supply chain management. Metallic uses a legacy system that supports CORBA interfaces for other companies to interface to them with. Metallic’s servers are protected by firewalls and will only let HTTP or HTTPS requests through. What is Nopester’s best option here?

a) Since Metallic will not let CORBA requests through, Nopester should continue sending faxes.  b) Nopester should take its business away to Metallic’s competitors.

c) Nopester should use the popular SOAP protocol since SOAP requests communicate over HTTP. d) Nopester should use a concept called HTTP tunneling to communicate with Metallic.

Question 3

Which of the following are not true about N-Tier Systems?

 

N-Tier systems are distributed over many systems and hence always present a maintenance problem.

N-Tier systems are generally component based and are therefore quite easy to maintain.

Since N-Tier systems do not use database stored procedures or triggers for business logic processing, they are generally very slow.

Since N-Tier systems are container based, many N-Tier systems can be easily scaled (both vertically and horizontally).

N-Tier systems suffer only from one drawback over client/server systems – N-Tier systems do not take advantage of resource sharing techniques like connection pooling.

N-Tier systems can use various techniques for Identification, Authentication and Authorization and are therefore considered quite secure.

 

a) 1 & 2

 

b) 2,5, & 6

 

c) 1, 2, & 5

 

d) 3 & 6

 

e) 1, 3, & 5

 

f) 1 & 5

 

Question 4

When remote calls are made on the container provided implementations of the EJBHome and EJBObject, various transactional and security checks are applied before the call is actually passed on to the bean instance. The Container provided implementations of EJBHome and EJBObject are performing what Design Pattern’s task?

a) Command  b) Adapter c) Bridge  d) Decorator e) Facade

Question 5

 

Compact Computers is a small computer assembly company. Their online application allows customers to pick and

 choose accessories to build their own PCs.

The accessories are:

i.Processor -800Mhz, 1Ghz, 1.2Ghz

ii. HDD – 40 GB, 60 GB, 80 GB

iii. Memory -128 MB, 256 MB, 512 MB

 

If a computer can have exactly 1 processor, 1 HDD and 1 memory stick, what pattern would be best used here?

 

a) Factory Method         b) Builder c) Prototype         d) Abstract Factory  e) Singleton  

Question 6

Ibid is an e-auction house that auctions refurbished products. Each product has a minimum bid price. Buyers can query the system for a list of products and then select a product to bid on. They can then place a higher bid on the selected product. Transactional Integrity is very important as dirty reads, non-repeatable reads and phantom reads can lead to data inconsistency. What technology combination might be most suitable for addressing Ibid’s needs?

a) Applets for presentation and JTA/JTS for transactional integrity.

b) HTML and JSP for presentation, and Servlets for data retrieval and transaction management.

c) Servlets and JSP for presentation, a stateful session bean with DAO for list retrieval and a stateless session bean for transaction management.

d) Servlets and JSP for presentation, a stateless session bean with DAO for list retrieval and CMT Entity bean for Transaction management.

e) Servlets and JSP for presentation, and a Java class to encapsulate database access and transaction management.

Question 7

Toysrfuss, a national toy store is creating a new e-front for Order processing. Customers have to create an account to transact with them, although an account is not required for browsing the catalog. Customers can browse items and add them to a shopping cart. They can then proceed to checkout. At this time, they can update quantities and submit the order. What technologies may be best suited for this application?

a. JSP for presentation and Servlets as controllers.

b. Servlets for presentation and JSP as controller.

c. Stateless Session Bean for Shopping cart.

d. Stateless session bean for catalog retrieval.

e. Stateful Session bean for shopping cart.

f. Stateful session bean for Order update.

g. Entity bean for Catalog retrieval.

h. Entity bean for Order update.

 

a) D, E, & G

 

b) A, B, E & H

 

c) A, D, E & H

 

d) B, E, F & G

Question 8

Which of the following statements about ‘Not Supported’ and ‘Never’ transactional attributes are true?

a. ‘Not Supported’ suspends any transaction until the method is completed whereas ‘Never’ throws a RemoteException when called with a transaction.

b. ‘Never’ suspends any transaction until the method is completed whereas ‘Not Supported’ throws a RemoteException.

c. If the method is called without any transactional scope, both attributes will work identically.

d. If the method is called with a transactional scope, both attributes will work identically.

a) A Only

b) A & C

c) C Only

d) None of the Above

Question 9

The findByXXX() method in the Home Interface of an entity bean returns ____.

a. An Instance of java.lang.Object

b. An instance of the Remote Reference to the bean

c. An instance of java.util.Enumeration

d. An instance of the Bean class

 

a) A

b) B & C

c) B

d) C & D

 Question 10

 EJB1.1 has support for undefined Primary Keys. This means that the Primary Key can be undefined until deployment time. When we use defined Primary Keys, the Bean class and the Interfaces use the BeanPK type to identify the key. What do the Bean class and the Interfaces refer to in the case of undefined Primary Keys?

 a) Though the Primary Key itself can be undefined, its name must be predetermined. The Bean class and the Interfaces use this name. b) An instance of java.util.Enumeration.

c) An instance of java.lang.Class.  d) An instance of java.lang.Object. 

Question 11

What are the benefits of Bean pooling?

a. Bean instances are created during startup, thus avoiding the expense of creation, each time a client requests it.

b. Bean pooling allows load distribution over several machines.

c. Bean pooling is the container’s way of balancing load – moving future requests from client to a different machine, if load increases are encountered.

d. Allows a container to use beans as flyweights.

a) A & D

b) A & B

c) C & D

d) B & D

Question 12

Status Quo is an emerging B2C company that has a portal through which customers can purchase clay jewelry. Since the order process involves a shopping cart, session management and secure access are required. How would you manage this?

a. Use HTTP since it is a stateful protocol.

b. Use HTTPS since it is a stateful protocol.

c. Use SOAP for state and security management.

d. Use CGI with cookies for state management.

 

a) A & D

b) B & C

c) D

d) B

Question 13

Chocolat, an exotic chocolate maker in France is planning to provide an e-front for chocolate sales. FedEx would ship the packages to various national and international locations. In order to customize the customer’s interaction with the system and to make his / her overall shopping experience more pleasant, Chocolat has decided to support Internationalization. What are some of the common things they would need to consider?

a. Language for messages

b. Formats (numeric, date and so on)

c. DMZ requirements

d. Taxes and legal rules

e. RSA f. MD5

a) A, B & D

b) B & C

c) A, B & E

d) B, D & E

Question 14  

Fire Hall is building a corporate Intranet and wants its employees to access payroll information via the Internet. They are implementing the solution via applets for richer GUI capabilities. The view 401K applet requires a Java 1.4 Plug in as well as read permission to read cached data from a temporary directory on the host where it’s being executed. Is the applet technology viable for this application?

 a) The applet technology is not viable because the sandbox model prevents them from reading or writing to the host where they are executed. b) The applet technology is a viable solution because the security policy of the Java 2 Platform is totally flexible.

 

 Question 15

 In the Publish subscribe messaging architecture, publishers send messages to:

 a) A specified node, which is then re-distributed to all subscribers.  b) Directly to all subscribers in the Topic subscription list.

c) A designated queue. d) A component transaction monitor such as an EJB Server for further processing by a message driven bean.

Question 16

You have just started a new job working for a top finance company and you have been asked to provide a user-friendly interface to an existing mainframe application. You don’t have any access to the mainframes source code. What is the best technique for this?

 

a) It can’t be done.

b) Use a screen scraper.

c) Re-write the main frame using Java and high-end Unix servers. Although it may takesome time to do this in the long run this will benefit the company.

d) Write a Java front end then use CORBA to communicate with the mainframe.

e) Use the Java Native Interface (JNI) to communicate with the mainframe.

f) Use object mapping.

g) Use JMS.

 Question 17

 Your 3-tier application has been running smoothly in a production environment for over 3 months. Due to a recent television campaign, you have started to experience three times the volume of normal traffic. Your architect has suggested that a round robin load distribution mechanism be employed to cope with the issue. How is DNS round robin going to be helpful in this situation?

 

 a) Splitting requests evenly amongst all back end servers.

 b) The proxy sits behind the backend servers monitoring the performance of each one. When it notices one is being used too much it will automatically forward requests to a different server.

c) Time each server has available.  d) A technique used to target certain requests to certain backend servers, e.g. All Servlet requests from one server and all static HTML from another

SCEA – questions -2


Leave a comment

0 Comments.

Leave a Reply

  • Read this materials also:
  • scea certification questions part 1
  • SCEA questions 2
  • scea certification questions part 2
  • SCEA Study guide
  • Application Server
  • SCEA Study materials
  • J2EE Interview Questions
  • EJB Interview Questions-1
  • EJB3 – The Basics
  • J2EE Interview Questions -4
  • Sitemap   Follow j2eetutorial on Twitter    

    Δ Top