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.
- Question 1IntermediateSelect 2
Camel Integration · CDI Injection
Select TWO valid methods to inject a Camel
ProducerTemplateinto a Quarkus bean to send messages to a route endpoint.Show answer & explanation
Correct answers: D, E
In Quarkus with Camel extensions, the
ProducerTemplateis available as a CDI bean and can be injected using the standard@Injectannotation.The
@EndpointInjectannotation allows injecting aProducerTemplatethat is pre-configured to send to a specific URI defined in the annotation value. - 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
MockEndpointclass 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. - Question 3Intermediate
Camel Integration Patterns · Wire Tap
A financial institution uses a Quarkus-based microservice to process payments. The service must ensure that the
validateAccountroute is completely executed before thedebitAccountroute 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.
- Question 4Beginner
Cloud-Native Deployment · OpenShift Extension
True or False: In a Quarkus application using the
quarkus-openshiftextension, you must manually create theDeploymentConfigYAML file before running the build to deploy to OpenShift.Show answer & explanation
Correct answer: B
False. The
quarkus-openshiftextension automatically generates the necessary OpenShift resources (Deployment, Service, Route, etc.) during the build process if they are not provided, simplifying the deployment workflow. - 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
@Pathannotation (fromjavax.ws.rsorjakarta.ws.rs) is used to define the URI path template that the resource class or method will serve. - Question 6Advanced
Camel Integration Patterns · Splitter Pattern
You are defining a Camel route that processes a large XML file containing a list of
Customerrecords. 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.