Java EE 7 Application Developer v1.0 (1z0-900)

Page:    1 / 10   
Total 149 questions

Your web application requires logic to remember items that a user placed into a shopping cart.
Which two mechanisms should you use to associate that information with the user? (Choose two.)

  • A. HttpServletResponse objects
  • B. ServletContext objects
  • C. HttpSession objects
  • D. a database

Answer : BC


What will be the response to a HEAD request?

  • A. The findAll() method will be called and the employee list will be returned.
  • B. The findAll() method will be called and no employees will be returned.
  • C. No method will be invoked and no error will be returned.
  • D. No method will be invoked and a 404 error will be returned.

Answer : C

You are building the User Preferences page of an application. A user can change values, such as his or her name, password, address, company, and so on.
These values are sent to a CDI backing bean via AJAX when the user tabs out of each field. However, the values must be retained in the CDI bean and stored in the database only when the user clicks the Save button.
Which two scopes will allow your CDI bean to retain its state while the user is interacting with the User Preferences page? (Choose two.)

  • A. Dependent
  • B. View
  • C. Session
  • D. Request
  • E. Application

Answer : CD

A Persistence application locks entity x with a LockModeType.PESSIMISTIC_READ lock type. Which statement is true?

  • A. LockModeType.PESSIMISTIC_READ is the synonym of LockModeType.READ
  • B. This operation will force serialization among transactions attempting to read the entity data.
  • C. This operation will result in a TransactionRolledbackException if the lock cannot be obtained.
  • D. If the application updates the entity later, and the changes are flushed to the database, the lock will be converted to an exclusive look.

Answer : B


Which statement is true about Java methods that are exposed as Web Service operations by using JAX-WS API?

  • A. The @WebResult annotation must exist.
  • B. Method parameters and return types must be JAXB compatible.
  • C. Method parameters must be declared by using @WebParam.
  • D. The @WebMethod annotation must exist.

Answer : D

Given the code fragment:

What output will be returned when this servlet is called a GET request?

  • A. Service() method called.
  • B. Service() method called.Get() method called.
  • C. An HTTP error
  • D. GET() method called.

Answer : A

Give the code fragment:

And the code fragment:

The sendConfirmation() and reserve() methods should be executed in the same transactional context.
Which transaction attributes do you ensure this?

  • A. Add annotations: @TransactionAttribute (TransactionAttributeType.REQUIRES_NEW) at line 2, @Transactional at line 9 and @TransactionAttribute ((TransactionAttributeType.MANDATORY) at line 12
  • B. No additional annotations are required.
  • C. Add annotations: @TransactionAttribute (TransactionAttributeType.REQUIRED) at line 2, @Transactional at line 9 and @TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12
  • D. Add annotations: @TransactionAttribute (TransactionAttributeType.MANDATORY) at line 2, @Transactional at line 9 and @TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12

Answer : D

Given the JPQL code fragment:
Select pub.title,, pub.pages FROM Publisher pub
Which two clauses do you add to this JPQL query to retrieve only those books with between 500 and 750 total pages? (Choose two.)

  • A. WHERE MIN(pages) >= 500 AND MAX(pages) <= 750
  • B. WHERE pub.pages <= 500 OR pub.pages >= 750
  • C. WHERE pub.pages BETWEEN 500 AND 750
  • D. WHERE pub.pages <= 500 AND pub.pages >=750

Answer : AB

Given the following class definition with numbered lines:

How do you specify to use this mock CDI bean implementation instead of the regular implementation class?

  • A. Use the alternatives element in the beans.xml file and specify the class name in the class element within it.
  • B. Start up the server with the optional ""alternative command-line option, specifying any alternative class names in a comma-separated list.
  • C. Reorder the implementation names in the beans.xml file such that the desired alternative is listed earlier.
  • D. Delete the regular implementation class from the WAR.

Answer : B

You have a high value item that you want to audit on an unscheduled basis to deter pilfering.
Which method would you use to do this?

  • A. ABC Count
  • B. Physical Inventory Count
  • C. Automated Cycle Count
  • D. Manual Cycle Count
  • E. Blind Inventory Count

Answer : D

Reorder quantities for an item subinventory are calculated using Fixed Lot Multiple and Round Order Quantity. Assume that the reorder quantity is 24 and you specify 10 for the fixed lot multiple and enable rounding the reorder quantity.
What will be the reorder quantity?

  • A. 30
  • B. 20
  • C. 24
  • D. 25

Answer : A

Which three applications originate a buy request that is received by supply chain orchestration?

  • A. Purchasing
  • B. Inventory
  • C. Order Management
  • D. Planning
  • E. Self Service Procurement
  • F. Accounts Payable

Answer : BCD

Your customer has defined three business units: two of the them require the same set of receivables payment terms whereas the third needs a separate set of receivables payment terms.
How will you receive this requirement?

  • A. Define one data set with common payment terms and exclude the payment terms feature from the third business unit.
  • B. Define one reference data set and modify the business unit security.
  • C. Define two reference data sets, assign the first set to the two business units which will share the same payment terms and second set to the business unit which need separate payment terms.
  • D. Define three reference data sets and assign each data set to each business unit.

Answer : C

What are two outcomes when a lot expires on an item with lot control enabled?

  • A. It remains an inventory, but is not considered on-hand when the user is performing min-max or reorder point planning calculations.
  • B. It is issued out of stores.
  • C. It cannot be transacted.
  • D. It is not included in cycle counts.
  • E. It cannot be reserved for a date beyond the expiration date.

Answer : AE

Your organization is planning for a periodic counting of individual items automatically throughout the course of the year. As part of this activity, the user has loaded items to the cycle count but some of the items are not being considered when count schedules and count sequences are not generated.
Identify two reasons that explain why the items are not being considered.

  • A. The ABC assignment group is not defined.
  • B. The Include in Schedule option is not selected to include the item for auto-scheduling.
  • C. The Cycle Count Enabled flag is not selected for the inventory organization.
  • D. The Cycle Count Enabled flag is not selected for the item.
  • E. The approval controls are not set up.

Answer : DE

Page:    1 / 10   
Total 149 questions