A mobile application developer is using a Worklight adapter to retrieve an XML data feed from a remote system. The data obtained from the remote system contains much more data than is needed by the mobile application. What specific Worklight capability should the application developer use to reduce the data being returned from the Worklight adapter?
A. When the data is returned to the mobile application from the Worklight adapter, use for-loops and string comparison to extract the desireddata.
B. Ensure that the XML feed only has the desired information returned.
C. When calling the invoke command that retrieves the remote feed, specify a transformation that uses XSLT to parse the returned data.
D. Utilize a Java JSON library and call Java code from the the Worklight adapter that converts the returned XML data into a JSON object to bereturned from the adapter.
正解:C
質問 2:
A mobile application developer has created a Worklight adapter, largeData, which returns a large amount of data. Due to network latency, the application developer would like to compress the data returned. How can the application developer compress the data sent between the mobile device and the Worklight server? The developer can set compressResponse to true in the:
A. invokeProcedure function.
B. largeData-impl.js file.
C. application-descriptor.xml file.
D. largeData.xml file.
正解:A
質問 3:
A mobile application developer is made aware of a possible error in the JavaScript code that could expose a customer's user id and password on one platform. The application developer begins to work on a fix to the code. Which capability should the application developer ask the administrator to use that blocks users of that platform from accessing the server until the fix can be installed?
A. Use application authenticity to block access.
B. Use direct update to disable the application.
C. Use remote application disable.
D. Use remote application notification.
正解:C
質問 4:
A mobile application developer has added the Android environment to a Worklight project and is preparing to build the APK file for testing in an Android emulator. What must the application developer do before building the APK file in Worklight Studio?
A. Create a Google Play account and install the Android Development Tools for Eclipse.
B. Install the Android SDK and the Android Development Tools for Eclipse.
C. Create a Google Play account and install the Android SDK.
D. Create a Google Play account and download an Android Virtual Device.
正解:B
質問 5:
A mobile application developer has configured a Worklight application to use LTPA authentication to protect resources on the Worklight Server. The application developer has received an additional requirement to use the same LTPA token to invoke REST services hosted on a separate instance of the WebSphere Application Server. How can the application developer meet this requirement?
A. When invoking the REST service from the adapter, fetch the credentials from the current user's attributes, then add them as the authenticationparameter to the invokeHttp() call.
B. When invoking the REST service from the adapter, fetch the credentials from the current user's attributes, then add them as a property of theinput parameter to the invokeHttp() call.
C. When invoking the REST service from the adapter, fetch the credentials from authenticationConfig.xml, then add them as theauthentication parameter to the invokeHttp() call.
D. In authenticationConfig.xml, configure the adapter to pass the authentication token whenever it invokes a REST service.
正解:B