ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 17 - MCD - Level 2 discussion

Report
Export

An API has been developed and deployed to CloudHub Among the policies applied to this API is an allowlist of IP addresses. A developer wants to run a test in Anypoint Studio and does not want any policies applied because their workstation is not included in the allowlist.

What must the developer do in order to run this test locally without the policies applied?

A.
Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
Answers
A.
Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
B.
Pass in the runtime parameter ''-Danpow.platform.gatekeeper=disabled''
Answers
B.
Pass in the runtime parameter ''-Danpow.platform.gatekeeper=disabled''
C.
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
Answers
C.
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
D.
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
Answers
D.
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
Suggested answer: A

Explanation:

To run a test locally without the policies applied, the developer should create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager. This way, the developer can use different configuration properties for different environments and avoid triggering API autodiscovery when running tests locally. API autodiscovery is a mechanism that associates an API implementation with its corresponding API specification and policies in API Manager based on its API instance ID. By setting this ID to a value that does not exist in API Manager, the developer can prevent API autodiscovery from finding and applying any policies to the local test.

Reference: https://docs.mulesoft.com/api-manager/2.x/api-auto-discovery-new-concept#configuring-api-autodiscovery https://docs.mulesoft.com/mule-runtime/4.3/configuring-properties

asked 18/09/2024
Henrik Persson
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first