[Free] 2017(Jan) EnsurePass Testking IBM C5050-408 Dumps with VCE and PDF 51-60

Ensurepass.com : Ensure you pass the IT Exams
2017 Jan IBM Official New Released C5050-408
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/C5050-408.html

IBM Worklight Foundation V6.2, Mobile Application Development

Question No: 51

While developing an Android-based hybrid application, the application developer is required to use a pure Native Activity before navigating to a Web view.

Which interface should the application developer implement for the Activity that has the Web view?

  1. Activity

  2. CordovaActivity

  3. NativeCustomActivity

  4. WLInitWebFrameworkListener

Answer: D Explanation:

public interface WLInitWebFrameworkListener

Implementing class will receive notification on Worklight web framework initialization. References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.apiref.do c/html/refjavaworklight-android- native/html/com/worklight/androidgap/api/WLInitWebFrameworkListener.html

Question No: 52

An application developer is securing an application by using an adapter. The application developer has registered the following procedures in the adapter#39;s xml file.

lt;procedure name=鈥漵ubmitAuthentication鈥?/gt;

lt;procedure name=鈥漴equestForData鈥?securityTest=鈥滱uthAdapterTest鈥?/gt;

Which function must the application developer invoke in the authentication adapter at the end of the login sequence to consider the user#39;s session authenticated?

  1. The WL.Client.Login API.

  2. The WL.Server.setActiveUser API.

  3. The adapter#39;s requestForData function.

  4. The adapter authenticator#39;s login-function.

Answer: B Explanation:

WL.Server.setActiveUser creates a user identity in a specified realm.

It is used in authenticator adapters at the end of the login sequence. Creates a user identity in the specified realm with the properties in the specified identity parameter. As a result of this method, the user#39;s session is considered authenticated.

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.help.doc/ apiref/ r_method_wl_server_setactiveuser.html

Question No: 53

A mobile application developer needs to modify the direct update interface of an application to set a custom message requested by a client. To accomplish this task, the application developer needs to use the handleDirectUpdate function.

How should the application developer implement this requirement?

  1. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext)

    {

    var customDialogTitle = #39;Custom Title Text#39;; var customDialogMessage = #39;Custom Message Text#39;; var customButtonText = #39;Custom Button Text#39;; WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text : customButtonText, handler : function() {

    directUpdateContext.stop();

    }

    }]);

    };

  2. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateContext)

    {

    var customDialogTitle = #39;Custom Title Text#39;; var customDialogMessage = #39;Custom Message Text#39;; var customButtonText = #39;Custom Button Text#39;; WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text : customButtonText, handler : function() {

    directUpdateContext.stop();

    }

    }]);

    };

  3. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateContext)

    {

    var customDialogTitle = #39;Custom Title Text#39;; var customDialogMessage = #39;Custom Message Text#39;; var customButtonText = #39;Custom Button Text#39;; WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text : customButtonText, handler : function() {

    directUpdateContext.init();

    }

    }]);

    };

  4. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext)

{

var customDialogTitle = #39;Custom Title Text#39;; var customDialogMessage = #39;Custom Message Text#39;; var customButtonText = #39;Custom Button Text#39;; WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text : customButtonText, handler : function() {

directUpdateContext.start();

}

}]);

};

Answer: D Explanation:

The handler function should have two parameters (directUpdateData, directUpdateContext)

, and the directUpdateContext.start() function should be used.

The following example handleDirectUpdate function implements a custom message in the direct update dialog: wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData,directUpdateContext) {

var customDialogTitle = #39;Custom Title Text#39;; var customDialogMessage = #39;Custom Message Text#39;; var customButtonText = #39;Custom Button Text#39;; WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text : customButtonText, handler : function() { directUpdateContext.start();

}

}]); };

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/ dev/ c_customizing_direct_update_ui_android_wp8_ios.html

Question No: 54

An application developer has implemented certificate based authentication. The developer wants to enforce that the application immediately authenticates with a certificate when connecting to the Worklight server.

What must the application developer do to configure this security setting for the Android environment?

  1. Add protection for static resources in the authenticationConfig.xml file.

  2. Add the certificate-based securityTest as an attribute to the android element in the applicationDescriptor.xml file.

  3. Enable and configure certificate based authentication in the worklight.properties file.

  4. Enable WebShere Application Server application security to enforce authentication by WebShereApplication Server.

Answer: A

Explanation: Section: (none) Explanation

Application authenticity is based on certificate keys that are used to sign the application bundle.

The following sections present an example of how application authenticity is enabled for

iOS and Android: The first step in enabling application authenticity is to modify your authenticationConfig.xml file to add relevant authenticity realms to your security tests:

If you use lt;mobileSecurityTestgt;, you must add the lt;testAppAuthenticity/gt; child element to this file.

If you use lt;customSecurityTestgt;, you must add lt;test realm=鈥漺l_authenticityRealm鈥?gt; child element to the file. Etc.

Reference:

https://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/ dev/ c_ibm_worklight_app_authentication_overview.html

Question No: 55

An application developer intends to submit a notification to all the device subscriptions of a specified user using IBM Worklight Server side APIs.

Which JavaScript server side method will enable the application developer to accomplish this task?

  1. WL.Server.notifyDevice

  2. WL.Server.notifyAllDevice

  3. WL.Server.notifyUserSubscription

  4. WL.Server.notifyAllDeviceSubdcription

Answer: B Explanation:

WL.Server.notifyAllDevices submits a notification to all a specified user#39;s device subscriptions.

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.help.doc/ apiref/ r_method_wl_server_notifyalldevi.html

Question No: 56

An application developer has determined that Worklight does not provide an authenticator that meets the complex needs of the application being developed. It is decided that the developer must implement a custom authenticator.

Which interface must the application developer implement?

  1. com.worklight.core.auth.api.CustomAuthenticator

  2. com.worklight.core.auth.api.AuthenticationService

  3. com.worklight.server.auth.api.CustomAuthenticator

  4. com.worklight.server.auth.api.WorkLightAuthenticator

Answer: D Explanation:

Your custom authenticator class must implement the com.worklight.server.auth.api.WorkLightAuthenticator interface. References:

https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/ devref/ t_custom_authenticator.html

Question No: 57

An application developer is developing an Android based Hybrid application but the application is returning an error on the startup process.

What are two valid initialization failure statuses that the application developer can identify on the startup process?

FAILURE_NOT_ENOUGH_SPACE

  1. FAILURE_CHECKSUMFAILURE_EXTERNAL

  2. FAILURE_COMMUNICATIONFAILURE_INTERNAL

  3. FAILURE_COMMUNICATIONFAILURE_ENCRYPT

  4. FAILURE_UNZIP

Answer: D Explanation:

The initialization status can be: FAILURE_INTERNAL FAILURE_UNZIP

FAILURE_CHECKSUM FAILURE_NOT_ENOUGH_SPACE

References: http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/d ev/ c_start_hybrid_app_android_in_webview.html

Question No: 58

An application developer is using Worklight skins to support multiple from factors on an Android based hybrid application that will run on phones and tablet devices. The developer built skins that modify the color and size of the text in the application based on the device that it is running on. To switch between them, the developer needs to modify a file in the Worklight project.

What is the name of the file that the application developer needs to modify to set the skins to apply at runtime?

  1. main.js

  2. skinList.json

  3. skinLoader.js

  4. initOptions.js

Answer: C Explanation:

To set which skin to apply at run time, implement the function getSkinName() in the file skinLoader.js.

References: https://www.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.dev.doc/ devref/ c_developing_application_skins.html

Question No: 59

An application developer is concerned about the performance of JSONStore API in a native iOS application and would like to collect that information.

Which code snippet will enable the application developer to accomplish this?

  1. [ [JSONStore sharedInstance] setAnalytics:YES];

  2. [ [JSONStore sharedInstance] enableAnalytics:YES];

  3. JSONStoreOpenOptions* options = [JSONStoreOpenOptions new]; [options setAnalytics:YES];

    [ [JSONStore sharedInstance] openCollections:@[…] withOptions:options error:nil];

  4. NSDictionary* options = [NSDictionary new]; [options setValue:@鈥漎ES鈥?forKey:@鈥滱nalytics鈥漖;

[ [JSONStore sharedInstance] openCollections:@[…] withOptions:options error:nil];

Answer: C Explanation:

Performance metrics are collected every time a JSONStore API is called with information about the start and end times of an operation. You can use this information to determine how much time various operations take in milliseconds. Examples iOS JSONStoreOpenOptions* options = [JSONStoreOpenOptions new];

[options setAnalytics:YES];

[[JSONStore sharedInstance] openCollections:@[…] withOptions:options error:nil]; References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/ devref/ c_jsonstore_analytics.html

Question No: 60

An application developer wants to protect their application against specific malware and repackaging attacks by implementing application authenticity testing via the console. Per the requirements, the developer wishes to implement a check where the Worklight Server will test the authenticity of an application. If the application fails the authenticity check, the Worklight Server will output a message to the log containing relevant information, but the application will still run as expected.

Which type of application authenticity should the application developer implement via the console with the above requirements?

  1. Enabled, logging

  2. Enabled, blocking

  3. Enabled, notifying

  4. Enabled, servicing

Answer: D Explanation:

Worklight Console allows enabling or disabling the application authenticity realm in run time. This feature is useful for the Development and QA environments. There are three modes you can set:

-> Enabled, blocking – means that the application authenticity check is enabled. If the

application fails the check,it is not served by a Worklight server.

-> Enabled, serving – means that the application authenticity check is enabled. If the application fails the check,it is still served by a Worklight server.

-> Disabled – means that the application authenticity check is disabled.

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/ dev/ c_ibm_worklight_app_authentication_overview.html

100% Ensurepass Free Download!
Download Free Demo:C5050-408 Demo PDF
100% Ensurepass Free Guaranteed!
Download 2017 EnsurePass C5050-408 Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE

Leave a Reply