Sample Questions

Introduction to Micro Integrator

Select the appropriate Enterprise Integration Pattern (EIP) that can be used to implement the following scenario: Check an incoming message against a certain criterion. If the criterion is not met, the message is discarded. Otherwise, the message is routed to the output channel.

  • a) Message Filter
  • b) Dynamic Router
  • c) Content Filter
  • d) Splitter

Triggering Messages

Select the CORRECT statement about configuring and scheduling tasks in the Micro Integrator.

  • a) Micro integrator tasks do not support cron style task scheduling.
  • b) The count and interval attribute of the Task can be used to schedule a task to run a specified number of times at a given interval.
  • c) When the once attribute is set to true, you can run a task only once after the micro integrator starts.
  • d) Both statements a and b are correct.

Mediating Messages

Which statement about the Callout mediator and Call mediator is FALSE?

  • a) The Call mediator's default behavior is blocking mode.
  • b) Both mediators can be used to send messages from the micro integrator to an external endpoint.
  • c) The Callout mediator and the Call mediator can operate in blocking mode.
  • d) When used in blocking mode, the Call mediator is similar in behavior to the Callout mediator.

Data Integration

Which statement is true about the request_box feature in data services?

  • a) The client should support session management to send requests through request_box.
  • b) It allows to execute multiple service calls as a single request but the order of the services cannot be guaranteed.
  • c) It allows to execute multiple service calls as a single request and executes services in the order of the individual services calls.
  • d) The service call should be sent via a transport which supports session management.

Extension Points

Select the best extension point that can be used to implement this scenario in the Micro Integrator:

The message comes with the following XML payload, and you need to remove the first element ( <__name>wso2</__name> ) of the message from the payload.

<request>
<__name>wso2</__name>
<first_name>john</first_name>
<last_name>cena</last_name>
</request>"

  • a) Write a custom Class mediator
  • b) Write a custom task
  • c) Write a Synapse handler
  • d) Use the Script mediator

Observability

What is FALSE regarding the managementAPI?

  • a) ManagementAPI listens on the port 9164.
  • b) ManagementAPI can be disabled by passing the system property
    - DenableManagementApi=false at the startup.
  • c) The managementAPI is enabled by default.
  • d) MI monitoring dashboard requires an up and running managementAPI.

Monitoring and Troubleshooting

Identify the correct reason and solution for the following warning message from the Micro Integrator: => WARN - SourceHandler connection time out after request is read: http-incoming-1

  • a) Connection between the client and the Micro Integrator times out. Socket timeout of the HTTP listener has been exceeded. Solution: Increase the socket timeout of the passthrough HTTP transport. To do that, add the following line to the deployment.toml file:
    [transport.http]
    socket_timeout=120000
    http.socket.timeout=120000.

    Here socket timeout is set to 120000."

  • b) Connection between the Micro Integrator and the backend times out. Socket timeout of the HTTP sender has been exceeded. Solution: Increase the socket timeout of the passthrough HTTP transport. To do that, add the following line to the deployment.toml file:
    [transport.http]
    socket_timeout=120000
    http.socket.timeout=120000.

    Here socket timeout is set to 120000.

  • c)Connection between the client and the Micro Integrator times out. Socket timeout of the HTTP listener has been exceeded. Solution: Increase the socket timeout of the passthrough HTTP transport. To do that, add the following line to the nhttp.properties file:
    http.socket.timeout=120000.

    Here socket timeout is set to 120000.

  • d) Options a, b, and c are incorrect.

Application Deployment

What is true about deploying artifacts in a Kubernetes deployment?

  • a) It is mandatory to burn the Docker image along with the CApps.
  • b) You need to synchronize the deployment directory of the servers using depsync.
  • c) Artifacts are internally synchronized using the ETCD cluster in Kubernetes.
  • d) All of the above

Unit Testing

What is NOT true regarding mock services for the unit test framework?

  • a) Mocking endpoint name should match with the endpoint name.
  • b) Mock service can run on a predefined set of ports.
  • c) Multiple sub-resources can be included for a mock service.
  • d) Mock service can be used to validate the incoming request and headers.