MuleSoft Certified Integration Architect – Level 1 — Question 77
A Mule application is being designed for deployment to a single CloudHub worker. The Mule application will have a flow that connects to a SaaS system to perform some operations each time the flow is invoked.
The SaaS system connector has operations that can be configured to request a short-lived token (fifteen minutes) that can be reused for subsequent connections within the fifteen minute time window. After the token expires, a new token must be requested and stored.
What is the most performant and idiomatic (used for its intended purpose) Anypoint Platform component or service to use to support persisting and reusing tokens in the Mule application to help speed up reconnecting the Mule application to the SaaS application?
Answer options
- A. Nonpersistent object store
- B. Persistent object store
- C. Variable
- D. Database
Correct answer: A
Explanation
The Nonpersistent object store is the best choice for storing short-lived tokens since it is designed for transient data and does not incur the overhead of persistence. In contrast, a Persistent object store is meant for long-term storage, which is unnecessary for a short-lived token. Variables are limited in scope and not suitable for token persistence across multiple flow invocations, and a Database introduces unnecessary complexity and latency for such a temporary requirement.