An application developer is developing a hybrid application that retrieves data from a back-end server using a HTTP adapter. Which client-side implementation should the application developer use in order to invoke this adapter?
A. WL.Client.invokeAdapter ({ adapter : 'adapterName' , procedure : 'procedureName' ,
parameters : [ ] , }, { timeout: 300000 } )
.then(function(invocationResult){
WL.Logger.log('Call successful');
}),
.fail( function (errorObject){
WL.Logger.error('Error calling adapter: ' + errorObject.errors);
});
B. WL.Client.invokeProcedure ({ adapter : 'adapterName' , parameters : [ 'procedureName'
] , onSuccess : function(invocationResult){
WL.Logger.log('Call successful');
},
onFailure: function(errorObject){
WL.Logger.error('Error calling adapter: ' + errorObject.errors);
}
});
C. WL.Client.invokeProcedure ({ adapter : 'adapterName' , procedure : 'procedureName' ,
parameters : [ ] , }, { timeout: 300000 } )
.then(function(invocationResult) {
WL.Logger.log('Call successful');
}),
.fail( function (errorObject){
WL.Logger.error('Error calling adapter: ' + errorObject.errors);
});
D. WL.Client.invokeAdapter ({ adapter : 'adapterName' , procedure : 'procedureName' ,
parameters : [ ] ,
}, { onSuccess : function(invocationResult){
WL.Logger.log('Call successful');
},
onFailure: function(errorObject){
WL.Logger.error('Error calling adapter: ' + errorObject.errors);
}
});
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
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:
<securityTests>
<customSecurityTest name="HeaderTest">
<test realm="RealmHeader" isInternalUserID="true" />
</customSecurityTest>
</securityTests>
<loginModules>
<loginModule name="HeaderLogin">
<className>com.worklight.core.auth.ext.HeaderLoginModule</className>
<parameter name="user-name-header" value="username"/>
</loginModule>
</loginModules>
Which of the following is a valid realm definition that the application developer can use for
this header login module?
A. <realms>
<realm name="RealmHeader" loginModule="HeaderLogin">
<className>com.worklight.integration.auth.ext.HeaderAuthenticator</ className>
<parameter name="login-page" value="/login.html"/>
<parameter name="error-page" value="/loginError.html"/>
</realm> </realms>
B. <realms>
<realm name="RealmHeader" loginModule="HeaderLogin">
<className>com.worklight.core.auth.ext.HeaderAuthenticator</className>
</realm>
</realms>
C. <realms>
<realm name="RealmHeader" loginModule="HeaderLogin">
<onLoginUrl>/login.html</onLoginUrl>
</realm>
</realms>
D. <realms>
<realm name="RealmHeader" loginModule="HeaderLogin"/> </realms>
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
An application developer has implemented certificate based authentication. The developer wants to enforce that the application immediately authenticates with a certificate when connecting to the Worklight server.
What must the application developer do to configure this security setting for the Android environment?
A. Add protection for static resources in the authenticationConfig.xml file.
B. Enable WebShere Application Server application security to enforce authentication by WebShereApplication Server.
C. Add the certificate-based securityTest as an attribute to the android element in the applicationDescriptor.xml file.
D. Enable and configure certificate based authentication in the worklight.properties file.
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
A mobile application developer needs to modify the direct update interface of an application to set a custom message requested by a client. To accomplish this task, the application developer needs to use the handleDirectUpdate function.
How should the application developer implement this requirement?
A. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateContext)
{
var customDialogTitle = 'Custom Title Text'; var customDialogMessage = 'Custom
Message Text'; var customButtonText = 'Custom Button Text';
WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text :
customButtonText, handler : function() {
directUpdateContext.init();
}
}]);
};
B. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData,
directUpdateContext)
{
var customDialogTitle = 'Custom Title Text'; var customDialogMessage = 'Custom
Message Text'; var customButtonText = 'Custom Button Text';
WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text :
customButtonText, handler : function() {
directUpdateContext.stop();
}
}]);
};
C. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData,
directUpdateContext)
{
var customDialogTitle = 'Custom Title Text'; var customDialogMessage = 'Custom
Message Text'; var customButtonText = 'Custom Button Text';
WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text :
customButtonText, handler : function() {
directUpdateContext.start();
}
}]);
};
D. wl_DirectUpdateChallengeHandler.handleDirectUpdate = function(directUpdateContext)
{
var customDialogTitle = 'Custom Title Text'; var customDialogMessage = 'Custom
Message Text'; var customButtonText = 'Custom Button Text';
WL.SimpleDialog.show(customDialogTitle, customDialogMessage, [{ text :
customButtonText, handler : function() {
directUpdateContext.stop();
}
}]);
};
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
What is the purpose of the Application Center?
The Application Center is:
A. IBM's version of a public Application Store that targets usage outside of a company, similar to the AndroidMarket or Apple's public Application Store.
B. used to share only Worklight applications among different team members within a company.
C. a means of sharing information among different team members within a company, where some mobileapplications can be targeted to specific groups of users.
D. intended for production-ready applications only. Development team members should look for other meansof collaboration.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
An application developer is using Worklight skins to support multiple from factors on an Android based hybrid application that will run on phones and tablet devices. The developer built skins that modify the color and size of the text in the application based on the device that it is running on. To switch between them, the developer needs to modify a file in the Worklight project.
What is the name of the file that the application developer needs to modify to set the skins to apply at runtime?
A. skinList.json
B. main.js
C. initOptions.js
D. skinLoader.js
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
An application developer is developing an Android based Hybrid application but the application is returning an error on the startup process.
What are two valid initialization failure statuses that the application developer can identify on the startup process?
FAILURE_NOT_ENOUGH_SPACE
A. FAILURE_COMMUNICATIONFAILURE_ENCRYPT
B. FAILURE_COMMUNICATIONFAILURE_INTERNAL
C. FAILURE_UNZIP
D. FAILURE_CHECKSUMFAILURE_EXTERNAL
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
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.
A. WLAdapterDelegate
B. MyInvokeListener
C. WLProcedureInvocationData
D. WLAdapterInvocationData
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
Nakayama -
短い時間でC5050-408試験に合格するには、C5050-408問題集を買わなければならないです。C5050-408問題集は素晴らしい商品です!