EX221 Sample Questions

EX221 Sample Questions & Answers

Free Red Hat Certified Specialist In Cloud-Native Integration practice questions with worked answers and explanations. See how the ExamJungle simulator prepares you — then jump into the full test.

Launch the full EX221 simulator →

Showing 6 of 12 free samples.

  1. Question 1IntermediateSelect 2

    Camel Integration · CDI Injection

    Select TWO valid methods to inject a Camel ProducerTemplate into a Quarkus bean to send messages to a route endpoint.

    Show answer & explanation

    Correct answers: D, E

    In Quarkus with Camel extensions, the ProducerTemplate is available as a CDI bean and can be injected using the standard @Inject annotation.

    The @EndpointInject annotation allows injecting a ProducerTemplate that is pre-configured to send to a specific URI defined in the annotation value.

  2. Question 2Beginner

    Testing · Camel Testing

    You are creating a JUnit 5 test for a Camel route in a Quarkus application. You want to verify that a specific endpoint receives exactly 5 messages. Which method on the MockEndpoint class should you call?

    Show answer & explanation

    Correct answer: D

    The expectedMessageCount(int count) method is the standard Camel Mock endpoint assertion to verify the exact number of messages received by that endpoint during the test execution.

  3. Question 3Intermediate

    Camel Integration Patterns · Wire Tap

    A financial institution uses a Quarkus-based microservice to process payments. The service must ensure that the validateAccount route is completely executed before the debitAccount route begins, but they are decoupled via a messaging system. However, for auditing, you need to send a copy of the incoming message to an audit queue without altering the main processing flow. Which Camel pattern is most appropriate for the audit requirement?

    Show answer & explanation

    Correct answer: D

    The Wire Tap pattern allows you to route messages to a separate destination (like an audit queue) while the original message continues to flow through the main route unchanged. This fits the requirement perfectly.

  4. Question 4Beginner

    Cloud-Native Deployment · OpenShift Extension

    True or False: In a Quarkus application using the quarkus-openshift extension, you must manually create the DeploymentConfig YAML file before running the build to deploy to OpenShift.

    Show answer & explanation

    Correct answer: B

    False. The quarkus-openshift extension automatically generates the necessary OpenShift resources (Deployment, Service, Route, etc.) during the build process if they are not provided, simplifying the deployment workflow.

  5. Question 5Beginner

    Quarkus Development · REST API

    Which annotation is used to expose a Java class as a REST endpoint in a Quarkus application using JAX-RS?

    Show answer & explanation

    Correct answer: D

    The @Path annotation (from javax.ws.rs or jakarta.ws.rs) is used to define the URI path template that the resource class or method will serve.

  6. Question 6Advanced

    Camel Integration Patterns · Splitter Pattern

    You are defining a Camel route that processes a large XML file containing a list of Customer records. You want to split the file into individual customer records and process them in parallel to improve performance. Which DSL configuration achieves this?

    Show answer & explanation

    Correct answer: A

    The .split() EIP is used to break down the message. The XPath expression selects individual customer nodes. The .parallelProcessing() method enables the split messages to be processed concurrently by a thread pool, satisfying the performance requirement.

Ready for the real thing?

The full EX221 simulator has every exam-style question, timed mode, and instant scoring.

Go to the EX221 simulator →