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

2017 Jan IBM Official New Released C5050-408
100% Free Download! 100% Pass Guaranteed!

IBM Worklight Foundation V6.2, Mobile Application Development

Question No: 11

An application developer is building a hybrid application to be deployed to multiple environment types. The developer has built out a lot of the base code using the common environment and now wants to add support for platform specific environments.

When creating new environments inside of Worklight Studio for this application, from which environment categories will the application developer be able to choose platform-specific environments?

  1. Phones, Tablets, Web

  2. Phones, Tablets, Desktop

  3. Mobile, Desktop, Web

  4. Mobile, Browser, Desktop

Answer: C Explanation:

IBM Worklight environments

You can build your mobile applications for different environments, such as:

-> Mobile environments, which include iPhone, iPad, Android phones and tablets,

BlackBerry 6 and 7,BlackBerry 10, and Windows Phone 8.

-> Desktop environments, which include Adobe AIR and Windows 8.

-> Web environments, which include Mobile web app and Desktop Browser web page.

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

Question No: 12

The application developer wants to use raw data reports to obtain usage information about the applications and adapters.

To enable raw data reports feature, the application developer needs to:

  1. set reports.exportRawData property to true and configure the wl.reports.db properties to the databasesettings in the worklight.properties file.

  2. set reports.exportRawData property to true and configure the wl.reports.db properties to the databasesettings in the application-descriptor.xml file.

  3. stop Worklight Server, set reports.exportRawData property to true and configure the wl.reports.dbproperties to the database settings in the worklight.properties file, then restart Worklight Server.

  4. stop Worklight Server, set reports.exportRawData property to true and configure the wl.reports.dbproperties to the database settings in the application-descriptor.xml file, then restart Worklight Server.

Answer: C Explanation:

Raw data reports provide you with analytics information about your applications and adapter usage, such as activity type, device information, and application version. Use the following steps to enable the raw data reports feature:


-> Ensure that the IBM Worklight Server application server is not running.

-> Create a separate database or a new schema for reports.

-> When you work in a development environment, complete the following steps.

3a. Edit the worklight.properties file. Uncomment the reports.exportRawData property and set its value to true. 3b. Modify the wl.reports.db properties to contain your database settings as shown in the following example.


# Raw reports

################################################# reports.exportRawData=true

# jndi name; empty value means Apache DBCP data source


# Default values for DBCP connection pool




#wl.reports.db.testOnBorrow=${wl.db.testOnBorrow} wl.reports.db.url=jdbc:mysql://localhost:3306/wlreport wl.reports.db.username=worklight wl.reports.db.password=worklight

Ensure that the wl.reports.db.url property contains the URL of the database you are planning to use for raw data.

4 When you work in a production environment, connect to the reports database by using JNDI environment entries in addition to editing the worklight.properties file, as described in the previous step.

  1. Restart your application server. References:

    https://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.monitor.d oc/ admin/t_raw_data_reports.html

    Question No: 13

    An application developer needs to create a new Worklight project in the current working directory by using the IBM Worklight Command Line Interface (CLI). The developer needs to create the project with the name 鈥淲LProject鈥?

    To do so, which command should the application developer use?

    1. wl new WLProject

    2. wl create WLProject

    3. wl new project WLProject

    4. wl create project WLProject

Answer: B Explanation:

wl create [lt;namegt;]

This command creates a new Worklight project in the current working directory. References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/ dev/ r_wl_cli_commands.html

Question No: 14

An application developer is working on a hybrid application. The application developer needs to display a modal message to the user indicating that data is being loaded, while this data is retrieved from the server.

Which code snippet can the application developer use to display this message?

  1. WL.ModalMessage.show(#39;Loading…#39;);

  2. WL.BusyIndicator.show(#39;Loading…#39;);

  3. var busyInd = new WL.BusyIndicator (null, {text : #39;Loading…#39;}); busyInd.show();

  4. var modalMsg = new WL.ModalMessage (#39;content#39;, {text : #39;Loading…#39;}); modalMsg.show();

Answer: C Explanation:

Example: var busy; function wlCommonInit(){

busy = new WL.BusyIndicator (quot;contentquot;, {text : #39;Loading Data Please Wait….#39;, boxLength: 255.5}); busy.show();

References: http://stackoverflow.com/QUESTION NO:s/20784146/ibm-worklight-6-1-how- to-customize-wl-busyindicators-heightand-width

Question No: 15

Before deploying the application to production, the application developer wants to test the application on a

physical device.

After connecting the device via a USB cable to the computer where the application will be tested, which of the following required actions must the application developer perform in order to test the application on a device?

-> Android: Android:


-> Enable #39;#39;USB debugging#39;#39; on the device.

-> Right click on the {Project_Name}{App_Name}Android project and select Run As gt; Android StudioProject

-> Obtain a developer certificate to sign applications.

-> Obtain a provisioning profile that identifies the developer certificate, the device, and the applicationswhich can be run on the device.

-> Open the Project in Xcode, select the actual device in the Scheme menu, then


click Run

  1. Obtain a developer certificate to sign applications.

  2. Obtain a provisioning profile that identifies the developer certificate, the device, and the applicationswhich can be run on the device.

  3. Set worklightSettings property to false in the application-descriptor.xml

  4. Open the Project in Xcode, select the actual device in the Scheme menu, then click Run

Answer: A,D Explanation:

A: On an android device connected to PC with USB debugging and use the Run As gt; android application command from Eclipse.

D: 1. According to Apple#39;s requirements, your application must be signed with a developer identity in order for it to be installed and run on an iOS device.

2. A development provisioning profile must be created 3. Example of application- descriptor.xml file for IOS use:

lt;iphone bundleId=quot;com.worklight.MyBankAppquot; version=quot;1.0quot;gt;

lt;worklightSettings include=quot;falsequot;/gt;


lt;encryptWebResources enabled=quot;falsequot;/gt;

lt;testWebResourcesChecksum enabled=quot;falsequot; ignoreFileExtensions=quot;png, jpg, jpeg, gif, mp4, mp3quot;/gt; lt;/securitygt;


  1. The Eclipse IDE does not support iOS application development. Therefore, you must transfer the application to Xcode, Apple IDE for iOS development.

    If you are running a Mac version of Eclipse, right-click the iPhone or iPad environment folder and select Run As gt; Xcode project.


    http://stackoverflow.com/QUESTION NO:s/26499847/worklight-6-2-app-on-android-device- always-thinks-theres-anupdate http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/d ev/ c_ibm_worklight_app_authentication_overview.html

    Question No: 16

    The application developer wants to use the Mobile Browser Simulator to preview and test Worklight applications.

    Which of the following application environments can the application developer preview on

    the Mobile Browser Simulator?

    1. Android, iPhone, iPad, and Adobe Air

    2. Android, iPhone, iPad, Windows Phone 8 and Desktop Browser web page

    3. Android, iPhone, iPad, Blackberry 6 and 7, Blackberry 10, Windows Phone 8, and Mobile Web

    4. Android, iPhone, iPad, Adobe Air, Blackberry 7, Blackberry 10, Windows Phone 8, and Windows 8 desktopand tablets

Answer: C Explanation:

You can use the Mobile Browser Simulator to preview Worklight applications on Android, iPhone, iPad, BlackBerry 6 and 7, BlackBerry 10, Windows Phone 8, and mobile web application environments.

References: http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/wl

_studio_tools/ topics/cmbswl.html?lang=en

Question No: 17

A client requires to change the default IBM splash image of an Android Worklight application.

How can the application developer implement this requirement?

  1. Uncomment the autoHideSplash option in the initOptions.js file.

  2. Replace splash.png located in android\native\res\drawable with the customized splash image.

  3. Use WL.App.showSplashScreen API method and add a custom Java code to reload the application.

  4. Save the customized image in the images folder and change configurations in the application-descriptor.xml file.

Answer: B Explanation:

You can change the default splash image that is located in the res/drawable folder and is named splash.png.

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

Question No: 18

An application developer has started configuring header-based authentication for an application. So far, the developer has implemented the security test and login module as follows:


lt;customSecurityTest name=鈥滺eaderTest鈥?gt;

lt;test realm=鈥漅ealmHeader鈥?isInternalUserID=鈥漷rue鈥?/gt;




lt;loginModule name=鈥滺eaderLogin鈥?gt;


lt;parameter name=鈥漸ser-name-header鈥?value=鈥漸sername鈥?gt;



Which of the following is a valid realm definition that the application developer can use for this header login module?

  1. lt;realmsgt;

    lt;realm name=鈥漅ealmHeader鈥?loginModule=鈥滺eaderLogin鈥?gt; lt;/realmsgt;

  2. lt;realmsgt;

    lt;realm name=鈥漅ealmHeader鈥?loginModule=鈥滺eaderLogin鈥?gt;




  3. lt;realmsgt;

    lt;realm name=鈥漅ealmHeader鈥?loginModule=鈥滺eaderLogin鈥?gt;




  4. lt;realmsgt;

lt;realm name=鈥漅ealmHeader鈥?loginModule=鈥滺eaderLogin鈥?gt;

lt;classNamegt;com.worklight.integration.auth.ext.HeaderAuthenticatorlt;/ classNamegt;

lt;parameter name=鈥漧ogin-page鈥?value=鈥?login.html鈥?gt;

lt;parameter name=鈥漞rror-page鈥?value=鈥?loginError.html鈥?gt;

lt;/realmgt; lt;/realmsgt;

Answer: D Explanation:

Each realm has a name, a loginModule specification, a className of an authenticator implementation and optional parameters.


lt;realm name=quot;WASLTPARealmquot; loginModule=quot;WASLTPAModulequot;gt;

lt;classNamegt;com.worklight.core.auth.ext.WebSphereFormBasedAuthenticatorlt;/classNam egt;

lt;parameter name=quot;login-pagequot; value=quot;/login.htmlquot;/gt;

lt;parameter name=quot;error-pagequot; value=quot;/loginError.htmlquot;/gt; lt;/realmgt; References: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-6- 3/authentication-security/ authentication-concepts/

Question No: 19

An application developer has created a hybrid application and is in the process of adding a platform-specific environment for iPhone.

When the application developer adds the new environment for iPhone, what folders will automatically be created under the /apps/{Application_name}/iphone folder once the platform environment has been built?

  1. css, html, js, native, nativeResources

  2. css, html, legal, native, nativeResources

  3. css, images, js, native, nativeResources

  4. css, images, legal, native, nativeResources

Answer: C Explanation:

The app code can include CSS files to define the application view. Style sheets are placed under the \common folder (normally under \common\css) and optionally in the optimization and skin folders.

Worklight Studio creates a default thumbnail image when the app is created. You can override this default image (using the same file name) with a replacement image that

matches your application. The file is in the \common\images folder of the app.

The app code can include JavaScript files that implement interactive user interface components, business logic and back-end query integration, and a message dictionary for globalization purposes. Scripts are placed under the \common folder (normally under

\common\js) and optionally in the optimization and skin folders.

For Apple iOS platforms, the default splash images are stored as follows:

For iPhone, under iphone\native\Resources For iPad, under ipad\native\Resources References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/ devref/ r_application_resources.html

Question No: 20

An application developer is developing a native iOS application. The application developer needs to call a web service to retrieve application data. In order to do that, the application developer will call an existing Worklight adapter that retrieves this data.

  1. MyInvokeListener

  2. WLAdapterDelegate

  3. WLAdapterInvocationData

  4. WLProcedureInvocationData

Answer: D Explanation:

The WLProcedureInvocationData class contains all necessary data to call a procedure, including:

The name of the adapter and procedure to call. The parameters that the procedure requires.

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.apiref.do c/html/refjavaworklight-android- native/html/com/worklight/wlclient/api/WLProcedureInvocationData.html

100% Free Download!
Download Free Demo:C5050-408 Demo PDF
100% Pass 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
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE

Leave a Reply