Question 10
An application developer needs to update the web resources for a deployed application. The developer is exploring the use of Direct Update to deliver the updated web resources directly to the deployed application without uploading a new version of the application to the Apple App Store and Android Market.
The developer has located an explicit call to check for direct updates in the application code as follows:
WL.Client.login(“wl_directUpdateRealm”, {onSuccess:…, onFailure:…})
Which security realm configuration allows the application developer to use Direct Update to deliver the updated web resources, only when the explicit call to check for direct updates in the application code is executed?
The application is protected with a:
mobile security test and a Direct Update test is not specified.
mobile security test and a Direct Update test is specified with mode=”disabled”.
custom security test and a Direct Update test is not specified.
custom security test and a Direct Update test is specified with mode=”disabled”.
Correct answer: C
Explanation:
Check for Direct Update on demand You can configure Direct Update so that the server checks for direct updates only when there is an explicit call to do so. To apply this setting, protect the application with a custom security test that does not contain a test with wl_directUpdateRealm. In the application code, use WL.Client.login("wl_directUpdateRealm", {onSuccess:.., onFailure:...}), which causes the server to check for direct updates. This configuration does not work if the custom security test that protects the application contains wl_directUpdateRealm with mode="disabled".References: http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/admin/c_direct_update_as_security_realm.html
Check for Direct Update on demand
You can configure Direct Update so that the server checks for direct updates only when there is an explicit call to do so. To apply this setting, protect the application with a custom security test that does not contain a test with wl_directUpdateRealm. In the application code, use WL.Client.login("wl_directUpdateRealm", {onSuccess:.., onFailure:...}), which causes the server to check for direct updates. This configuration does not work if the custom security test that protects the application contains wl_directUpdateRealm with mode="disabled".
References:
http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/admin/c_direct_update_as_security_realm.html