WSO2 enterprise-integrator-6-developer practice test

Question & AnswersWSO2 Certified Enterprise Integrator 6 DeveloperExam


Question 1

How can users write their own connector for the ESB Profile of the WS02 EI?
A. Create a connector project and include proxy services to invoke the API provider's endpoints.
B. Create a connector project and write Synapse configurations that call the API provider's endpoints.
C. Create a connector project and use the API provider's SDK.
D. Both option a and b can be used.

Answer:

C
Thank you for your visit.
To try more exams, please visit below link

Discussions

Question 2

Select the CORRECT statement about setting parameters for class mediators.

  • A. Both statement b and c are correct.
  • C. Custom mediator's parameters should be declared as public fields in mediator code. For instance: public String foo, bar;
  • D. Synapse properties can be used to pass values to mediator arguments. For instance: <class name=\"org.wso2.custom.HelloClassMediator\"> <property name=\Mfoo\M value=\"10\"/> <property name=\Mbar\n value=\"5\"/> </class>
Answer:

D

Discussions

Question 3

What is the best option to run custom Java code in a periodical manner within WS02 ESB?

  • A. Write a custom task with the Java logic and configure it to run periodically.
  • B. Option b and c are correct.
  • D. Write a Class mediator with the Java logic, create a proxy service that uses that mediator, and send messages using an external client periodically.
Answer:

B

Discussions

Question 4

In which folder should you put custom mediator in the EI distribution?

  • A. If your Class mediator is a regular non-OSGI JAR file, copy it into the <EI_HOME>/repository/classmediators directory.
  • B. Both a and c are correct.
  • C. If you develop your mediator as a OSGI bundle, copy jar file into <EI_HOME>/dropins directory.
  • D. If your mediator is a regular non-OSGI JAR file, copy it into the <EI_HOME>\lib directory.
Answer:

D

Discussions

Question 5

Select the INCORRECT statement regarding ESB connectors.

  • A. Integration is much faster than using sequences and proxy services.
  • B. Connectors cannot be directly added and removed to the runtime, so after deploying them you have to restart the servers.
  • C. No extensive knowledge of the source system is required to use ESB connectors.
  • D. 150+ connectors are available, and WS02 is continuously adding more to the connector collection.
Answer:

D

Discussions

Question 6

Which statement is FALSE about ESB connectors?

  • A. Every connector is self-contained and independent of ESB code.
  • B. A connector is a ready-made convenient tool to reach publicly available web APIs.
  • C. Hardcoding usernames and passwords in the connector configuration is required to connect to externa public APIs that require authentication.
  • D. Connectors provide dynamic tooling support with EI tooling.
Answer:

C

Discussions

Question 7

Identify the most suitable extension point to be used to implement the following scenario: At a
specific time of the day, you need to read a text file at a specified location and place orders for stocks
that are given in the text file.

  • A. File Connector
  • B. Tasks
  • C. Custom mediator
  • D. Script mediator
Answer:

D

Discussions

Question 8

Which statement is INCORRECT with respect to implementing a custom mediator and best practices
to achieve thread safety?

  • A. Use of class variables is not recommended.
  • B. You can define and use a global variable in the mediator class if and only if those variables are shared with all the messages in that particular message flow.
  • C. When we use the mediator in different artifacts, an instance of the mediator gets created for each occurrence in the configuration.
  • D. A mediator instance gets created for each occurrence in the configuration and for each message.
Answer:

C

Discussions

Question 9

What is the most appropriate scenario for using a class mediator over a Script mediator?

  • A. For debugging purposes, you want to introduce some latency in the message flow.
  • B. You want to change just a single element in the XML payload without changing other elements.
  • C. For testing purposes, you want to record the elapsed time between calling a backend service and receiving the response by the proxy service.
  • D. You want to develop a logging mediator that sends logging data to an external database such as MySQL.
Answer:

C

Discussions

Question 10

Select the CORRECT statement about deploying custom mediator artifacts.

  • A. If it is a class mediator, you can put that JAR file in the <EI_HOME>/lib directory.
  • B. If you have developed your custom mediator as a regular non-OSGI JAR, you have to put it in the <EI_HOME>/extensions directory.
  • C. All of the above.
  • D. If you have developed your custom mediator as an OSGI bundle, you have to put it in the <EI_HOME>/dropins directory.
Answer:

D

Discussions
To page 2