Pass Oracle 1Z0-900 exam questions - convert Test Engine to PDF [Q28-Q44]

Share

Pass Oracle 1Z0-900 exam questions - convert Test Engine to PDF

Pass Your 1Z0-900 Exam Easily - Real 1Z0-900 Practice Dump Updated Dec 10, 2021


Oracle 1Z0-900 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Use Entity Manager to perform database operations, transactions and locking with JPA entities
  • Create and execute JPQL statements
Topic 2
  • Create REST Services and clients using JAX-RS API
  • Create REST Services and clients using JAX-RS API
Topic 3
  • Handle errors using Servlets and Java Server Pages
  • Describe JSP syntax, use tag libraries and Expression Language (EL)
Topic 4
  • Manage servlet life cycle with container callback methods and WebFilters
  • Create SOAP Web Services and Clients using JAX-WS API

 

NEW QUESTION 28
Which statement is true about the WS-Security standard?

  • A. It provides message-level security.
  • B. It relies on HTTP security mechanism to protect SOAP messages in transmit.
  • C. It is a Java EE standard for protecting SOAP services.
  • D. It defines protocol-specific ways of protecting SOAP messages.

Answer: A

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

 

NEW QUESTION 29
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.MANDATORY) at line
    2,@Transactional at line 9 and@TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12
  • D. Add annotations:@TransactionAttribute (TransactionAttributeType.REQUIRED) at line
    2,@Transactional at line 9 and@TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12

Answer: C

 

NEW QUESTION 30
Which statement is false about generating an Internal Material Transfer for expense destination Transfer Order?

  • A. Cost Management will pick up the delivery transaction directly from Receiving and process the expense accounting from that transaction.
  • B. Costs for Lot and serial numbers are tracked at put away time when the items are recorded in a destination inventory location.
  • C. Expense destination transfers are expensed upon delivery hitting an expense account instead of an inventory asset account as would be the case for inventory destination transfers.
  • D. If the receipt is not required Cost Accounting will pick up both the issue and receipt activity from the single inventory transaction "Transfer Order Issue"
  • E. If the receipt is required, the accounting of the receipt delivery transaction will happen only on Receipt Accounting because there will not be a delivery transaction in inventory.

Answer: B

 

NEW QUESTION 31
Given:

What will be the response to a HEAD request?

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

Answer: A

 

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

  • A. <error-page><location>/general-error.html</location></error-page>
  • B. <error-page><error-code>*</error-code><location>/general-error.html</location></error-page>
  • C. <on-error><error-code>*</error-code><location>/general-error.html</location></on-error>
  • D. <on-error><location>/general-error.html<location></on-error>

Answer: B

Explanation:
Explanation
Reference
http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications

 

NEW QUESTION 33
Given the code fragment:

Which method should be used on line 3to enable default validation mechanism?

  • A. u.setEventHandler(ValidationEventHandler)
  • B. u.setProperty(Schema)
  • C. u.setProperty(String, Object)
  • D. u.setAdapter(XmlAdapter)

Answer: D

Explanation:
Explanation
Explanation/Reference: https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html

 

NEW QUESTION 34
Which statement is true about the WS-Security standard?

  • A. It provides message-level security.
  • B. It relies on HTTP security mechanism to protect SOAP messages in transmit.
  • C. It is a Java EE standard for protecting SOAP services.
  • D. It defines protocol-specific ways of protecting SOAP messages.

Answer: A

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

 

NEW QUESTION 35
You need to load on-hand balances for go live. Which template should be used for this?

  • A. InventoryOnHandBalanceTemplate.xlsm
  • B. InventoryReservationImportTemplate.xlsm
  • C. InventoryMiscellaneousTrxTemplate.xlsm
  • D. InventoryBalanceImportTemplate.xlsm
  • E. InventoryTransactionImportTemplate.xlsm

Answer: E

 

NEW QUESTION 36
Java EE's support for WS-Security includes handling which two types of security credentials? (Choose two.)

  • A. OAuth Bearer tokens
  • B. Two-factor authentication tokens
  • C. SAML tokens
  • D. X.509 certificates

Answer: C,D

 

NEW QUESTION 37
Given the code fragment:

Assuming this bean is used only in the code fragment above, how long will the injected Bean instance be available?

  • A. for the lifetime of the Service object
  • B. for the lifetime of the request
  • C. for the lifetime of the session
  • D. for the lifetime of the enterprise application

Answer: A

 

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

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

Answer: A,D

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

 

NEW QUESTION 39
You have been assigned to the Widget Editor portion of an application. It contains a Widget Editor Facelet page, the Widgetclass, and a simple WidgetEditorbacking bean, which contains a reference to the current Widgetinstance.
Given the code fragment from the Widgetclass:

Given the code fragment from the Facelet page:

The page displays Conversion Error when a user fills out all the form fields and clicks the Save button.
Which step do you perform to fix this problem?

  • A. Insert <f:convertDateTime"/>at Line 1
  • B. Replace Line 1with:
    <
    h:inputText id="createDate"
    value="#{widgetEditor.widget.createdDate}">
    < f:convertDateTime pattern="dd-mm-yyyy"/>
    < /h:inputText>
  • C. Enclose the code fragment within the <f:view/>tag
  • D. Replace Line 1with:
    < h: inputText id="createDate"
    value="#{widgetEditor.widget.createdDate}"
    converter="java.util.Date"/>

Answer: B

 

NEW QUESTION 40
Which type allows you to share servlet attributes across your entire web application?

  • A. HttpSession
  • B. ServletContext
  • C. ServletRequest
  • D. ServletConfig

Answer: B

Explanation:
Explanation
Reference
https://stackoverflow.com/questions/123657/how-can-i-share-a-variable-or-object-between-two-or-more-servlets

 

NEW QUESTION 41
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.)

  • A. Define an @OnMessagemethod with byte [] as the first parameter and a booleanas the second parameter.
  • B. Define an @OnMessagemethod with a single MimePart parameter.
  • C. Use a ChunkListenerinterface implementation.
  • D. Use a MessageHandler.Partial<ByteBuffer>interface implementation.

Answer: A,D

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

 

NEW QUESTION 42
You need to develop a chat application, which allows the display of emoticons and images together with text messages.
How should you configure a WebSocket endpoints to receive both text and binary messages?

  • A. Create two @onMessagemethods in the same endpoint with appropriate parameter types.
  • B. Create two @onMessagemethods, each with appropriate decoder attribute in the same endpoint.
  • C. Define the @onMessagemethods in your endpoint with Objectas parameter and check the actual type in your code.
  • D. You can achieve this only by creating separate WebSocket endpoints for each message type.

Answer: B

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

 

NEW QUESTION 43
Which statement is true about the relationship between HTTP and WebSockets?

  • A. A WebSocket connection can be initialized by either client or server.
  • B. A WebSocket connection uses HTTP protocol to exchange data with the browser.
  • C. A WebSocket connection is initialized with an HTTP handshake.
  • D. A WebSocket connection is a bi-directional HTTP session with message-handling support.

Answer: B

 

NEW QUESTION 44
......

1Z0-900 Real Exam Questions and Answers FREE: https://freedownload.prep4sures.top/1Z0-900-real-sheets.html