1Z0-900 Exam Questions
136 real 1Z0-900 exam questions with expert-verified answers and explanations. Page 1 of 3.
- 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...
- Question #2
Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API? (Choose two.)
- Question #4
Given the code fragment: Which URL triggers the invocation of the getEmployee () method?
- Question #5
What is true about Message-Driven Beans (MDBs)?
- Question #6
You have been asked to implement internationalization in your JSF web application. Where do you configure the supported locales?
- Question #7
Given the code fragment: Which code can be added to register both of these methods to receive BankEvent notifications only if an instance of BankActivityService is already instanti...
- Question #8
Which code snippet prints the exception error message as part of the page output?
- Question #9
Java EE's support for WS-Security includes handling which two types of security credentials? (Choose two.)
- Question #10
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 Manag...
- Question #11
Given the code fragment: Which method should be used on line 3 to enable default validation mechanism?
- Question #12
How do you specify a default error page in your web.xml file?
- Question #13
Given the code fragment: And Which two steps, when performed independently, enable the index.xhtml page to print the following text: The Id is 12345? (Choose two.)
- Question #14
Given: How often does the submitted task run?
- Question #15
: 15 Given: What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?
- Question #16
Which URL represents an invalid approach to pass a parameter to a REST resource?
- Question #17
Given: If an exception is thrown inside the if block, what effect will it have on the transaction?
- Question #19
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 handli...
- Question #20
Given the code fragment: mapping?
- Question #21
Given the code fragments: Which action completes this composite primary key implementation?
- Question #22
Given the code fragment: How can you apply DateConverter to the birthday field?
- Question #23
Which class do you use to handle an incoming JSON Message as a stream?
- Question #24
Which two approaches would result in the current date being added to the output of a JSP? (Choose two.)
- Question #25
Given the code fragment: How are transactions managed?
- Question #26
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.)
- Question #27
: 27 Given: Which client-side Java method will send the employee object to the WebSocket Server Endpoint?
- Question #28
You are working with JMS publish-subscribe operations. What happens when a producer publishes a message to a topic for which a durable subscription exists but there are no subscrib...
- Question #29
Which type allows you to share servlet attributes across your entire web application?
- Question #30
Which annotation allows a request to be executed with another Principal's identity?
- Question #31
Which statement is true about the WS-Security standard?
- Question #32
Which two statements are true about the relationship between JavaServer Pages (JSP) and servlets? (Choose two.)
- Question #33
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 yo...
- Question #34
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 a...
- Question #35
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 statem...
- Question #36
Given the code fragment: How can you get all property names of a JMS message in the JMS consumer onMessage operation?
- Question #37
Given a JSL document describing a batch job: How do you initiate a batch job?
- Question #38
Given the code fragment: How long does this cookie persist?
- Question #39
When should a JPA entity implement the Serializable interface?
- Question #40
Which statement is true about JAX-RS resource implementation?
- Question #41
How can you inject a target web service into an EJB?
- Question #42
How can you configure, in a portable way, the number of threads used by a ManagedExecutorService?
- Question #43
Given an HttpServletRequest request and an EJB SessionContext ctx. Which is a valid way to retrieve the Principal invoking either behavior?
- Question #44
Given the set of navigation rules: Which two define a valid flow of view IDs through the application? (Choose two.)
- Question #45
How can a servlet indicate to the browser that cookie data should be sent over a secure connection?
- Question #46
Which two features are provided by the JSTL Core library for a JSP? (Choose two.)
- Question #47
Which of these can be a JPA entity?
- Question #48
You created two filters for your web application by using the @WebFilter annotation, one for authorization and the other for narrowing results by the provided search criteri
- Question #50
Identify two valid WebSocket message types for which you can register handlers. (Choose two.)
- Question #51
Given the following code: What should you do at line 1 to enable this servlet receive request data without blocking?
- Question #52
Which two elements CANNOT be injected by using an @Inject annotation? (Choose two.)
- Question #53
Which code snippet indicates that the page you are designing is capable of handling errors?