Applying DevOps practices and operating integration solutions14% of the exam

Automating Anypoint with CLI, APIs and connected apps

Automate Anypoint Platform with Anypoint CLI 4.x and the platform APIs: how the CLI is installed, reaches the platform through proxies and other control planes, resolves credentials and defaults, deploys and promotes per deployment option, and how connected apps and their grant types authorize unattended automation.

Official exam objective
Identify the features and characteristics for automating interactions with Anypoint Platform.

~7 min read · 11 practice questions

What the exam expects

  • Recognize Anypoint CLI 4.x prerequisites, run modes and defaults, including which host, organization and environment a command acts on.
  • Configure the CLI for proxies, other control planes and credentials, and predict which credential source wins.
  • Choose the CLI command family that matches the deployment option (CloudHub 1.0, CloudHub 2.0, customer-hosted servers) and the flags that carry configuration during copy and promotion.
  • Choose between the CLI and direct Anypoint Platform API calls, and pick a connected app grant for unattended automation.

Anypoint CLI 4.x: the anypoint-cli-v4 command-line tool that scripts a subset of platform actions. Connected app: an OAuth 2.0 and OpenID Connect client that lets an application call Anypoint Platform APIs. Grant type: the OAuth flow a connected app uses to get an access token. Application allowlist: an organization setting that controls which apps can access the organization's user data (CLI 4.x Overview, Connected Apps for Developers, Creating Connected Apps).

Sources for this section (3)

Key facts

CLI install
Detail
Built with Node.js; install npm, then the CLI with npm.
Run mode
Detail
4.0 and later run in batch mode only.
Default environment
Detail
Production, when none is specified.
Default host
Detail
anypoint.mulesoft.com; override with --host or ANYPOINT_HOST.
Credential order
Detail
Flags, then environment variables, then the config file.
Proxy trust
Detail
ANYPOINT_CERTIFICATE sets certificates the proxy requires.
CloudHub 2.0 deploy
Detail
runtime-mgr:application:deploy uses an Exchange application.
Hidden properties on copy
Detail
Pass them with --property in the copy command.
API promotion
Detail
Alerts, policies, tiers copied only with their --copy* flags.
Hybrid targets
Detail
Servers must be manually registered first.
JWT bearer
Detail
Gets tokens without transmitting the client secret.
Sources for this section (8)
  • When a CloudHub 1.0 CLI deploy prints the status UNDEPLOYED, what does that mean?
  • What range of values does the CloudHub 1.0 deploy --timeout flag accept?
  • Why can a CloudHub 2.0 CLI deploy fail even though the Mule version exists?
  • When --replicaSize is omitted from a CloudHub 2.0 CLI deploy, what size is used?

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

Keep reading with the MuleSoft Platform Integration Architect pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 40 lessons of the MuleSoft Platform Integration Architect guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (11 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 Platform Integration Architect exam