310-092 Exam
Sun Cert Bus Component Developer Java EE Platform5. Upgrade
- Exam Number/Code : 310-092
- Exam Name : Sun Cert Bus Component Developer Java EE Platform5. Upgrade
- Questions and Answers : 150 Q&As
- Update Time: 2013-04-05
-
Price:
$ 119.00$ 69.00 -
310-092 Hard Copy (PDF)
-
310-092 Test Engine
Free 310-092 Demo Download
Test4pass offers free demo for SCBCD 310-092 exam (Sun Cert Bus Component Developer Java EE Platform5. Upgrade). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
Exam Description
It is well known that 310-092 exam test is the hot exam of SUN certification. Test4pass offer you all the Q&A of the 310-092 real test . It is the examination of the perfect combination and it will help you pass 310-092 exam at the first time!
Why choose Test4pass 310-092 braindumps
Quality and Value for the 310-092 Exam
100% Guarantee to Pass Your 310-092 Exam
Downloadable, Interactive 310-092 Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.
Test4pass 310-092 Exam Features
Quality and Value for the 310-092 Exam
Test4pass Practice Exams for SUN 310-092 are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your 310-092 Exam
If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the SCBCD 310-092 exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
SUN 310-092 Downloadable, Printable Exams (in PDF format)
Our Exam 310-092 Preparation Material provides you everything you will need to take your 310-092 Exam. The 310-092 Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.
310-092 Downloadable, Interactive Testing engines
We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our SUN 310-092 Exam will provide you with free 310-092 dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 310-092 Exam:100% Guarantee to Pass Your SCBCD exam and get your SCBCD Certification.
Hot KeyWords On 310-092 test
We collect some hot keywords about this exam:
Test4pass , Pass 4 Sure , Test in Side ,Pass Guide ,Test King 310-092 exam | 310-092 pdf exam | 310-092 braindumps | 310-092 study guides | 310-092 trainning materials | 310-092 simulations | 310-092 testing engine | 310-092 vce | 310-092 torrent | 310-092 dumps | free download 310-092 | 310-092 practice exam | 310-092 preparation files | 310-092 questions | 310-092 answers.
How to pass your 310-092 exam
You can search on Search Engine and Find Best IT Certification site: Test4pass.com - Find the Method to succeed 310-092 test,The safer.easier way to get SCBCD Certification SUN Other Certifications Certification .
��
Exam : SUN 310-092
Title : Sun Cert Bus Component Developer Java EE Platform 5, Upgrade
1. An Application Assembler is given the following stateless session bean:
10. @Stateless public class MyBean implements MyInt {
11. @RolesAllowed("SECRET")
12. public void methodA(int x) {}
13. public void methodA(String y) {}
14. public void methodB(String z) {}
15. }
A deployment descriptor is also supplied, a portion of which reads as follows:
20.
21.
22.
23.
24.
25.
26.
Which statement is true?
A. A client in any role will be able to access any of the methods.
B. A client in the role "AGENT" will be able to access any of the methods.
C. A client in the role "SECRET" will be able to access any of the methods.
D. A client in the role "AGENT" will be able to access methodB and methodA(String), but not methodA(int).
E. A client in the role "SECRET" will be able to access methodA(int) and methodB, but NOT methodA(String).
Answer: B
2. Which two are true about EJB 3.0 exception classes? (Choose two.)
A. The javax.ejb.NoSuchEJBException is an application exception.
B. The javax.ejb.EJBException extends java.lang.RuntimeException.
C. The javax.ejb.EJBTransactionRequiredException is an application exception.
D. An application exception must NOT be a subclass of java.rmi.RemoteException.
E. The javax.ejb.EJBTransactionRolledbackException is an application exception.
F. Any subclass of java.lang.RuntimeException is always considered a system exception.
Answer: BD
3. Which statement about the combination of mapping defaults, annotations, and XML descriptors is correct?
A. All mapping annotations must always be processed by the persistence provider.
B. Some annotations, like the @Entity annotation, must always be processed by the persistence provider.
C. The mapping information for an entity class specified by annotations and in XML descriptors must be distinct.
D. If multiple entity listeners are defined, the order in which they are invoked can be defined or overwritten in the XML descriptor.
Answer: D
4. A developer wants to create a business interface for both local and remote usage. For performance reasons the remote interface should NOT be called by a client in the same JVM. Which statement is required to accomplish this, assuming there is no deployment descriptor?
A. The business methods are defined in one interface which must be annotated with both @Local and @Remote.
B. The business methods are defined twice in one interface. One method is annotated with @Local and the other is annotated with @Remote.
C. The business methods are defined in a common interface by two other interfaces which are annotated with @Local and @Remote respectively. The bean implements the super interface.
D. The business methods are defined in a common interface. It is extended by two interfaces, annotated with @Local and @Remote respectively. Both interfaces are implemented by the bean class.
Answer: D
5. A Java Persistence application uses entities mapped to tables from two datasources in the same transaction. What statement is correct?
A. This is NOT possible.
B. The entities must be packaged into two persistence units.
C. The entities can be packaged into a single persistence unit
D. The entities must be packaged using two different persistence.xml files.
Answer: B
6. A developer wants to create a Java Persistence query that will include a subquery. Which three are true? (Choose three.)
A. Subqueries can be used in a FROM clause.
B. Subqueries can be used in a WHERE clause.
C. The ANY expression can be used only with a subquery.
D. The EXISTS expression can be used only with a subquery.
E. The MEMBER expression can be used only with a subquery.
Answer: BCD
7. A developer writes an enterprise application and packages it into an .ear file. The application contains two persistence units defined at the .ear level with persistence unit names FooPU and BarPU. The application also contains an ejb-jar with one stateless session bean. Which code, when added to the stateless session bean class, injects an EntityManagerFactory at runtime?
A. @PersistenceUnit
private EntityManagerFactory emf;
B. @PersistenceContext
private EntityManagerFactory emf;
C. @PersistenceUnit(unitName="BarPU")
private EntityManagerFactory emf;
D. @Resource(name="BarPU", type=EntityManagerFactory.class)
private EntityManagerFactory emf;
Answer: C
8. A stateful session bean contains a number of instance variables. The types of instance variables A and B are NOT serializable. Instance variable B is a complex type which is populated by many business calls, and can, therefore, NOT be refilled by the client without starting all over. A helper instance variable C is defined as having a Serializable type, and can hold all the information which is in variable B. For example, B is of type XML-DOM Tree and C of type String. Which two solutions, when combined, maintain the state of the session bean over a passivation and activation by the container? (Choose two.)
A. The value of helper variable C is used to create the value of instance variable B in the beans no-arg constructor.
B. The value of helper variable C is used to create the value of instance variable B in a @PostCreate annotated method.
C. The value of helper variable C is used to create the value of instance variable B in a @PostActivate annotated method.
D. Instance variable A must be made null and instance variable B must be converted to a Serializable type and assigned to another instance variable in a @PreDestroy annotated method.
E. Instance variable A must be defined transient. Instance variable B must be converted to a Serializable type, set to null, and assigned to the instance variable C in a @PrePassivate annotated method.
Answer: CE
9. A Java EE 5 application contains a session bean which uses a security role USER. A group called people is defined in an LDAP server. Which two define appropriate EJB role responsibilities? (Choose two.)
A. The deployer defines and configures the LDAP realm.
B. The system administrator defines and configures the LDAP realm.
C. The deployer maps the application role USER to the LDAP group people.
D. The system administrator maps the application role USER to the LDAP group people.
Answer: BC
10. Which two statements are true? (Choose two.)
A. All types of enterprise beans can be transaction-aware.
B. Typically, fine-grained objects, such as an employee record, should be remotely accessible.
C. The client view of any given enterprise bean will be consistent across all EJB 3.0 containers without the need to recompile the bean.
D. As long as a given enterprise bean is NOT recompiled, its security attributes are guaranteed to be consistent across all EJB 3.0 containers in which it is deployed.
Answer: AC
11. A User entity is in a one-to-many relationship with a Book entity.
A developer writes a query to delete users that have a first name of 'Fred' or 'Ginger', and writes the following Java Persistence query language statement:
DELETE FROM User u WHERE u.name IN ('Fred', 'Ginger')
If the query fails with a PersistenceException, what can be the cause?
A. The syntax of the query is NOT correct.
B. The query causes a foreign key integrity constraint to be violated.
C. The database does NOT have any users with the name 'Fred' or 'Ginger'.
D. The entities corresponding to the users with the name 'Fred' or 'Ginger' are already being managed by the persistence context.
Answer: B
12. A developer is creating an entity which is mapped to a table that has a primary key constraint defined on two character columns and would like to use mapping defaults as much as possible to simplify the code. Which two mapping options can be chosen? (Choose two.)
A. Use an @Id property that constructs a private field as a concatenation of two columns.
B. Use a separate class to map those two columns and use an @IdClass annotation to denote the primary key field or property in the entity.
C. Use a separate @Embeddable class to map those two columns and use an @EmbeddedId annotation to denote a single primary key field or property in the entity.
D. Use a separate @Embeddable class to map those two columns and add two fields or properties to the entity, each marked as @Id, that correspond to the fields or properties in the embeddable class.
E. Use a separate class to map those two columns. Specify that class using @IdClass annotation on the entity class. Add two fields or properties to the entity, each marked as @Id, that correspond to the fields or properties in that separate class.
Answer: CE
13. The Java Persistent API defines certain rules for persistent entities. These rules are required by the persistent provider to manage entities at runtime. Which statement is correct, assuming NO mapping descriptor is used?
A. Entities must extend a persistent base class.
B. Entities must implement the interface PersistentEntity to be managed by the persistent provider.
C. A field without a transient modifier must be annotated as @Persistent to be stored in the database.
D. A field without a transient modifier must be annotated as @Transient to NOT be stored in the database.
Answer: D
14. A developer maps the abstract entity class Account with concrete entity sub-classes CreditCardAccount and SavingsAccount using the single table per class hierarchy strategy. Which two statements are true? (Choose two.)
A. Instances of CreditCardAccount and SavingsAccount are stored in the same table.
B. All columns that correspond to fields declared in Account must be defined as nullable in the database.
C. The fields declared in Account are stored in a different table than the ones declared in CreditCardAccount and SavingsAccount.
D. All columns that correspond to fields declared in CreditCardAccount or SavingsAccount must be defined as nullable in the database.
Answer: AD