1z0-900

Review 142 1Z0-900 practice questions with answer explanations and community insights.

Question 1

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?

  1. Create two @onMessage methods in the same endpoint with appropriate parameter types.
  2. Define the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code.
  3. You can achieve this only by creating separate WebSocket endpoints for each message type.
  4. Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.

Question 2

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

  1. protecting data from unauthorized viewing by using encryption
  2. verifying that a user is allowed to perform an action
  3. ensuring that data is not modified in transit
  4. verifying identity claims from users

Question 3

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

  1. the Runnable Interface
  2. the ManagedExecutorTask interface
  3. the TaskEventListener interface
  4. the ManagedTaskListener interface

Question 4

Given the code fragment: Which URL triggers the invocation of the getEmployee () method?

  1. <base url>/Employees/89724
  2. <base url>/Employees/J6349
  3. <base url>/Employees/id:a7280
  4. <base url>/Employees/id/J6349

Question 5

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

  1. MDBs can participate in transactions.
  2. MDBs are invoked synchronously.
  3. Each MDBs can process messages only from a single client.
  4. MDBs retain data caches between client calls.
We are moving to a new platform

CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.