Red Hat Certified Specialist In Cloud-Native Integration Free Sample Questions

12 free sample questions160 in the full practice test

Try simulator

EX221 Sample Questions

  1. Question 1

    Intermediate

    Camel Integration Patterns · Routing Patterns

    You are developing a cloud-native integration application using Red Hat Fuse on OpenShift. You need to implement a Content-Based Router pattern to direct incoming orders to different processing endpoints based on the 'orderType' header. Which Camel Java DSL syntax correctly implements this pattern?

    Answer and explanation

    Correct answer: B

    The .choice() method initiates the Content-Based Router pattern in Camel Java DSL. It is followed by one or more .when() clauses that evaluate predicates (like checking a header value), and optionally an .otherwise() clause for default routing. This structure accurately routes messages based on content.

  2. Question 2

    Intermediate

    Quarkus Configuration · Reactive Messaging

    A developer is configuring a Quarkus application to act as a consumer for a Kafka topic named 'transaction-events'. The application uses the SmallRye Reactive Messaging extension. Which configuration property in 'application.properties' correctly maps the 'transactions-in' channel to the 'transaction-events' Kafka topic?

    Answer and explanation

    Correct answer: A

    In SmallRye Reactive Messaging (MicroProfile Messaging), incoming channels are configured using the prefix mp.messaging.incoming.[channel-name]. The .topic property specifies the actual Kafka topic name to bind to that channel.

  3. Question 3

    Intermediate

    Fault Tolerance · MicroProfile Fault Tolerance

    You are implementing a fault tolerance strategy for a REST client in a Quarkus application. You want to ensure that if the external service fails, the application retries the request up to 3 times with a 200ms delay between attempts. Which annotation usage is correct?

    Answer and explanation

    Correct answer: A

    The @Retry annotation from MicroProfile Fault Tolerance is used to configure retry logic. maxRetries sets the maximum number of retries, and delay sets the wait time between retries in milliseconds.

  4. Question 4

    IntermediateMultiple answers

    Camel Integration · CDI Injection

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

    Answer and 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.

  5. Question 5

    Beginner

    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?

    Answer and 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.

  6. Question 6

    Intermediate

    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?

    Answer and 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.

Register free for 6 more questions

Or unlock all 160 EX221 questions with explanations, timed mode and flashcards.