[Free] 2018(Jan) Dumps4cert Passguide IBM C5050-408 Dumps with VCE and PDF 41-50

Dumps4cert.com : Latest Dumps with PDF and VCE Files
2018 Jan IBM Official New Released C5050-408
100% Free Download! 100% Pass Guaranteed!

IBM Worklight Foundation V6.2, Mobile Application Development

Question No: 41

Which Worklight adapter is used to execute stored procedures in a database?

  1. SQL

  2. JMS

  3. Gateway

  4. Cast Iron

Answer: A Explanation:

You can use the Worklight SQL adapter to execute parameterized SQL queries and stored procedures that retrieve or update data in the database.


http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/d evref/ c_overview_of_ibm_worklight_adap.html?lang=en

Question No: 42

An IT company uses a native Android application to manage financial data. The company now wants to use the same application for iOS mobile devices. The application architect decided to use Worklight Foundation to generate a common User Interface for Android and iOS platforms.

The application developer is required to create this new common User Interface as a Web and add it to the existing Android application.

What steps should the application developer perform to add the new Web View to the existing Android application?

  1. 1. Create a Worklight Native API application.

    1. Create a folder called ??ebContent??in the root of the project.

    2. Add the Web view to the ??ebContent??folder.

  2. 1. Create a Worklight Native API application.

    1. Right click the {Application name} folder and click on ??dd Hybrid Resources??

    2. Select the Web view and click OK.

  3. 1. Create a Worklight project with a hybrid application with an Android environment.

    1. Copy the existing native code to the nativeResources folder of the Android environment.

    2. Add the Web view to the Android environment.

  4. 1. Create a Worklight project with a hybrid application with an Android environment and add the Web view.

  1. Right click the Android folder of the Application and click on ??xport Worklight Hybrid Resources??

  2. Add the Worklight hybrid resources to a new Native API application.

    Answer: D Explanation:

    IBM Worklight Application Framework helps you create hybrid applications that interact with back-end services.

    You can add a Worklight web view into an existing native Android, iOS, or Windows Phone 8 application. For example, you can transform the application from pure native to hybrid.

    Using either the Eclipse plug-in or the command-line interface, export the corresponding resources from an existing Worklight hybrid project.

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

    Question No: 43

    An application developer needs to send data to an iOS native page that will use the data that the user captured on a new web page. To accomplish this task, the developer needs to verify that the native page is implemented as an Objective-C class that inherits from a specific iOS class.

    What is the name of the class the application developer must verify that the native page should inherit from?

    1. UIViewController

    2. UIManagedDocument

    3. UIDocumentInteractionController

    4. UIDocumentInteractionControllerDelegate

Answer: A Explanation:

Adding the native features using Worklight NativePage API

Following the Worklight NativePage API documentation, native features are accessed by extending the UIViewController class. The instructions assume familiarity with using XCode, iOS programming and Objective-C.

Example: Integrating the native address book

-> In XCode, right-click Classes gt; New File. Select iOS gt; Cocoa Touch gt; Objective-C class. Click Next.

-> Following the definition in WCHybridAppProperties.js, in the Class field, name the class

ContactsViewController. Ensure that Subclass of is set to UIViewController. Select With XIB for user interface. Click Next. Etc.

References: http://www.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.starterst ores.doc/concepts/ csmmobileappworklighti.htm

Question No: 44

An application developer is working on a mobile application for a bank. The requirement is to globalize this application to display user messages, currency, date and time according to the locale and language settings on the device.

Which Worklight APIs can the application developer use to detect the specific device locale

and language?

  1. WL.Client.getLocale()WL.Client.getLanguage()

  2. WL.Device.getLocale()WL.Device.getLanguage()

  3. WL.App.getDeviceLocale()WL.App.getDeviceLanguage()

  4. WL.G11N.getLocaleName()WL.G11N.getPrefferedLanguage()

Answer: D Explanation:

The getLocaleName function gets the client current locale setting on the device. The getPreferredLanguage function gets the current language of the client.

Note: The following listings and figures show the Cordova globalization API. Dojo is used to demonstrate the user interface.

Table 2. Listing 1: Using the Cordova globalization API function onDeviceReady(){

g11n = window.plugins.globalization;


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

Question No: 45

An application developer is working with the Worklight administrator to secure a mobile application using adapter based authentication. The administrator provides the following configuration in the authenticationConfig.xml file.


lt;customSecutityTest name=??uthenticationAdapter-securityTest??gt;

lt;test isInternalUserID=??rue??realm=??dapterAuthRealm??gt;




lt;realm loginModule=??dapterAuthLoginModule??name=??dapterAuthRealm??gt;

lt;classNamegt;com.worklight.integration.auth.AdapterAuthenticatorlt;/ classNamegt;

lt;parameter name=??ogin-function??value=??uthAdapter.onAuthRequired??gt;

lt;parameter name=??ogout-function??value=??uthAdapter.onLogout??gt;




lt;loginModule name=??dapterAuthLoginModule??gt;

lt;classNamegt;com.worklight.core.auth.ext.NonValidatingLoginModulelt;/ classNamegt;

lt;/loginModulegt; lt;/loginModulesgt;

What must the application developer do to ensure security is enforced as required?

  1. Create a Worklight adapter named AuthAdapter and implement the onAuthRequired and onLogoutfunctions properly.

  2. Create a Worklight adapter named AuthAdapter and implement the onAuthRequired, onLogout, andsubmitCredentials functions.

  3. Create a Java class for the login module named AuthAdapter that implements the interface defined bycom.worklight.core.auth.ext.NonValidatingLoginModule paying particular attention to implementing the onAuthRequired and onLogout methods.

  4. Create a Java class named AuthAdapter that implements the interface defined bycom.worklight.integration.auth.AdapterAuthenticator paying particular attention to implementing the onAuthRequired and onLogout methods.

Answer: C

Question No: 46

An application developer is creating a WorkLight project that contains a Native API application. When creating the Native API application, the developer has provided the Project name as well as the native API name. The developer is now presented with an option to choose which specific environment they would like to create the Native API for.

Which environment types are the supported options for a valid Native API application that the application developer can choose from?

  1. Android, BlackBerry10, iOS, JavaME

  2. Android, iOS, JavaME, WindowsPhone8

  3. Android, AdopeAir, iOS, WindowsPhone8

  4. Android, BlackBerry10, iOS, WindowsPhone8

Answer: B


Your native application requires the content of such a Native API application. This content depends on the selected mobile environment, and your native application requires it to use the corresponding IBM Worklight native API:

-> The IBM Worklight Objective-C client-side API, if your Native API application is for

the iOS environment

-> The IBM Worklight Java??client-side API, if your Native API application is for the Android environment

-> The IBM Worklight Java client-side API, if your Native API application is for the Java Platform, Micro Edition(Java ME)

In Worklight 6.2 you can also use native C# API applications for Windows Phone 8 References: http://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/d evref/ r_development_guidelines_for_using_native_api.html https://www.ibm.com/support/knowledgecenter/ SSZH4A_6.2.0/com.ibm.worklight.dev.doc/devref/c_app_desc_native_api_wp8.html

Question No: 47

An application developer intends to use Worklight Android native APIs to develop a performance intensive mobile application.

Which one of the following permissions in AndroidManifest.xml should the application developer use so the application can communicate with the Worklight Server?

  1. lt;uses-permission android:name=??ndroid.permission.INTERNET??gt;

  2. lt;uses-permission android:name=??ndroid.permission.WAKE_LOCK??gt;

  3. lt;uses-permission android:name=??ndroid.permission.INSTALL_PACKAGES??gt;

  4. lt;uses-permission android:name=??ndroid.permission.CHANGE_WIFI_STATE??gt;

Answer: A Explanation:

The INTERNET permission is required by Worklight Quality Assurance to connect with the IBM Worklight Quality Assurance server.

References: http://www.ibm.com/support/knowledgecenter/api/content/SSFRDS_6.0.0/com.ibm.mqa.ua u.doc/topics/ t_InstallingTheAndroidProductionLibraries.html

Question No: 48

An application developer has implemented the following security test to protect a mobile application.

lt;mobileSecurityTest name=??obileTest??gt;

lt;testUser realm=??yMobileLoginForm??gt;

lt;testDeviceID provisioningType=??one??/gt;


The corporate security team has recently learned about cross-site request forgery (XSRF) attacks against the company#39;s website. The corporate security team wants to prevent further attacks and has asked the developer to protect the mobile application against XSRF attacks.

What step must the application developer take to protect against XSRF attacks?

  1. Nothing. By default, a mobileSecurityTest includes protection against XSRF attacks.

  2. Define a new webSecurityTest and add the element lt;test realm=??l_antiXSRFRealm??gt;

  3. Add the element lt;test realm=??l_antiXSRFRealm??gt; to the mobileSecurityTest definition.

  4. Change the implementation to a custom security test and add the element lt;testXSRF realm=??l_antiXSRFRealm??/gt;

Answer: A Explanation:

The mobileSecurityTest contains:

* The following realms, enabled by default: wl_anonymousUserRealm, wl_antiXSRFRealm, wl_remoteDisableRealm and wl_deviceNoProvisioningRealm. * The user and device realms that you must specify.

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

Question No: 49

An application developer wants to use Simple Data Sharing to pass data to another application that is currently being developed.

What must the application developer do in Worklight Studio to enable this capability for this hybrid application?

  1. At application startup execute

    WL.Client.setSharedToken ({key: appFamilyName, value: myValue}); specifying the Application Family Name as the value.

  2. In the adapter.xml used to authenticate the user, add

    lt;simpleDataSharing appFamilyName=??€?sharedCookies=??€?/gt; and specify the Application Family Name.

  3. In the authenticationConfig.xml add

    lt;simpleDataSharing appFamilyName=??€?sharedCookies=??€?/gt; and specify the Application Family Name.

  4. In the design view of the application-descriptor.xml, select the environment and click ??dd…??to add theSimple Data Sharing option, then specify the Application Family Name.

Answer: D Explanation:

To enable simple data sharing, you must modify the application descriptor. Procedure

-> Add an Android or iOS environment.

-> Add the Simple Data Sharing option.

-> Enable the Simple Data Sharing option and specify an application family name.Etc.

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

Question No: 50

The following is part of a HTTP adapter invocation result.




??escription?? ??lass object????tudent?? {

??escription?? ??tudents marks details?? ??itle??Top Stories??/p>


??tudentmarks?? [


??ame?? ??irjana Lucic-Baroni.?? ??arks?? ??0??

??evel?? ??evel one??/p>



??ame?? ??ose Way.??

??arks?? ??7??

??evel?? ??ull??/p>




} }

An application developer needs to send only the ‘name’ and ‘marks’ information to a mobile application using the adapter xsl file.

Which xsl file code snippet will enable the application developer to achieve this?

  1. { ‘Items’: [

    lt;xsl:for-each select=??/college??gt;


    ‘name: ‘lt;xsl:value-of select=??ollege.name??gt;’, ‘marks’: ‘lt;xsl:value-of select=??ollege.marks??gt;’,





  2. { ‘Items’: [

    lt;xsl:for-each select=??/studentmarks??gt;


    ‘name’: ‘lt;xsl:value-of select=??ame??gt;’, ‘marks’: ‘lt;xsl:value-of select=??arks??gt;’,





  3. { ‘Items’: [

    lt;xsl:for-each select=??/item??gt;


    ‘name’: ‘lt;xsl:value-of select=??ame??gt;’, ‘marks’: ‘lt;xsl:value-of select=??arks??gt;’,





  4. { ‘Items’: [

lt;xsl:for-each select=??/student??gt;


‘name’: ‘lt;xsl:value-of select=??tudent.name??gt;’, ‘marks’: ‘lt;xsl:value-of select=??tudent.marks??gt;’,





Answer: B Explanation:

For each studentmarks select the the name and marks.

100% Dumps4cert Free Download!
Download Free Demo:C5050-408 Demo PDF
100% Dumps4cert Free Guaranteed!
C5050-408 Dumps

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.