Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Oracle 1z0-900 Dumps

Page: 1 / 5
Total 142 questions

Java EE 7 Application Developer Questions and Answers

Question 1

Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API? (Choose two.)

Options:

A.

protecting data from unauthorized viewing by using encryption

B.

verifying that a user is allowed to perform an action

C.

ensuring that data is not modified in transit

D.

verifying identity claims from users

Question 2

A user is performing a material return transaction against access stock in an Inventory organization; however, the user fails to select the Physical Material Return Required check box.

What happens?

Options:

A.

It is considered as accounting-only return.

B.

Stock is reserved.

C.

A transfer order line remains open.

D.

Shipment lines are created.

Question 3

Given the code sample:

And:

And:

And the next fragment from beans.xml:

And this injection point:

@Inject GenericMessenger messageHandler;

Which type would be injected at run time and referenced by the messageHandler variable?

Options:

A.

SmsHandler

B.

MsgHandler

C.

None of the above. An exception would be thrown due to ambiguous bean references.

D.

GenericMessenger

Question 4

Given the code fragment:

Which URL triggers the invocation of the getEmployee () method?

Options:

A.

/Employees/89724

B.

/Employees/J6349

C.

/Employees/id:a7280

D.

/Employees/id/J6349

Question 5

Which two features are provided by the JSTL Core library for a JSP? (Choose two.)

Options:

A.

iteration over a collection

B.

buffering of large result sets

C.

testing conditions

D.

message localization

Question 6

Your customer has a requirement across their 10 warehouses, each with different users. They would like that whenever a warehouse user logs in, their warehouse should get populated.

How will you achieve this?

Options:

A.

Set up the profile option INV_DEFAULT_WHSE_ID at site level.

B.

Set up the profile option INV_DEFAULT_WHSE_ID at user level for each user.

C.

Set up the profile option INV_DEFAULT_WHSE_ID at role level (different roles for different warehouses).

D.

Set up the profile option INV_DEFAULT_ORG_ID at user level for each user.

E.

Set up the profile option INV_DEFAULT_ORG_ID at role level (different roles for different warehouses).

F.

Set up the profile option INV_DEFAULT_ORG_ID at site level.

Question 7

A customer has one Business Unit, two Legal Entities, and each have eight warehouses (defined as Inventory Orgs). While trying to set up Cost Organizations for each of these Legal Entities you were unable to perform the mandatory step of assigning the Profit Center Business Unit for one set of eight Inventory Organizations; however, you could do it for the other set.

What is the reason for this?

Options:

A.

The Legal Entity Setup is incomplete.

B.

There is no Inventory Validation Organization defined.

C.

The General Ledger is not associated with Business Unit.

D.

The Business Unit is not enabled for Costing.

E.

There is no Business Unit associated with the Legal Entity.

Question 8

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

Options:

A.

Define service as an injectable resource by using the declaration.

B.

Use a HandlerChain.

C.

Use a java.xml.ws.WebServiceRef annotation.

D.

Use a java.xml.ws.WebServiceContext annotation.

Question 9

How can you configure, in a portable way, the number of threads used by a ManagedExecutorService?

Options:

A.

programmatically, using a ManagedExecutorService

B.

using the ManagedExecutors utility class to define the execution properties

C.

This cannot be done because this configuration is dependent on the Java EE Product Provider.

D.

configuring the thread pool info in the deployment descriptor

Question 10

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.)

Options:

A.

Dependent

B.

View

C.

Session

D.

Request

E.

Application

Question 11

Given the code fragments:

Which action completes this composite primary key implementation?

Options:

A.

Add @IdClass annotation at line 1.

B.

Add @Embeddable annotation at line 1 and replace both @Id annotations with @EmbeddedId annotations.

C.

Add @IdClass(ContactId.class) annotation at line 2.

D.

Add @Embeddable annotation at line 1 and @EmbeddedId(ContactId.class) at line 2.

Question 12

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?

Options:

A.

Fixed lot multiplier is not set.

B.

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

C.

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

D.

Rounding the Reorder Quantity is disabled.

E.

Item is not defined in Manage Item Subinventories.

Question 13

Given the code fragment:

How long does this cookie persist?

Options:

A.

until server shutdown

B.

until garbage collection in the servlet instance

C.

this request

D.

until browser shutdown

Question 14

Given the code fragment:

How can you apply DateConverter to the birthday field?

Options:

A.

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

B.

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

C.

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

D.

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

Question 15

How do you specify a default error page in your web.xml file?

Options:

A.

/general-error.html

B.

*/general-error.html

C.

*/general-error.html

D.

/general-error.html

Question 16

During Cloud Inventory implementation your customer requires you to enable the Oracle Transactional Business Intelligence (OTBI) KPI to review the list of standard reports which is useful for their current business scenario. When navigating to reports and analytics, the warehouse dashboard doesn’t show any KPI watchlist.

Identify two causes. (Choose two.)

Options:

A.

Logistics Business Intelligence Analytics is enabled.

B.

Logistics Business Intelligence Analytics is not implemented.

C.

Organization is not enabled for warehousing.

D.

Data permissions for the organization being referenced are not set up.

E.

Supply Chain and Order Management Business Intelligence Analytics is not enabled.

Question 17

Which code snippet indicates that the page you are designing is capable of handling errors?

Options:

A.

<%@page errorPage=“errorHandler.jsp”%>

B.

<%= requestScope[‘javax.servlet.error’] !=null %>

C.

<%@page isErrorPage=“true”%>

D.

Question 18

How can a servlet indicate to the browser that cookie data should be sent over a secure connection?

Options:

A.

Call the getSecure(true) method on the cookie object.

B.

Encrypt the cookie data. The browser automatically sends encrypted data over a secure connection.

C.

Set the ENCRYPT header in the response.

D.

Configure SessionTrackingMode.SSL on the ServletContext object.

Question 19

Given a JSL document describing a batch job:

How do you initiate a batch job?

Options:

A.

Get the JobExecution object from BatchRuntime and call its start() method.

B.

Get the JobExecution object from BatchRuntime and set its status to JobStatus.INITIATED.

C.

Get the JobOperator object from BatchRuntime and call its start() method.

D.

Call BatchRunTime.initialize(“ProductLoadJob”);

Question 20

Your class requires multiple resources defined, as shown in the following:

Which annotation do you use to group multiple @Resource declarations together for class-based injection, replacing in the code above?

Options:

A.

@Resources

B.

@Resource

C.

@ResourceGroup

D.

@ResourceCollection

Question 21

Your customer is a very large organization spanning across multiple countries. Their legal requirements, Human Resource Policies, and Functional Currencies for Ledger are different for each country. Your customer wants to maintain 10 different companies in the system.

Which combination meets this requirement?

Options:

A.

1 Enterprise, 10 Divisions, where each division has its own ledger with common legal entity across all divisions

B.

10 Enterprises, 10 Divisions, where each division has its own legal entity and ledger

C.

1 Enterprise, 10 Divisions, where each division has its own legal entity and ledger

D.

10 Enterprises, 1 Division, where each division has 10 legal entities and 1 ledger

Page: 1 / 5
Total 142 questions