Expose production-ready Anypoint Platform-managed APIs from Mule applications13% of the exam

Server caching with API policies

Configure gateway response reuse without confusing request identity, storage eligibility, persistence and expiration. Predict policy-chain behavior on cache hits and handle CloudHub-specific configuration changes.

Official exam objective
Implement server-side caching of API invocations using API policies.

~7 min read · 7 practice questions ·

What the exam expects

  • Place gateway caching correctly relative to policies required on every request.
  • Choose a cache key and separate request eligibility from response eligibility.
  • Interpret caching directives without confusing lookup, storage and invalidation.
  • Select distribution and persistence for the stated deployment option.
  • Change expiration configuration using the documented CloudHub procedure.

Cache key identifies a reusable response; cache hit finds that response; cache miss requires backend processing; TTL bounds entry lifetime; distributed cache shares entries across nodes; persistent cache preserves entries across runtime restarts (HTTP caching).

Sources for this section (1)

Key facts

Policy placement
Detail
Controls needed on hits belong before HTTP Caching.
Default identity
Detail
The key expression uses attributes.requestPath.
Request versus response
Detail
Method eligibility does not determine which response statuses are stored.
Negative results
Detail
The default response status list includes 404.
Request no-store
Detail
Blocks new storage without necessarily bypassing an existing entry.
Response private
Detail
Prevents the returned response from being stored.
CloudHub sharing
Detail
Distributed uses Object Store v2 and is persistent.
Invalidation commands
Detail
The configured header accepts invalidate or invalidate-all.
CloudHub TTL update
Detail
Replace the caching policy when editing TTL is not reflected with Object Store v2.
Sources for this section (1)
  • Why should a rollout plan allow for cache repopulation after upgrading an instance that uses persistent caching?
  • When a response has no Date header, what origin time does the policy add?
  • What happens when evaluating a request's cache key fails?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the MuleSoft Developer II pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 29 lessons of the MuleSoft Developer II guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (7 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the MuleSoft Developer II exam