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

Ensurepass.com : Ensure you pass the IT Exams
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% Ensurepass Free Download!
Download Free Demo:C5050-408 Demo PDF
100% Ensurepass Free Guaranteed!
C5050-408 Dumps

EnsurePass 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