Go to 1Z0-900 Questions - Try 1Z0-900 dumps pdf [Q56-Q80]

Share

Go to 1Z0-900 Questions - Try 1Z0-900 dumps pdf 

Dumps Practice Exam Questions Study Guide for the 1Z0-900 Exam

NEW QUESTION 56
Given the code fragment:

When the context root is requested http://host:port/context, how does the container resolve this mapping?

  • A. secondServlet handles the request.
  • B. firstServlethandles the request.
  • C. thirdServlethandles the request.
  • D. The container throws an error at startup.

Answer: D

 

NEW QUESTION 57
While creating the consignment agreement, you have set the consumption advice frequency to "monthly" and the billing cycle close date to "31st August, 2020".
What will happen when you run the consumption advice process on 31st August, 2020?

  • A. Consumption advice is created and the next closing date is set to 7th September, 2020.
  • B. Consumption advice is created and the next closing date is set to 30th September, 2020.
  • C. Consumption advice is created and the next closing date is set to 30th October, 2020.
  • D. No consumption advice is created.

Answer: B

 

NEW QUESTION 58
Given the JPQL code fragment:
Select pub.title, pub.author, 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 pub.pages <= 500 OR pub.pages >= 750
  • B. WHERE pub.pages <= 500 AND pub.pages >=750
  • C. WHERE MIN(pages) >= 500 AND MAX(pages) <= 750
  • D. WHERE pub.pages BETWEEN 500 AND 750

Answer: A,C

Explanation:
Explanation

 

NEW QUESTION 59
Given an HttpServletRequest request and an EJB SessionContext ctx.
Which is a valid way to retrieve the Principal invoking either behavior?

  • A. request.getUserPrincipal() and ctx.getCallerPrincipal()
  • B. request.getCallerPrincipal() and ctx.getUserPrincipal()
  • C. request.getCallerPrincipal() and ctx.getCallerPrincipal()
  • D. request.getUserPrincipal() and ctx.getUserPrincipal()

Answer: C

 

NEW QUESTION 60
Given:

You are creating an Alarm management system. When you create a new alarm, you want it to create an alert that is triggered once at the specified time.
Which method should you call on Line 9 to create the timer?

  • A. timerService.createTimer(alarmDate, -l, config);
  • B. timerService.createIntervalTimer(alarmDate, -l, config);
  • C. timerService.createCalendarTimer(alarmDate, config);
  • D. timerService.createSingleActionTimer(alarmDate, config);

Answer: A

Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/javaee/6/api/javax/ejb/TimerService.html

 

NEW QUESTION 61
A Java EE application that uses an EJB container must communicate with a legacy system developed using non-Java technologies.
Which two Java EE technologies can be used in the integration tier of the application? (Choose two.)

  • A. JSF
  • B. JCA
  • C. JPA
  • D. JMS

Answer: A,D

 

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

  • A. Call the getSecure(true) method on the cookie object.
  • B. Set the ENCRYPT header in the response.
  • C. Encrypt the cookie data. The browser automatically sends encrypted data over a secure connection.
  • D. Configure SessionTrackingMode.SSL on the ServletContext object.

Answer: A

 

NEW QUESTION 63
Which annotation allows a request to be executed with another Principal's identity?

  • A. @Runs
  • B. @UseIdentity
  • C. It is not possible to execute a request with another Principal's identity.
  • D. @RolesAllowed

Answer: D

 

NEW QUESTION 64
Which code snippet indicates that the page you are designing is capable of handling errors?
A:

B: <%= requestScope['javax.servlet.error'] !=null %>
C: <%@page isErrorPage="true"%>
D: <c:set var="errorHandler" value="true"/>

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: C

 

NEW QUESTION 65
What is true about Message-Driven Beans (MDBs)?

  • A. MDBs can participate in transactions.
  • B. MDBs are invoked synchronously.
  • C. Each MDBs can process messages only from a single client.
  • D. MDBs retain data caches between client calls.

Answer: A

 

NEW QUESTION 66
On your JSF page, you have a form in which you have a command button:

A user submits the form by clicking the button, and no errors occur while processing the request. Which statement is true?

  • A. The actNow()method controls the condition upon which the listenCarefully()method is allowed to be executed.
  • B. The actNow()and ListenCarefully()methods are executed in parallel.
  • C. The actNowmethod is executed followed by the listenCarefully()method.
  • D. The listenCarefully()method is executed followed by the actNow()method.

Answer: D

 

NEW QUESTION 67
Which statement is true about JAX-RS resource implementation?

  • A. The REST resource class can be implemented as a stateful Enterprise JavaBean (EJB).
  • B. The REST resource class can be implemented as a Plain Old Java Object (POJO).
  • C. The REST resource implementation class must extend the javax.ws.rs.core.Application class
  • D. The REST resource implementation class must not be final.

Answer: C

 

NEW QUESTION 68
A third-party service equipment is used for various purposes in a manufacturing facility and needs to be overhauled once a year. This equipment is charged based on its consumption without a project dependency.
At this point, it should be transferred out of the vendor's warehouse for maintenance and then returned back in the future depending upon the requirement.
The material stock transfer should happen with an offline approval and with an account alias as a logical reference.
What is the ideal way to handle this process?

  • A. Subinventory Transfer
  • B. Transfer Order
  • C. Move Request
  • D. Miscellaneous Transaction
  • E. Requisitions

Answer: D

 

NEW QUESTION 69
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 messageHandlervariable?

  • A. MsgHandler
  • B. None of the above. An exception would be thrown due to ambiguous bean references.
  • C. GenericMessenger
  • D. SmsHandler

Answer: C

 

NEW QUESTION 70
Which interface should you implement if you want to be alerted to the lifecycle events surrounding your task being executed by a ManagedExecutorService?

  • A. the TaskEventListenerinterface
  • B. the ManagedExecutorTaskinterface
  • C. the RunnableInterface
  • D. the ManagedTaskListenerinterface

Answer: D

Explanation:
Explanation/Reference:
Reference: https://github.com/javaee/concurrency-ee-spec/blob/master/api/src/main/java/javax/enterprise/ concurrent/ManagedExecutorService.java

 

NEW QUESTION 71
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 Cycle Count Enabled flag is not selected for the inventory organization.
  • C. The approval controls are not set up.
  • D. The Include in Schedule option is not selected to include the item for auto-scheduling.
  • E. The Cycle Count Enabled flag is not selected for the item.

Answer: C,E

 

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

  • A. ensuring that data is not modified in transit
  • B. verifying identity claims from users
  • C. protecting data from unauthorized viewing by using encryption
  • D. verifying that a user is allowed to perform an action

Answer: A,D

Explanation:
Explanation
Reference https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html

 

NEW QUESTION 73
Given a JSL document describing a batch job:

How do you initiate a batch job?

  • A. Get the JobExecution object from BatchRuntime and call its start() method.
  • B. Get the JobOperator object from BatchRuntime and call its start() method.
  • C. Call BatchRunTime.initialize("ProductLoadJob");
  • D. Get the JobExecution object from BatchRuntime and set its status to JobStatus.INITIATED.

Answer: A

 

NEW QUESTION 74
You want to allow one set of roles to POST to a resource and another set of roles to GET it.
Which two configuration options should you use? (Choose two.)

  • A. two <web-resource-collection> with different <http-method>in the deployment descriptor
  • B. two separate @HttpMethodConstraintsannotations and sets of roles
  • C. a single @HttpMethodContstraintannotation and a map of method to roles
  • D. a single <web-resource-collection>with two <auth-constraint> with different <http- method>in the deployment descriptor

Answer: C,D

 

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

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

Answer: A,B,C

Explanation:
Explanation

 

NEW QUESTION 76
Identify two valid WebSocket message types for which you can register handlers. (Choose two.)

  • A. Error Message
  • B. Pong Message
  • C. Binary Message
  • D. Ping Message

Answer: B,C

Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/javaee/7/api/javax/websocket/Session.html

 

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

  • A. Use a HandlerChain.
  • B. Use a java.xml.ws.WebServiceContext annotation.
  • C. Use a java.xml.ws.WebServiceRef annotation.
  • D. Define service as an injectable resource by using the <resource-ref> declaration.

Answer: D

 

NEW QUESTION 78
Given the code fragment from a Facelet page:

On Line 1, you ae asked to insert a search box that displays the text "Search Here" via a placeholder.
Assume searchMB is a valid Managed Bean.
Which two options enable you to create a search box with a placeholder attribute on Line 1? (Choose two.)

  • A. <h:inputText value="#(searchMB.query)" placeholder="Search here"/>
  • B. <input jsf:id="search" placeholder="Search here" jsf:value="# (searchMB.query)"></input>
  • C. <h:inputText pt:placeholder="Search Here" value="#(searchMB.query)"/>
  • D. <input id="search" jsf:placeholder="Search Here" value="$(searchMB.query)"></input>
  • E. <h:inputText value="#(searchMB.query)"><f:param name="placeholder" value="Search Here"/></h:inputText>

Answer: B,D

 

NEW QUESTION 79
Which annotation allows a request to be executed with another Principal's identity?

  • A. @Runs
  • B. @UseIdentity
  • C. It is not possible to execute a request with another Principal's identity.
  • D. @RolesAllowed

Answer: D

Explanation:
Explanation/Reference: https://docs.oracle.com/cd/E19798-01/821-1841/6nmq2cpig/index.html

 

NEW QUESTION 80
......


Oracle 1Z0-900 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Create sessionEJB components containing synchronous and asynchronous business methods
  • Demonstrate understanding of the relationship between bean components
Topic 2
  • Define Java to XML Schema mappings to marshall and unmarshall Java Objects by using JAXB API
  • Create, package and deploy Java EE application
Topic 3
  • Create WebSocket Server and Client Endpoint Handlers using JSR 356 API and JavaScript
  • Demonstrate understanding of Enterprise JavaBeans and CDI beans
Topic 4
  • Create REST Services and clients using JAX-RS API
  • Create REST Services and clients using JAX-RS API
Topic 5
  • Handle entity data with conversions, validations, and key generation
  • Describe Java EE 7 standards, containers, APIs, and services
Topic 6
  • Use Entity Manager to perform database operations, transactions and locking with JPA entities
  • Create and execute JPQL statements
Topic 7
  • Create JPA Entity and Relationship Object-Relational Mappings (ORM)
  • Produce and consume, encode and decode WebSocket messages
Topic 8
  • Handle errors using Servlets and Java Server Pages
  • Describe JSP syntax, use tag libraries and Expression Language (EL)
Topic 9
  • Manage servlet life cycle with container callback methods and WebFilters
  • Create SOAP Web Services and Clients using JAX-WS API

 

Free Java EE and Web Services 1Z0-900 Exam Question: https://www.actual4dump.com/Oracle/1Z0-900-actualtests-dumps.html