All questions Flashcards

1
Q

Which authenticators are supported out of the box? (Choose three)

Header authentication
Persistent cookie authentication
Form-based authentication
Kerberos authentication

A

Header authentication
Persistent cookie authentication
Form-based authentication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Once a Shell developer completes developing her Shell components, what is the proper way to distribute it to inner application developers?

A. Zipping the Worklight project and emailing it to inner application developers

B. Committing the Worklight project to a Source Control Management system and telling inner application developers to use source code from it

C. The Shell developer should not distribute the Shell component to inner application developers. They should send their inner applications to her in order to build them

D. Sending the .wlshell Shell bundle file to inner application developers

A

Sending the .wlshell Shell bundle file to inner application developers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When should the Shell development approach be considered?

A. There are only two developers

B. The company wants to create a number of mobile applications sharing a common native code base and authentication mechanism

C. The company wants to create a native iOS and Android application, but its resources are limited

D. The company has distributed development teams situated on different continents that must share the source code

A

The company wants to create a number of mobile applications sharing a common
native code base and authentication mechanism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is messages.js file used for?

This file contains the texts of application pop-up prompts

This file contains the texts of error messages that application may show

This is an internal framework file. It is used to store system messages for debugging
purposes

This file contains strings that can be used for application elements

A

This file contains strings that can be used for application elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which OS uses an HTML generated tab-bar?

A

Android

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following is not a client side push API?

WL.Client.Push.isPushSupported()
WL.Client.Push.isSubscribed()
WL.Client.Push.unsubscribe()
WL.Client.Push.poll()

A

WL.Client.Push.poll()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A Worklight adapter is used to __________.

A

connect to various back-end systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of these adapter properties is mandatory?

adapter name
display name
description
ip address

A

adapter name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can SQL statements can be invoked?

A

Both by using SQL statement query and SQL stored procedures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Assuming it is not overridden manually, in which case will the isSuccessful property of the procedure invocation result be true?

Worklight server is not accessible

Back end that adapter tries to connect to is not accessible

Internet is not available on a mobile device

Specified procedure does not exist in adapter

A

Back end that adapter tries to connect to is not accessible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What types of Java methods can be called from Worklight adapter?

A

Both static and instance methods can be called from adapter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What client side mechanism is used to detect that the server requires authentication for the client s request?

Authenticator.isAuthenticationRequired

Authenticator.isUserAuthenticated

Authenticator.analyzeServerResponse

Authenticator.isLoginFormResponse

A

Authenticator.isLoginFormResponse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How many JSON objects are in the messages.js file?

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following invocationData properties are mandatory? (Choose two)

“invocation”
“adapter”
“procedure”
“parameters”

A

“adapter”

“procedure”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the minimum number of adapter files for a particular adapter?

0
1
2
3

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In order for a plug-in to be recognized by an iOS application s JavaScript it should be added to

Cordova.plist file

Worklight.plist file

Plugins.plist file

Plug-in will be automatically recognized by JavaScript without adding it to any of above files

A

Cordova.plist file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which environments are supported by Worklight? (Choose three)

iOS 3
Blackberry OS 5
Windows Phone
Android 4.0

A

Blackberry OS 5
Windows Phone
Android 4.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which mobile environments use the native implementation of a busy indicator? (Choose three)

iOS
Android
BlackBerry
Windows Phone

A

iOS
Android
Windows Phone

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Each Worklight adapter consists of a _______________.

A. single XML file with adapter settings, single JS file with adapter implementation
B. single XML file with adapter settings, multiple JS files with adapter implementation
C. multiple XML files with adapter settings, multiple JS files with adapter
implementation
D. multiple XML files with adapter settings, single JS file with adapter implementation

A

single XML file with adapter settings, single JS file with adapter implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Which of the below connections are mandatory for push notifications to work? (Choose three)

Client application should be able to connect to a APNS/C2DM server

Client application should be able to connect to Worklight server

Worklight server should be able to connect to a APNS/C2DM server

More than one OS platform is required

A

Client application should be able to connect to a APNS/C2DM server

Client application should be able to connect to Worklight server

Worklight server should be able to connect to a APNS/C2DM server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What screen width does Android assume its html file is styled for?

A. 480
B. 160
C. 320
D. 1600

A

320

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Which of the following server-side components cannot be added as a part of Worklight Project?

A. Source code of a custom server-side Java classes
B. Properties that should be used by server
C. JAR files containing server-side Java code
D. JMeter application to test Server s performance

A

JMeter application to test Servers performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Pick the login type that is not supported by Worklight.

onStartup
never
onAlarm
onDemand

A

onAlarm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What type of adapter is not provided by Worklight out-of-the-box?

SQL adapter to connect to a SQL based servers

HTTP adapter to communicate with a web-based service
CastIron adapter

SIP adapter for VoIP communications

A

SIP adapter for VoIP communications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is the default project application structure?

A

A single HTML file and a number of CSS and JS files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What happens when adapter procedure invocation fails due to inability to reach the Worklight
server?

Client side framework will try to invoke the procedure again and again until succeeded

onFailure callback specified in invocation options will be invoked. Developer should use it to treat server connectivity issues

onFailure callback specified in invocation options will be invoked. WL.Events.WORKLIGHT_IS_DISCONNECTED event will be fired. Developer should use either to treat server connectivity issues

Client side framework will show an error message with a retry button

A

onFailure callback specified in invocation options will be invoked. WL.Events.WORKLIGHT_IS_DISCONNECTED event will be fired. Developer should use either to treat server connectivity issues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Which class should be added to an element in order for it to use a property from messages.js?

A. resource
B. translate
C. localizable
D. externalText

A

translate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What are the components of a Cordova plug-in?

A. A native class implementing the required functionality: It can be called directly from
application s JavaScript
B. A native class implementing the required functionality and a JavaScript wrapper for
it: The wrapper s functions can be called from JavaScript.
C. A native class implementing the required functionality, a JavaScript wrapper for it
and a declaration in the application-descriptor.xml file
D. A JavaScript wrapper only ; Native classes are already provided by Worklight.

A

A native class implementing the required functionality and a JavaScript wrapper for it: The wrappers functions can be called from JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

HTTP adapters can be used to__________. (Choose three)

Work with RESTful services
Work with SOAP services
Work with JMS services
Issue GET and POST requests

A

Work with RESTful services
Work with SOAP services
Issue GET and POST requests

30
Q

Is it possible to use an existing JAR in my Worklight adapter?

A. No, it is not possible
B. Yes, it is possible. JAR file should to be added to server\lib folder
C. Yes, it is possible. JAR file should to be copied to Eclipse workspace
D. Yes, it is possible. JAR file should be added to server\java folder

A

Yes, it is possible. JAR file should to be added to server\lib folder

31
Q

What information cannot be retrieved using WL.Device.getNetworkInfo API?

A. Device s current IP address
B. Telephony type currently in use (GSM/UMTS etc)
C. Whether device is currently or roaming
D. Device s phone number

A

Devices phone number

32
Q

How do you localize a System Message?

A. Insert it in messages.js
B. Override each message in your Javascript
C. Make a new page for each message
D. Add a new folder for each language

A

Override each message in your Javascript

33
Q

Is it possible to transfer data between web and native page?

A. Web to native only
B. Native to web only
C. Neither way
D. Both ways

A

Both Ways

34
Q

Which busy indicator option only applies to iOS?

text
color
fullScreen
orientation

A

fullScreen

35
Q

When working with a SQL adapter which of the following file should be manually added to project?

A. JDBC connector driver
B. Database schema
C. Properties file containing SQL server credentials and configuration
D. Startup script that will connect Worklight server to a specified SQL database

A

JDBC connector driver

36
Q

Which SQL servers are supported by theWorklight SQL adapter?

MySQL
Oracle 11g
DB2

A

All of the above

37
Q

Where should the icons used for the Windows application bar be placed?

A. windowsphone/images
B. windowsphone/resources/applicationBar
C. windowsphone/applicationBarImages
D. windowsphone/resources/icons

A

windowsphone/resources/applicationBar

38
Q

The difference between the Authenticator and Login modules is:

Authenticator is a server side entity used to collect and validate credentials. Login
module is a server side entity used to create user identity

Authenticator is a server side entity used to collect credentials and create user identity. Login module is a server side entity used to validate credentials

Authenticator is a server side entity used to collect credentials. Login module is a server side entity used to validate credentials and create user identity

Authenticator is a client side entity that performs basic credentials validation. Login module is a server side entity which performs deep credentials validation

A

Authenticator is a server side entity used to collect credentials. Login module is a server side entity used to validate credentials and create user identity

39
Q

What function is invoked when the Worklight framework initialization finishes?

A. wlInit()
B. wlInitFinished()
C. wlCommonInit()
D. wlStart()

A

wlCommonInit()

40
Q

What are the steps of creating a native page?

A. Create a new Java class, extend Activity
B. Create a new Java class, extend Activity, add an activity declaration to AndroidManifest.xml
C. Create a new Java class, extend NativePage
D. Create a new Java class, extend NativePage, add a native page declaration to AndroidManifest.xml

A

Create a new Java class, extend Activity, add an activity declaration to AndroidManifest.xml

41
Q

How can the developer declare what to do when a response from Worklight adapter is received?

Developer does not have to declare it. Client side framework code will do everything automatically

By specifying the callback function names in adapter s XML file

By specifying the callback function names in onSuccess and onFailure properties of an options object

By adding the callback function names as an invocation parameters

A

By specifying the callback function names in onSuccess and onFailure properties of an options object

42
Q

What class must be extended to create a custom Java login module?

A. com.worklight.Auth
B. com.worklight.auth.ext.UserNamePasswordLoginModule
C. com.worklight.auth.Login
D. com.worklight.auth.api.UserIdentity

A

com.worklight.Auth

43
Q

Is it possible to detect current device language and locale?

A. Yes, using WL.App.getDeviceLocale and WL.App.getDeviceLanguage APIs

B. Yes, using WL.App.getDeviceLanguageSettings API

C. It is only possible to detect the device language by using WL.App.getDeviceLanguage

D. No, it is not possible

A

Yes, using WL.App.getDeviceLocale and WL.App.getDeviceLanguage APIs

44
Q

Which of these is not a function of WL.Client?

Manipulate elements class names
Obtain general app information
Manage authenticated sessions
Dynamic page and fragment loading

A

Manipulate elements class names

45
Q

What format of data can the HTTP adapter retrieve and automatically parse? (Choose three)

A. Swift
B. XML
C. JSON
D. Plain text

A

XML
JSON
Plain text

46
Q

What namespace is used for the Worklight API?

A. W
B. WL
C. Worklight
D. WLite

A

WL

47
Q

Which of the following API can be used across all environments to debug Worklight
application?

console.log
console.debug
WL.Logger.debug
WL.Debugger.log

A

WL.Logger.debug

48
Q

What are the steps to create an iOS native page?

A. Create a new Objective C class, subclass UIViewController
B. Create a new Objective C class, subclass UINativePage
C. Create a new Objective C class, make it partial class of the application s main ViewController
D. Add UI layout to the existing ViewController
A

Create a new Objective C class, subclass UIViewController

49
Q

What is the dependency between realm, authenticator and login module in the authenticationConfig.xml file?

A. Each authenticator element must specify its className, realm and loginModule
B. Each realm element must specify a className of its authenticator and loginModules name
C. Each loginModule element must specify a className of its realm and authenticators name
D. Each authenticator element must specify its realm and its loginModule

A

Each realm element must specify a className of its authenticator and loginModules name

50
Q

The correct place to specify the application s metadata is __________.

authenticationConfig.xml

worklight.properties

application-descriptor.xml

This setting should be done separately per platform in a dedicated settings file

A

application-descriptor.xml

51
Q

Which of the following APIs is synchronous and does not require callbacks to be set up?

WL.EncryptedCache.open
WL.EncryptedCache.read
WL.EncryptedCache.destroy

A

None of the above

52
Q

Can application-related custom data be sent in a push notification?

A. No, push notification may only contain notification text that will be shown to user
B. Yes, application-related custom data can be sent in the push notification. but the
application must be running in the foreground in order to receive it.
C. Yes, application-related custom data can be sent in the push notification but the
application must be running in the background in order to receive it.
D. Yes, application-related custom data can be sent in the push notification. The
application may receive it even if it was not running at the time of push notification
arrival.

A

Yes, application-related custom data can be sent in the push notification. The application may receive it even if it was not running at the time of push notification arrival.

53
Q

For which OSes does Worklight provide unified push notification? (Choose two)

Windows Phone
Android
iOS
Blackberry

A

Android

iOS

54
Q

How does an adapter present data back to the application?

A. SOAP
B. JMS
C. JSON
D. RMI

A

JSON

55
Q

Which of the below should not be a part of Shell component?

Authentication module

Native functionality JavaScript wrapper

Application UI components

Company logo that should be shared between several application

A

Native functionality JavaScript wrapper

56
Q

Which sentences correctly describe the encrypted cache ?

The encrypted cache is stored in the device s native storage. Its size is limited by the free space on a device therefore large amounts of data can be stored.

HTML5 WebStorage is used for storing encrypted cache; therefore the amount of data stored in it is limited to several megabytes

The encrypted cache is stored on Worklight server. Its size is limited by the free space in the Worklight server s database; therefore large amounts of data can be stored

The encrypted cache is stored in virtual memory. Its size is limited by the devices RAM and erased each time user quits the application.

A

HTML5 WebStorage is used for storing encrypted cache; therefore the amount of data stored in it is limited to several megabytes

57
Q

A developer creates two adapters. Each adapter is protected by its own authentication realm
with different login modules. What would be the consequence of this approach?

A. Once the user authenticates in one realm he will be automatically authenticated in a second one
B. The user will not be able to use these adapters together in same application
C. The user will have to login in each realm separately
D. The user will have to logout from one realm prior to using adapter protected by another realm

A

The user will have to login in each realm separately

58
Q

Which objects properties should be overwritten in order to override system messages?

WL.SystemMessages
WL.Messages
WL.Resources.Messages
WL.ClientMessages

A

WL.ClientMessages

59
Q

When defining a realm using adapter based authentication in authenticationConfig.xml, which
parameters are mandatory? (Choose two)

login-function
adapter-name
logout-function
realm-name

A

login-function

realm-name

60
Q

Which mobile environments support the TabBar control? (Choose two)

BlackBerry,
Windows Phone
iOS,
Android

A

iOS

Android

61
Q

How can Java code replace a Worklight adapter?

A. It is possible to setup request routing directly to Java code removing the need to use Worklight adapter
B. By setting useJavaAdapters property to true in adapter s XML file
C. By deleting the adapter s JS file and declaring Java class in XML file
D. Java code can be used as an extension of adapter functionality; it cannot be used as a replacement
A

Java code can be used as an extension of adapter functionality; it cannot be used as a replacement

62
Q

What does the common folder hold?

A. All resources shared between environments
B. Only files considered ordinary by the developer
C. The splash screens for the each platform
D. An mp3 of the Worklight theme song

A

All resources shared between environments

63
Q

What is a common control?

A. A user interface element that is common to most environments
B. A way to specify how group of elements is controlled
C. An emulation of device s native controls using various technologies
D. A native interface element which cannot be controlled by a web means such as JavaScript

A

A user interface element that is common to most environments

64
Q

A user has several devices. He s using the application from all of them. Is it possible to send a push notification to a specific device?

A. No, once Worklight server submits push notification it will be delivered to all of users devices
B. Yes, userSubscription contains deviceSubscription objects for each device user ever registered for push notifications from. It can be used to send notification to a specific device.
C. Yes, once Worklight server submits push notification it will be delivered to the last user of the device
D. No, this is considered a security breach. If the user has more than one device notification will not be sent at all

A

Yes, userSubscription contains deviceSubscription objects for each device user ever registered for push notifications from. It can be used to send notification to a specific device.

65
Q

A connectivity to Worklight server is only required in order to __________.

A. create a new encrypted cache
B. open an existing encrypted cache
C. read/write values to encrypted cache
D. destroy encrypted cache

A

create a new encrypted cache

66
Q

Where in the Worklight project structure do Worklight.properties belong?

A. server\conf
B. resources\properties
C. server\lib
D. tomcat\worklight

A

server\conf

67
Q

What is a best way to keep an active server session alive?

A. Alert user that session is about to expire and ask to perform some action to keep it alive
B. Invoke any Worklight adapter procedure in the background ignoring the response
C. Set heartbeat interval to a value lower than session timeout defined on Worklight
server
D. There is no way to keep session alive from the client. Server is the only entity that can control this

A

Set heartbeat interval to a value lower than session timeout defined on Worklight server

68
Q

What protects a Worklight entity from unauthorized access?

A. The login page
B. The AuthorizeAccess web service
C. An authentication realm
D. The authentication adapter

A

An authentication realm

69
Q

How can a developer specify which adapter procedures will be protected by an authentication
realm?

A. Once the authentication realm is specified in adapter s XML file, all of the adapters procedures are protected by it
B. The developer doesn t need to specify it. Authentication credentials should be added on the client side when using WL.Client.invokeProcedure
C. The developer should add a requiresAuthentication=”true” property to the procedure
definition in adapter s XML
D. An authentication realm does not protect adapter procedures. Protection is for applications only

A

The developer should add a requiresAuthentication=”true” property to the procedure definition in adapter s XML

70
Q

Can an HTTP adapter be used with a non standard HTTP ports?

A. You must use port 80 for HTTP and port 443 for HTTPS
B. You can use any port for HTTP but only to port 443 for HTTPS
C. You must use port 80 for HTTP but can use any port for HTTPS
D. It is possible to use any port for both HTTP and HTTPS

A

It is possible to use any port for both HTTP and HTTPS

71
Q

Which of the following is not a Worklight project folder?

adapters
bin
lib
phone

A

phone

72
Q

When should Cordova plug-ins be used?

A. When the developer wants to implement the application in the native code because he is not familiar with JavaScript
B. When the developer wants the application to look more like a native application
C. When the developer wants to gain access to OS APIs which are not accessible within the web container
D. When the developer needs to retrieve data from a remote server

A

When the developer wants to gain access to OS APIs which are not accessible within
the web container