Skip to main content

1Z0-900 Real Exam Questions

Java EE 7 Application Developer

142 questions available · Page 1 of 15

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Your customer decides to implement Cloud Procurement and Inventory. While discussing with your customer, you come to know that they have a business that spans across multiple locations and they have warehouse situated across USA and Canada.

1. All their procurement, payables, and distribution activities take place from USA.
2. They have a central warehouse in USA and after the goods are delivered to this warehouse, they are distributed across multiple additional warehouses. The warehouses are managed separately from the requisitioning units.
3. For requesting material they have two units. One located in USA that monitors the current stock. They are responsible for creating requisition for any material shortage in USA. They have another location in Canada for requesting material.

Which setup fulfills this scenario?

  1. A

    BU1: USA - as procurement and requisitioning Business Unit (BU) BU2: Canada - as requisitioning Business Unit Define Service provider relationship where Canada procurement business unit serves as procurement and payables service provider for Canada Requisitioning Business Unit.

  2. B

    BU1: USA - as procurement business unit (BU)
    BU2: Canada - as requisitioning business unit BU3: USA - as requisitioning business unit Define Service provider relationship where USA procurement business unit serves as procurement and payables service provider for Canada Requisitioning Business Unit.

  3. C

    BU1: USA - as procurement business unit (BU)
    BU2: Canada - as requisitioning business unit

    BU3: USA - as requisitioning business unit Define Service provider relationship where Canada procurement business unit serves as procurement and payables service provider for Canada Requisitioning Business Unit.

  4. D

    BU1: USA - as procurement business unit (BU)
    BU2: Canada - as requisitioning business unit BU3: USA - as requisitioning business unit Define Service provider relationship where USA procurement business unit serves as procurement and payables service provider for both Canada and USA requisitioning Business Units.

Show answer and explanation

Correct answer: A

Question 2 Single choice

When should a JPA entity implement the Serializable interface?

  1. A

    when JPA entities are used in the EJB Full container

  2. B

    when JPA entities are used outside of the EJB Lite container

  3. C

    always, because JPA entities are required to implement the Serializable interface

  4. D

    when JPA entities are used as parameters or return values by the remote EJB operations

Show answer and explanation

Correct answer: D

Explanation

References:
https://stackoverflow.com/questions/2020904/when-and-why-jpa-entities-should-implement-serializable-interface

Question 3 Single choice

Which is a valid description of REST?

  1. A

    REST provides the same architectural properties as SOAP.

  2. B

    REST is a library that is part of JEE called JAX-RS.

  3. C

    REST is the conventional way of interacting with information resources.

  4. D

    REST is a Web Services standard supported by JEE and JAX-RS.

Show answer and explanation

Correct answer: D

Explanation

References:
https://docs.oracle.com/javaee/6/tutorial/doc/giepu.html

Question 4 Multiple choice

You need to exchange large binary messages using chunks in a WebSocket application. Identify two ways in which you can receive partial messages. (Choose two.)

  1. A

    Define an @OnMessage method with a single MimePart parameter.

  2. B

    Use a ChunkListener interface implementation.

  3. C

    Use a MessageHandler.Partial<ByteBuffer> interface implementation.

  4. D

    Define an @OnMessage method with byte [] as the first parameter and a boolean as the second parameter.

Show answer and explanation

Correct answers: C, D

Explanation

References:
https://abhirockzz.gitbooks.io/java-websocket-api-handbook/content/Receiving%
20Messages.html

Question 5 Multiple choice

Which two approaches would result in the current date being added to the output of a JSP? (Choose two.)

  1. A

    <%= out.printIn(new java.util.Date()) %>

  2. B

    <% out.printIn(new java.util.Date()); %>

  3. C

    <%= new java.util.Date() %>

  4. D

    <% System.out.printIn(new java.util.Date()); %>

Show answer and explanation

Correct answers: A, C

Explanation

References:
http://www.ntu.edu.sg/home/ehchua/programming/java/javaserverpages.html

Question 6 Single choice

Given:

What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?

  1. A

    @Stateless @PassivationCapable

  2. B

    @Stateless

  3. C

    @Stateful @PassivationCapable

  4. D

    @Stateful

Show answer and explanation

Correct answer: D

Explanation

References:
https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln

Question 7 Single choice

Your organization is using min-max planning to replenish stock and the planning parameters are set at item organization level with a default subinventory.

Item: A, Min Qty: 25, Max Qty: 150 and Current Level: 20 The item above is purchased from a supplier. Although there is subinventory on hand, the subinventory is below the minimum required level. This should trigger a Min-Max report entry, but the requisition is not generated.

Why?

  1. A

    Fixed lot multiplier is not set.

  2. B

    No value has been set for the "Min-Max Replenishment Reorder Approval" profile.

  3. C

    Min-Max planning can be performed at the Organization level.

  4. D

    Rounding the Reorder Quantity is disabled.

  5. E

    Item is not defined in Manage Item Subinventories.

Show answer and explanation

Correct answer: E

Question 8 Single choice

How can you inject a target web service into an EJB?

  1. A

    Define service as an injectable resource by using the <resource-ref> declaration.

  2. B

    Use a HandlerChain.

  3. C

    Use a java.xml.ws.WebServiceRef annotation.

  4. D

    Use a java.xml.ws.WebServiceContext annotation.

Show answer and explanation

Correct answer: A

Question 9 Single choice

Which statement is true about the WS-Security standard?

  1. A

    It is a Java EE standard for protecting SOAP services.

  2. B

    It relies on HTTP security mechanism to protect SOAP messages in transmit.

  3. C

    It provides message-level security.

  4. D

    It defines protocol-specific ways of protecting SOAP messages.

Show answer and explanation

Correct answer: C

Explanation

References:
https://docs.oracle.com/cd/E19226-01/820-7627/gjiou/index.html

Question 10 Single choice

Given the code fragment:

How can you apply DateConverter to the birthday field?

  1. A

    by adding @Convert(to=Date.class) at line 3

  2. B

    by invoking the setConverter(DateConverter.class) method on the EntityManager object

  3. C

    by adding @Converter(autoApply=true) at line 1

  4. D

    by adding @Convert((DateConverter.class)) at line 2

Show answer and explanation

Correct answer: A