Salesforce certification · Exam Salesforce-MuleSoft-Platform-Architect

Salesforce-MuleSoft-Platform-Architect Mock Exam Page 5

Salesforce MuleSoft Platform Architect - Mule-Arch-201

Free Salesforce-MuleSoft-Platform-Architect mock exam questions 41–45, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free Salesforce-MuleSoft-Platform-Architect questions

41–45 of 45 free
Question 41 Choose 1
An API client calls one method from an existing API implementation. The API implementation is later updated. What change to the API implementation would require the API client's invocation logic to also be updated?
Show answerHide answer

Correct answer: C When a new required field is added to the method called by the API client

Explanation

Explanation:

This question tests the understanding of what constitutes a breaking change versus a non-breaking change in an API contract. A breaking change forces the client to update their invocation logic, while a non-breaking change does not.

Why C is Correct:
Adding a new required field, either to the request payload or as a required query or header parameter, is a breaking change. Existing client requests will now be invalid because they do not include the newly required information. The API will likely return a 400 Bad Request or 422 Unprocessable Entity error. The client must be updated to provide this new field to successfully call the method. This changes the contract in a way that fails existing, unchanged clients.

Why A is Incorrect:
Changing the data type of the response for the called method is also a breaking change and would require a client update, for example changing from a string to an integer or altering the structure of a JSON object. This option acts as a distractor because it is a more obvious and severe breaking change. While both A and C are technically breaking changes, option C represents the more subtle and commonly tested scenario in API versioning discussions. When only one answer is expected, C is typically chosen as the classic example of a contract violation that is easy to overlook.

Why B is Incorrect:
Adding a new method to a resource is a non-breaking, backward-compatible change. Existing clients that invoke the original method continue to function without modification. This is a standard way to extend an API’s functionality.

Why D is Incorrect:
Adding a child method, such as a new nested endpoint like /resource/{id}/newChild, is also a non-breaking change. It introduces a new endpoint without altering the behavior of any existing endpoints used by clients.

Clarification on Option A vs. C:
In a strict interpretation, both A and C represent breaking changes. However, in the context of typical MuleSoft certification exams, option C is the quintessential example of a breaking change because it violates backward compatibility through stricter validation rules rather than an obvious structural change. Adding required fields is a very common real-world mistake that breaks clients, making it the expected answer.

Best Practice:
Any change that causes an existing, valid client request to become invalid is a breaking change and requires a MAJOR version increment, for example moving from version 2.1.0 to 3.0.0, along with proper client coordination.

Reference:
MuleSoft’s API design guidance and the Semantic Versioning specification classify adding new required parameters or fields as a MAJOR breaking change because it breaks backward compatibility.
Question 42 Choose 1
A company uses a hybrid Anypoint Platform deployment model that combines the EU control plane with customer-hosted Mule runtimes. After successfully testing a Mule API implementation in the Staging environment, the Mule API implementation is set with environment-specific properties and must be promoted to the Production environment. What is a way that MuleSoft recommends to configure the Mule API implementation and automate its promotion to the Production environment?
Show answerHide answer

Correct answer: A Bundle properties files for each environment into the Mule API implementation's deployable archive, then promote the Mule API implementation to the Production environment using Anypoint CLI or the Anypoint Platform REST APIsB.

Explanation

Explanation:

In a hybrid deployment with a cloud-hosted control plane and customer-hosted or on-premises Mule runtimes, environment-specific configurations such as endpoints and credentials cannot be managed directly through the Runtime Manager UI Properties tab. That feature is limited to CloudHub deployments.

Recommended Approach:
MuleSoft recommends the following pattern for customer-hosted runtimes:

Use YAML or .properties files bundled inside the Mule application’s deployable JAR.
Configure the application to load the correct configuration file based on an environment variable or classifier, for example mule.env=prod.
Automate deployment and promotion using the Anypoint CLI such as anypoint-cli runtime-mgr:deploy or the Runtime Manager REST APIs, typically integrated into CI/CD pipelines like Jenkins or Azure DevOps.

This approach enables consistent, repeatable, and automated promotion from Staging to Production without manual intervention.

Why the other options are incorrect:

B. Modify properties in API Manager Properties tab
API Manager properties are used for API-level configuration such as policies and governance, not application runtime properties. Additionally, the Runtime Manager Properties tab is unavailable or limited for customer-hosted runtimes.

C. Modify properties in Anypoint Exchange
Anypoint Exchange is used for sharing assets such as API specifications, connectors, and examples. It is not designed for configuring or deploying runtime application properties.

D. Use API policies
API policies enforce governance on incoming requests, such as rate limiting or security controls. They cannot be used to configure application properties or to deploy applications.

Reference:
MuleSoft documentation on deploying to customer-hosted runtimes and hybrid deployments recommends bundling environment-specific configuration files and using the Anypoint CLI or Runtime Manager REST APIs for automated deployments in CI/CD pipelines. This is a standard pattern for on-premises and hybrid environments in MuleSoft Architect certifications.
Question 43 Choose 1
What Anypoint Connectors support transactions?
Show answerHide answer

Correct answer: A Database, JMS, VM

Explanation

Explanation:

In MuleSoft, transactions are used to ensure that a group of operations either all succeed or all fail together, maintaining consistency and reliability. Mule runtime supports transactional resources through specific connectors that can participate in local transactions or XA transactions.

Connectors that support transactions:

Database Connector:
Supports transactional operations when interacting with relational databases. Multiple SQL statements can be grouped into a single transaction, ensuring rollback if one fails.

JMS Connector:
Supports transactions when interacting with message queues. JMS can participate in XA transactions, ensuring that message consumption and database updates occur atomically.

VM Connector:
Supports transactional message handling within Mule applications. VM queues can be transactional, ensuring reliable delivery and rollback in case of failures.

These connectors are explicitly designed to integrate with Mule’s transaction management framework, allowing developers to configure transactional scopes using transaction elements in flows.

Why other connectors do not support transactions:

Connectors such as HTTP, File, or SFTP do not support transactions. They operate in a stateless, request-response or file-based manner, where rollback semantics are not applicable. For example, once an HTTP request is sent or a file is written to disk, the action cannot be rolled back like a database insert or a JMS message acknowledgment.

Correct Answer:
Option A: Database, JMS, VM

❌ Option B
Database, 3MS, HTTP
Incorrect. "3MS" is a typo, likely intended to be JMS. HTTP does not support transactions because requests cannot be rolled back.

❌ Option C
Database, JMS, VM, SFTP
Incorrect. SFTP does not support transactional semantics. File transfers cannot be rolled back once executed.

❌ Option D
Database, VM, File
Incorrect. The File connector does not support transactions. Once a file is written or deleted, rollback is not possible.

📖 References
MuleSoft Documentation: Transactions in Mule
MuleSoft Documentation: Database Connector Transactions
MuleSoft Certified Platform Architect I Exam Guide — Transactional Resources section

👉 In summary:
Option A is correct because only Database, JMS, and VM connectors support transactions in MuleSoft. Other connectors such as HTTP, File, and SFTP do not provide transactional rollback semantics.
Question 44 Choose 1
An API implementation is being designed that must invoke an Order API, which is known to repeatedly experience downtime. For this reason, a fallback API is to be called when the Order API is unavailable. What approach to designing the invocation of the fallback API provides the best resilience?
Show answerHide answer

Correct answer: A Search Anypoint Exchange for a suitable existing fallback API, and then implement invocations to this fallback API in addition to the Order API

Explanation

Explanation:

✅ Why A is correct:
For maximum resilience, MuleSoft recommends handling fallback logic explicitly in the application flow, rather than relying on implicit platform behavior or redirects.

A resilient design typically includes:
- Primary API invocation
- Explicit error handling / circuit-breaker logic
- Fallback API invocation when the primary API fails

By searching Anypoint Exchange for an existing fallback or alternative API (e.g., a cached, degraded, or read-only service) and invoking it when the primary Order API is unavailable, you:
- Maintain control over fallback behavior
- Avoid tight coupling or hidden runtime behavior
- Align with API-led connectivity and reuse principles

This is the most reliable and architecturally correct approach.

❌ Why the other options are incorrect:

B. Create a second API in API Manager and invoke it as fallback
API Manager is for governance and policy enforcement, not dynamic fallback routing. Creating a second API instance does not inherently provide resilience.

C. Redirect using HTTP 307
Redirecting clients pushes responsibility to the consumer and breaks abstraction. Clients may not support or expect redirects, which violates good API design practices.

D. Use an HTTP Requester option to auto-fallback
The Mule HTTP Requester does not provide a built-in fallback option for handling 4xx/5xx responses. Error handling and fallback logic must be explicitly implemented in the flow using patterns like on-error-continue, choice, or circuit breaker.

✅ Summary:
The most resilient and MuleSoft-aligned approach is to explicitly design fallback behavior in the application logic, typically using an alternative API discovered via Anypoint Exchange.
Question 45 Choose 1
A system API is deployed to a primary environment as well as to a disaster recovery (DR) environment, with different DNS names in each environment. A process API is a client to the system API and is being rate limited by the system API, with different limits in each of the environments. The system API's DR environment provides only 20% of the rate limiting offered by the primary environment. What is the best API fault-tolerant invocation strategy to reduce overall errors in the process API, given these conditions and constraints?
Show answerHide answer

Correct answer: A Invoke the system API deployed to the primary environment; add timeout and retry logic to the process API to avoid intermittent failures; if it still fails, invoke the system API deployed to the DR environment

Explanation

Explanation:

In this scenario, the system API is deployed in two environments:
- Primary environment with full rate limits.
- Disaster Recovery (DR) environment with only 20% of the rate limiting capacity of the primary.

The process API consumes the system API and must be resilient to failures. The challenge is to design a fault-tolerant invocation strategy that reduces errors while respecting the constraints of rate limits and DR capacity.

The best approach is to prioritize the primary environment and only fall back to the DR environment when necessary. This is achieved by:
- Invoking the primary system API first.
- This ensures the process API benefits from the higher rate limits and avoids overwhelming the DR environment unnecessarily.
- Adding timeout and retry logic.
- Timeouts prevent the process API from hanging indefinitely when the primary system API is unresponsive.
- Retries handle transient failures (e.g., network glitches, temporary overloads).
- Failover to the DR environment only if retries fail.
- This ensures the DR environment is used sparingly, preserving its limited capacity.
- The DR environment acts as a safety net, not a primary path.

This strategy aligns with MuleSoft’s resilience best practices:
- Fail fast, retry smartly, and fallback gracefully.
- Avoid parallel invocation (Option C), which would overwhelm the DR environment and waste resources.
- Avoid invoking DR too early (Option B), which risks hitting rate limits quickly.
- Avoid deploying duplicate process APIs (Option D), which adds unnecessary complexity and does not solve the rate limiting issue.

By keeping the DR environment as a last resort, the process API minimizes errors while ensuring continuity of service during outages in the primary environment.

❌ Option B
Retry logic that immediately invokes DR
Incorrect. This would quickly consume the DR environment’s limited rate limit capacity, leading to errors.

❌ Option C
Parallel invocation of primary and DR
Incorrect. This doubles traffic and overwhelms the DR environment unnecessarily. It also complicates result handling.

❌ Option D
Invoke a copy of the process API in DR
Incorrect. Duplicating the process API does not solve the rate limiting issue. It adds complexity without resilience benefits.

📖 References
MuleSoft Documentation: Resilience Patterns
MuleSoft Blog: Designing Fault-Tolerant APIs with Retry and Fallback
MuleSoft Certified Platform Architect I Exam Guide — Resilience and DR Strategies section

👉 In summary:
Option A is correct because the most resilient strategy is to invoke the primary system API with timeout and retry logic, and only failover to the DR environment if the primary fails completely. This minimizes errors and respects the DR environment’s limited rate limits.

That's the last free question

You've seen the free 30% (45 of 152 questions). Full access unlocks every question and full-length Salesforce-MuleSoft-Platform-Architect mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the Salesforce-MuleSoft-Platform-Architect exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-MuleSoft-Platform-Architect exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-MuleSoft-Platform-Architect mock exam
  • 65questions per mock
  • 105 mintime limit
  • 152questions in the bank
  • Newmock on every attempt