Java EE 7 Application Developer 1Z0-900 Dumps | Dumpsbase

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

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.

A. MDBs can participate in transactions.

Java EE's support for WS-Security includes handling which two types of security credentials? (Choose two.) A. X.509 certificates B. SAML tokens C. OAuth Bearer tokens D. Two-factor authentication tokens

A. X.509 certificates B. SAML tokens

You have been asked to implement internationalization in your JSF web application. Where do you configure the supported locales? A. in the <f:view> tag of the Facelet page B. in the web.xml file C. in the faces-config.xml file D. in the src folder

A. in the <f:view> tag of the Facelet page

How do you specify a default error page in your web.xml file? A. <on-error><location>/general-error.html<location></on-error> 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. <error-page><location>/general-error.html</location></error-page>

B. <error-page><error-code>*</error-code><location>/general-error.html</location></error-page>

Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API? (Choose two.) 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

B. verifying that a user is allowed to perform an action C. ensuring that data is not modified in transit

When handling a JSF request, your application code decided to redirect the call to another URL by using HTTP redirect. Which action should you take to correctly complete the handling of the JSF life cycle? A. Set the immediate="true" attribute on the command button that was used to perform this call. B. Invoke the dispatch() method on the ExternalContext object. C. Invoke the setCurrentPhaseId(RENDER_RESPONSE) method on the FacesContext object. D. Invoke the responseComplete() method on the FacesContext object.

C. Invoke the setCurrentPhaseId(RENDER_RESPONSE) method on the FacesContext object.

Which code snippet prints the exception error message as part of the page output? A. <%= exception.message %> B. <c:out value="${requestScope['javax.servlet.error.exception']}"/> C. <% exception.getMessage(); %> D. <% System.out.println(e.getMessage()) %>

D. <% System.out.println(e.getMessage()) %>

Which URL represents an invalid approach to pass a parameter to a REST resource? A. <base-url>/Employees?value=1 B. <base-url>/Employees&value=1 C. <base-url>/Employees/1 D. <base-url>/Employees;value=1

D. <base-url>/Employees;value=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? A. Create two @onMessage methods in the same endpoint with appropriate parameter types. B. Define the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code. C. You can achieve this only by creating separate WebSocket endpoints for each message type. D. Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.

D. Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.

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 Runnable Interface B. the ManagedExecutorTask interface C. the TaskEventListener interface D. the ManagedTaskListener interface

D. the ManagedTaskListener interface


संबंधित स्टडी सेट्स

Chapter 14 Principles of Hair Design

View Set

Exam 3: Respiratory Dysfunction NCLEX Questions

View Set