1z0-900 practice questions, page 2 of 6, with answer review and explanations.
Question 6
You have been asked to implement internationalization in your JSF web application. Where do you configure the supported locales?
in the <f:view> tag of the Facelet page
in the web.xml file
in the faces-config.xml file
in the src folder
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 instantiated in the current context?
@Observes(notifyObserver=IF_EXISTS) on line 3 and line 6
@Observes(during=IN_PROGRESS) on line 1
@Observes(during=AFTER_COMPLETION) on line 1
@Observes(notifyObserver=IF_EXISTS) on line 4 and line 7 before method parameter declaration
Question 8
Which code snippet prints the exception error message as part of the page output?
Java EE's support for WS-Security includes handling which two types of security credentials? (Choose two.)
X.509 certificates
SAML tokens
OAuth Bearer tokens
Two-factor authentication tokens
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 Managed Bean. Which two options enable you to create a search box with a placeholder attribute on Line 1? (Choose two.)