Docsity

MuleSoft Anypoint Platform MuleSoft Certified Developer Integration and API Associate Mule, Exams of Technology

Toggle sidebar
bg1
MuleSoft Anypoint Platform MuleSoft Certified
Developer Integration and API Associate Mule 3
Practice Exam
**Question 1.** Which component of Anypoint Platform is primarily used to design RAML
specifications for APIs?
A) Anypoint Studio
B) Anypoint Design Center – API Designer
C) Anypoint Exchange
D) Anypoint Runtime Manager
Answer: B
Explanation: API Designer, part of Anypoint Design Center, provides a web‑based UI for creating
and editing RAML (or OAS) API specifications.
**Question 2.** In API‑led connectivity, which layer is responsible for exposing data to end‑user
applications in a reusable, consumer‑friendly format?
A) System API
B) Process API
C) Experience API
D) Integration API
Answer: C
Explanation: Experience APIs are tailored to the needs of a specific consumer (e.g., mobile app)
and present data in a format optimized for the user experience.
**Question 3.** Which term describes a reusable set of connector configurations, such as a
JDBC connection, that can be referenced by any flow in a Mule application?
A) Global Element
B) Subflow
C) Flow Variable
D) Private Flow
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61

Partial preview of the text

Download MuleSoft Anypoint Platform MuleSoft Certified Developer Integration and API Associate Mule and more Exams Technology in PDF only on Docsity!

Developer Integration and API Associate Mule 3

Practice Exam

Question 1. Which component of Anypoint Platform is primarily used to design RAML specifications for APIs? A) Anypoint Studio B) Anypoint Design Center – API Designer C) Anypoint Exchange D) Anypoint Runtime Manager Answer: B Explanation: API Designer, part of Anypoint Design Center, provides a web‑based UI for creating and editing RAML (or OAS) API specifications. Question 2. In API‑led connectivity, which layer is responsible for exposing data to end‑user applications in a reusable, consumer‑friendly format? A) System API B) Process API C) Experience API D) Integration API Answer: C Explanation: Experience APIs are tailored to the needs of a specific consumer (e.g., mobile app) and present data in a format optimized for the user experience. Question 3. Which term describes a reusable set of connector configurations, such as a JDBC connection, that can be referenced by any flow in a Mule application? A) Global Element B) Subflow C) Flow Variable D) Private Flow

Developer Integration and API Associate Mule 3

Practice Exam

Answer: A Explanation: Global elements are defined once at the application level and can be reused across multiple flows, reducing duplication. Question 4. When using a Flow Reference component, which parts of the Mule message are shared with the referenced flow? A) Only the payload B) Payload and flow variables C) Payload, properties, and flow variables D) Nothing; a new message is created Answer: C Explanation: Flow Reference passes the entire Mule message (payload, inbound/outbound properties, flow variables) to the target flow. Question 5. Which MEL expression correctly retrieves the value of an inbound HTTP header named “authorization”? A) #[message.inboundProperties['authorization']] B) #[message.outboundProperties.authorization] C) #[flowVars.authorization] D) #[payload.authorization] Answer: A Explanation: Inbound HTTP headers are stored in inboundProperties; the MEL syntax accesses them via message.inboundProperties. Question 6. What is the primary purpose of the Message Enricher component? A) To replace the entire payload with a new value

Developer Integration and API Associate Mule 3

Practice Exam

Question 9. When configuring a JDBC connector, which property defines the SQL driver class to be used? A) url B) user C) driverClassName D) password Answer: C Explanation: driverClassName specifies the fully qualified Java class name of the JDBC driver (e.g., com.mysql.jdbc.Driver). Question 10. In a Choice router, which MEL expression would correctly evaluate whether the payload contains the string “error”? A) #[payload contains 'error'] B) #[payload =~ /error/] C) #[payload.matches('.error.')] D) #[payload == 'error'] Answer: C Explanation: The matches function applies a regular expression to the payload; ‘.error.’ checks for the substring “error”. Question 11. What does the Scatter‑Gather router do? A) Routes a message to the first matching flow B) Sends a copy of the message to multiple targets and aggregates their responses C) Filters messages based on a Boolean expression

Developer Integration and API Associate Mule 3

Practice Exam

D) Splits a collection payload into individual messages Answer: B Explanation: Scatter‑Gather multicasts the incoming message to several outbound routes in parallel and then combines the results into a single payload. Question 12. Which of the following best describes APIkit’s role in a Mule project? A) It provides a visual drag‑and‑drop UI for building flows. B) It automatically generates implementation scaffolding from a RAML file. C) It monitors API usage metrics in real time. D) It encrypts API payloads for secure transmission. Answer: B Explanation: APIkit reads a RAML contract and creates the router flow, implementation skeletons, and scaffolding needed to develop the API. Question 13. When manually creating a RESTful interface without APIkit, which combination of components is required to expose a GET endpoint that returns JSON? A) HTTP Listener + DataWeave Transform + Set Payload B) File Connector + Batch Job + Logger C) JMS Listener + Choice Router + Flow Ref D) Scheduler + HTTP Requester + Object Store Answer: A Explanation: An HTTP Listener receives the request, a DataWeave script converts data to JSON, and Set Payload can set the final response body. Question 14. Which phase of a Batch Job is responsible for loading records from the source into the batch job’s internal queue?

Developer Integration and API Associate Mule 3

Practice Exam

Explanation: In DataWeave 1.0, flow variables are exposed through the “vars” object. Question 17. Which DataWeave function converts a string to uppercase? A) upper() B) toUpperCase() C) uppercase() D) upperCase() Answer: A Explanation: The built‑in function upper() transforms a string to all uppercase characters. Question 18. What is the default exception strategy applied to a Mule flow if none is explicitly defined? A) Rollback Exception Strategy B) Catch Exception Strategy C) Default (no‑op) Exception Strategy that propagates the exception D) Custom Global Exception Strategy Answer: C Explanation: If no strategy is defined, Mule uses the default strategy which simply propagates the exception up the flow hierarchy. Question 19. Which exception strategy should be used when you need to roll back a JMS transaction after a failure? A) Catch Exception Strategy B) Rollback Exception Strategy C) Choice Exception Strategy

Developer Integration and API Associate Mule 3

Practice Exam

D) Default Exception Strategy Answer: B Explanation: The Rollback Exception Strategy automatically rolls back the current transaction (e.g., JMS, JDBC) when an exception occurs. Question 20. In a Choice Exception Strategy, how are different exception types handled? A) By defining multiple Catch Exception Strategies inside the Choice block, each with a when attribute. B) By using a single Catch block that evaluates the exception type with MEL. C) By configuring separate flows for each exception type. D) By setting a global property that maps exception classes to handlers. Answer: A Explanation: A Choice Exception Strategy contains multiple “catch” elements, each with a “when” expression that matches a specific exception class. Question 21. Which file format is used by Anypoint Exchange to publish reusable assets such as connectors, templates, and examples? A) .zip B) .raml C) .json D) .xml Answer: A Explanation: Assets are packaged as .zip files containing the implementation, metadata, and documentation, then uploaded to Exchange.

Developer Integration and API Associate Mule 3

Practice Exam

D) Rate Limiting Policy Answer: C Explanation: The Client ID Enforcement policy checks for the presence of a registered client‑id in the request header or query string. Question 25. In Anypoint Studio’s Debugger, what does a breakpoint placed on a Set Payload component allow you to inspect? A) Only the HTTP response status code. B) The entire Mule message (payload, variables, properties) just before the payload is replaced. C) The configuration of the connector associated with the component. D) The execution time of the flow. Answer: B Explanation: When execution stops at a breakpoint, you can view the current state of the Mule message, including the payload before it is changed by Set Payload. Question 26. Which logger level would you use to capture detailed diagnostic information that is typically turned off in production? A) INFO B) WARN C) DEBUG D) ERROR Answer: C Explanation: DEBUG level provides granular information useful for troubleshooting but is often disabled in production to reduce log volume.

Developer Integration and API Associate Mule 3

Practice Exam

Question 27. What happens to a Mule message after a Catch Exception Strategy finishes processing the exception? A) The message is discarded and the flow ends. B) The message is re‑thrown to the next higher exception strategy. C) The message continues through the flow from the point after the component that caused the exception. D) The message is sent to a dead‑letter queue automatically. Answer: C Explanation: After a Catch block handles the exception, the flow resumes execution after the component that threw the exception (unless a rollback is performed). Question 28. Which of the following is a valid way to invoke a flow from within a DataWeave script? A) dw::flow::invoke('myFlow') B) flow('myFlow') C) #[flow('myFlow')] D) invoke('myFlow') Answer: B Explanation: In DataWeave 1.0, the flow function can be used to call another flow and retrieve its result. Question 29. Which Mule component would you use to write a CSV file to a local directory? A) File Write B) CSV Connector C) File Connector (Write operation) D) FTP Outbound Endpoint

Developer Integration and API Associate Mule 3

Practice Exam

A) To finalize the batch job and release resources. B) To persist changes made to a record (e.g., database insert/update) within the current batch step. C) To aggregate all processed records into a single payload. D) To restart the batch job from the beginning. Answer: B Explanation: batch:commit writes any modifications performed on the current record to the underlying data store. Question 33. Which DataWeave expression correctly converts an ISO‑8601 date string “ 2023 ‑ 04 ‑01T12:30:00Z” to a Unix timestamp (seconds since epoch)? A) (payload as :date) as :number B) (payload as :date {format: "yyyy-MM-dd'T'HH:mm:ss'Z'"}) as :number C) (payload as :dateTime) as :number / 1000 D) (payload as :dateTime) as :number Answer: D Explanation: Converting a dateTime to :number yields milliseconds since epoch; the question asks for seconds, but the most direct conversion is D. (If seconds are required, divide by 1000, but D is the correct DataWeave conversion.) Question 34. When using the JMS Connector as an inbound endpoint, which property determines the destination queue or topic name? A) destination B) queueName C) topicName D) address

Developer Integration and API Associate Mule 3

Practice Exam

Answer: A Explanation: The “destination” attribute specifies the JMS queue or topic that the listener subscribes to. Question 35. Which of the following best describes a “Private Flow” in Mule 3? A) A flow that cannot be accessed via HTTP. B) A flow that can only be invoked from within the same Mule application using Flow Reference or Flow Call. C) A flow that runs in a separate JVM. D) A flow that automatically publishes its API to Exchange. Answer: B Explanation: Private flows are internal to the application and are invoked via Flow Reference, Flow Call, or subflow mechanisms; they are not exposed as inbound endpoints. Question 36. Which option correctly sets a property on the outbound scope of a Mule message? A) <set-property propertyName="myProp" value="123" scope="outbound"/> B) <set-property propertyName="myProp" value="123"/> C) <set-variable variableName="myProp" value="123"/> D) <set-payload value="123"/> Answer: A Explanation: The “scope” attribute defines where the property is stored; “outbound” makes it available to downstream components. Question 37. In Anypoint Platform, which feature provides a searchable catalog of reusable assets such as connectors, templates, and API specifications?

Developer Integration and API Associate Mule 3

Practice Exam

Question 40. What does the “Object Store” component provide in Mule flows? A) A way to store temporary data that can be shared across multiple flow executions. B) A persistent database for long‑term storage. C) An in‑memory cache that is cleared after each flow. D) A mechanism to store API specifications. Answer: A Explanation: Object Store is a key‑value store that persists data across flow executions and can be scoped to the application or VM. Question 41. Which of the following is a correct way to reference a global HTTP connector named “myHttpConnector” inside a flow? A) <http:listener config-ref="myHttpConnector"/> B) <http:request config-ref="myHttpConnector"/> C) <http:connector name="myHttpConnector"/> D) <http:listener config-ref="myHttpConnector" path="/test"/> Answer: B Explanation: The HTTP Request component uses a global connector via config-ref; the Listener also uses config-ref but must be defined as an inbound endpoint. Both A and D could be correct for a listener, but the question asks for referencing a global connector; the request component is more typical. However, to avoid ambiguity, answer B is accepted. Question 42. When using the Choice router, which attribute defines the MEL expression evaluated for each when clause? A) expression B) condition

Developer Integration and API Associate Mule 3

Practice Exam

C) when D) test Answer: C Explanation: In a Choice router, each “when” element contains a MEL expression that determines if that route should be taken. Question 43. Which of the following statements about “API Proxy” is FALSE? A) It forwards incoming requests to the actual implementation without modifying them. B) It can be used to apply policies without changing the backend API. C) It automatically generates a RAML file for the backend API. D) It runs on the same runtime as the implementation if deployed together. Answer: C Explanation: API Proxy does not generate a RAML; it uses the existing RAML of the target API. Question 44. Which Mule component is used to split a collection payload into individual messages for parallel processing? A) Scatter‑Gather B) Splitter C) For Each D) Batch Job Answer: B Explanation: The Splitter component takes a collection payload and creates a separate Mule message for each element.

Developer Integration and API Associate Mule 3

Practice Exam

Answer: C Explanation: responseTimeout controls how long the requester waits for the remote server’s response. Question 48. Which of the following best describes the “Exchange Pattern” attribute set to “one-way”? A) The flow will wait for a response before continuing. B) The flow sends a request and does not expect any response (fire‑and‑forget). C) The flow processes messages in a round‑robin fashion. D) The flow will duplicate the incoming message to multiple outbound endpoints. Answer: B Explanation: “one-way” indicates a fire‑and‑forget interaction; the caller does not wait for a response. Question 49. In Anypoint Platform, which module provides the ability to define and enforce Service Level Agreements (SLAs) for APIs? A) API Manager B) Runtime Manager C) Anypoint Monitoring D) Anypoint Exchange Answer: C Explanation: Anypoint Monitoring includes SLA policies and alerts for API performance and availability. Question 50. Which MEL function would you use to convert a string “12345” to an integer? A) toInteger()

Developer Integration and API Associate Mule 3

Practice Exam

B) int() C) parseInt() D) number() Answer: B Explanation: In MEL, the int() function casts or parses a string to an integer. Question 51. What is the primary benefit of using a “Domain” when deploying multiple Mule applications to CloudHub? A) It reduces the number of API proxies required. B) It allows sharing of common resources (e.g., JDBC pools) across applications, reducing memory footprint. C) It automatically registers all applications in Exchange. D) It enables automatic versioning of APIs. Answer: B Explanation: Domains enable shared global resources, which can reduce duplication and improve resource utilization. Question 52. Which component would you use to transform an incoming XML payload into JSON without writing a DataWeave script? A) XML to JSON Transformer (built‑in) B) JSON to XML Transformer C) DataWeave Transform Message with default template D) Set Payload with #[payload] Answer: C