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

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

IBM Worklight Foundation V6.2, Mobile Application Development

Question No: 31

An application developer has created an SQL adapter for a hybrid application.

Which artifacts were automatically generated when the application developer created the SQL adapter?

  1. {Adapter_Name}.xml and {Adapter_Name}-impl.js

  2. {Adapter_Name}.xml, {Adapter_Name}.-impl.js, and filtered.xsl

  3. {Adapter_Name}.xml, {Adapter_Name}.-impl.js, and {Adapter_Name}.adapter

  4. {Adapter_Name}.xml, {Adapter_Name}.-impl.js, filtered.xsl, and


Answer: C


Worklight adapters are developed by using XML, JavaScript, and XSL. Each adapter must have the following elements:

-> Exactly one XML file, describing the connectivity to the back-end system to which

the adapter connects, andlisting the procedures that are exposed by the adapter to other adapters and to applications.

-> Exactly one JavaScript file, containing the implementation of the procedures

declared in the XML file.

Note : -impl.js

The adapter logic is implemented in adapters/LocationAdapter/LocationAdapter-impl.js.

-> Zero or more XSL files, each containing a transformation from the raw XML data retrieved by the adapter toJSON returned by adapter procedures. No .xls file is created for a SQL Adapter.

The files are packaged in a compressed file with a .adapter suffix (such as myadapter.adapter).

References: 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: 32

An application developer has built a hybrid application using Worklight Studio and has added an Android environment to the application. The application developer has now built and deployed the Android environment to the Worklight Server.

In the application developer has correctly set up and configured their Android development environment, which of the following steps would they need to complete in order to the run the application on the Android emulator?

Choose Run As -gt; Preview

  1. Right-click the apps/{Application_Name}/android folderChoose Run As -gt; Android Application

  2. Right-click the apps/{Application_Name}/android folderChoose Run As -gt; Preview

  3. Right-click the automatically generated Android Project ({Project_Name}{App_Name}Android Folder)Choose Run As -gt; Android Application

  4. Right-click the automatically generated Android Project ({Project_Name}{App_Name}Android Folder)

Answer: C Explanation:

After you have your source code ready to deploy, simply right-click on your Android

application and select Run as… gt; Build All and Deploy. A new folder should appear in your workspace with the title of your application: Name of our AppAndroid.

Next, right-click that project and select Run as.. gt; Android Application. If you have an actual Android phone connected via USB with developer mode enabled in the settings, the application will automatically run there, otherwise it will run in the existing AVD (Android Virtual Device). This will launch the emulator.

References: http://www.ibm.com/developerworks/library/mo-aim1206-working-with- worklight-1/

Question No: 33

An application developer is developing a hybrid application and has added an Android environment. The developer implemented a native page in order to obtain information from the device and now needs to return the control and information into a new web view to continue with the application flow.

To do this, the native page should be implemented as an Java Activity and declared on a mapping file in the Worklight project.

What is the name of the file where the application developer must declare the Java Activity?

  1. Server.xml

  2. build-settings.xml

  3. AndroidManifest.xml

  4. application-descriptor.xml

Answer: C Explanation:

AndroidManifest.xml file contains a reference to the Activity to be launched when application is started.


Not A: If, for example, you want to activate trace logging in Liberty, add a trace element to the server.xml file. Not B: The build-settings.xml file contains configuration options for minification and concatenation. By using minification on specific web resources, it is possible to reduce the size of JavaScript and CSS files in the application. In addition, concatenation of the web resources can be used to improve the start time of the application.

Not D: The application descriptor is a metadata file that is used to define various aspects of the application. It is in the application root directory and has the name application-


References: http://www.ibm.com/developerworks/library/j-mobileforthemasses3/

Question No: 34

An application developer has an adapter deployed to the Worklight Server that is no longer needed. What must the application developer do to get rid of the adapter?

  1. Click Delete to the right of the application name in the Worklight Console

  2. Click Remove to the right of the application name in the Worklight Console

  3. Right click the adapter and Choose Run-As-gt;Uninstall in Worklight Studio

  4. Right click the adapter and Choose Run-As-gt;Undeploy in Worklight Studio

Answer: A Explanation:

To delete an app in the Workling console: Click Delete to the right of the app name.

Note: The delete adapter command removes (undeploys) an adapter from a runtime. Syntax: delete adapter [runtime-name] adapter-name

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_5.0.5/com.ibm.worklight.help.doc/ devref/ t_deleting_apps.html https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.appadmi n.doc/admin/ r_wladm_program_adapter_commands.html

Question No: 35

An application developer is attempting to implement device single sign-on (SSO) as specified in the following example:


lt;mobileSecurityTest name=鈥滷ormTest鈥?gt;

lt;testDeviceID provisioningType=鈥漬one鈥?gt;

lt;testUser realm=鈥漇ampleAppRealm鈥?gt;




lt;realm name=鈥漇ampleAppRealm鈥?loginModule=鈥滿yLoginModule鈥?gt;





lt;loginModule name=鈥滿yLoginModule鈥?ssoDeviceLoginModule=鈥漌LDeviceAutoProvisioningLoginModule鈥?gt; classNamegt;com.worklight.core.auth.exp.NonValidatingLoginModulelt;/classNamegt;



Upon testing the configuration, the developer finds unexpected results, such as the Worklight project failing to start.

What does the application developer need to do to bring the SSO configuration to a consistent state?

  1. Set the sso.cleanup.taskFrequencyInSeconds server property.

  2. Specify lt;testUser realm=鈥漇ampleAppRealm鈥?sso=鈥漷rue鈥?gt; in the mobile security test.

  3. Add the following line to the mobile security test lt;test realm=鈥滿ySSO鈥?isInternalUserID=:true鈥?gt;

  4. Add the following line to the WMAppManifest.xml file: lt;Capability Name=#39;ID_CAP_IDENTITY_DEVICE#39; /gt;

Answer: B Explanation:

Single sign-on is a property of a login module. You can enable single sign-on from a mobileSecurityTest element or from a loginModule element of authenticationConfig.xml. Enabling single sign-on for a custom security test is done on the loginModule element. Enabling single sign-on for a mobile security test is done on the testUser realm of the mobileSecurityTest element.

When configuring mobileSecurityTest elements, enable single sign-on from the securityTest element by setting the value of the sso attribute to true. Note that you can enable SSO for user realms only. If the sso attribute is not specified, it is assumed to be set

to false. For example:

lt;mobileSecurityTest name=quot;mstquot;gt;

lt;testDeviceId provisioningType=quot;nonequot;/gt;

lt;testUser realm=quot;myUserRealmquot; sso=quot;truequot;/gt;

lt;/mobileSecurityTestgt; References:

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

Question No: 36

An application developer is attempting to update specific portions of a hybrid application by utilizing the direct update feature.

Which components can the application developer update using the direct update feature without having to rebuild and deploy a new binary of the application?

  1. HTML, CSS, JavaScript

  2. HTML, CSS, JavaScript, Java

  3. HTML, CSS, JavaScript, Objective C

  4. HTML, CSS, JavaScript, Version number

Answer: A Explanation:

When you want to deliver a Worklight hybrid application that consists mainly of HTML5 with CSS and JavaScript, and you must change the hybrid part of the application to provide new features or to fix a defect, you do not have to ask the application users to update it on their devices. You can use the Worklight direct update mechanism to deploy new HTML with CSS and JavaScript for your application without changing the application version on the mobile device.


Not D: Delivering a new version of native code

The main reason that you would want to deliver a new version of an application is probably because your application uses native code and you want to provide new features or deliver fixes that require changes in the native code. You might also need to provide a new native version of the application, even if your Worklight application is completely written by using web technologies, to accommodate new mobile operating systems supported only in later versions of IBM Worklight. You cannot use the direct update mechanism in either of these cases. You must build and deploy a new version of the application.


http://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/d evenv/ c_update_apps_wl_ac.html

Question No: 37

An application developer intends to use Worklight iOS native APIs to develop a mobile application. A Worklight iOS native API is added to the Worklight project.

Which file does the application developer need to copy to the native iOS application project to connect to the Worklight server?

  1. info.plist

  2. worklight.plist

  3. authenticationConfig.xml

  4. application-descriptor.xml

Answer: B Explanation:

The IBM Worklight native library and the client property file: The name and the format of this content depend on the environment.

for iOS:

The WorklightAPI folder defines the IBM Worklight native library. The worklight.plist file is the client property file.

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

Question No: 38

An application developer is concerned about how many requests may hit the adapter being created. The developer wants to ensure that the adapter can handle enough requests, but yet not allow requests to overwhelm the system.

What can the application developer do to limit the number of requests that an adapter will handle?

  1. In the web server configuration, specify number of requests for MaxClients.

  2. In the application server configuration, specify the number concurrent requests for the servlet engine.

  3. In the loadContraints element of the adapter XML file, specify the number of requests formaxConcurrentConnectionsPerNode.

  4. In the connectionPolicy element of the adapter XML file, specify the number of requests formaxConcurrentConnectionsPerNode.

Answer: D Explanation:

Tuning Back-end Connections

maxConcurrentConnectionsPerNode – The maximum number of concurrent requests that can be performed on the back-end application from the Worklight server node. The worklight server will create a thread pool with maxConcurrentConnectionsPerNode size for that purpose. This maxConcurrentConnectionsPerNode parameter is set in the adapter.xml in the connectivity entry.

References: https://www.ibm.com/developerworks/community/blogs/worklight/entry/tuning_worklight_se rver?lang=en

Question No: 39

An application developer is implementing form-based authentication. The developer has created a challenge handler object to handle challenges from the SampleAppRealm by invoking createChallengeHandler on WL.Client as follows:

var sampleAppRealmChallengeHandler = WL.Client.createChallengeHandler (鈥淪ampleAppRealm鈥?;

Which function of the challenge handler must the application developer implement?

  1. submitFailure

  2. submitSuccess

  3. submitLoginForm

  4. isCustomResponse

Answer: C Explanation:

References: https://www.ibm.com/developerworks/community/blogs/f870215a-82d8-4701- 88a5-7937fb3c73c0/ entry/ibm_worklight_authentication_form_based_authentication_using_database_login_mo dule?lang=en

Question No: 40

An application developer is using Unstructured Supplementary Service Data (USSD) on a mobile application that is configured to send a USSD message with the information that is going to be stored on the server. After the information is stored, the application developer needs to configure a custom response message for the application that will send the text 鈥淪uccess鈥?to the user.

Which is the correct code implementation that the application developer can use to return the expected response message to the user?

  1. WL.Server.sendUSSDMessage(鈥淪uccess鈥? 鈥渢ext/plain鈥? false))

  2. WL.Server.sendUSSDResponse(鈥淪uccess鈥? 鈥渢ext/plain鈥? true))

  3. WL.Server.createUSSDMessage(鈥淪uccess鈥? 鈥渢ext/plain鈥? false))

  4. WL.Server.createUSSDResponse(鈥淪uccess鈥? 鈥渢ext/plain鈥? true))

Answer: D Explanation:

To send back a response:

WL.Server.createUSSDResponse(quot;This is my responsequot;, quot;text/plainquot;, true)) References:

https://www.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/ devref/ c_ussd_support.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