Moduloas 1,2, 3, 4, 5 Flashcards
What statement is part of MuleSoft’s description of an application network?
A. Creates reusable APIs and assets designed to be consumed by other business units
B.Creates and manages high availability and fault tolerant services and infrastructure
C.Leverages Central IT to deliver complete point-to-point solutions with master data management
D.Creates and manages a collection of JMS messaging services and infrastructure
A
According to MuleSoft, what is the Center for Enablement’s role in the new IT operating model?
A. Creates and manages discoverable assets to be consumed by line of business developers
B. Centrally manages partners and consultants to implement line of business projects
C. Implements line of business projects to enforce common security requirements
D. Produces and manages API policies for line of business deployments
A
What is a core characteristic of the Modern API?
A. API is designed first using an API specification for rapid feedback
B. API is rapidly prototyped following AGILE methodology
C. API follows the RESTful architecture
D. API has a mechanism to accept feedback and suggestions for improvement
Refer to the exhibit. The API specification supports searching for articles on the searchworld.org site.
What is the most idiomatic (used for its intended purpose) URL and method to retrieve articles about “einstein” in XML format?
hat HTTP method in a RESTful web service is typically used to completely replace an existing resource?
PATCH
PUT
POST
GET
PUT
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
Experience
Data
System
Process
Security
System
What is the MuleSoft-hosted runtime environment called?
A. MuleSoft Private Cloud
B. CloudHub
C. Anypoint Central
D. MuleSoft CloudHost
B
What is NOT one of the benefits of a layered API-led architecture?
Delivery speed
Customized problem-solving
Security
Native self-service
Customized problem-solving
What MuleSoft product enables publishing, sharing, and searching of APIs?
API Designer
Runtime Manager
Anypoint Exchange
API Notebook
Anypoint Exchange
What asset can NOT be created using Design Center?
API Specifications
Correctly unselected
Mule Applications
Correctly unselected
API Fragments
Incorrectly selected
API Portals
An API has been created in Design Center. What is the next step to make the API
discoverable?
Deploy the API to a Maven repository
Enable autodiscovery in API Manager
Publish the API from inside Flow Designer
Publish the API to Anypoint Exchange
Publish the API to Anypoint Exchange
A RAML example fragment named BankAccountsExample.raml is placed in the examples folder in an API specification project.
What is the correct syntax to reference the fragment?
examples: !include BankAccountsExample.raml
examples: #import BankAccountsExample.raml
examples: !include examples/BankAccountsExample.raml
examples: #import examples/BankAccountsExample.raml
examples: !include examples/BankAccountsExample.raml
%RAML 1.0
Refer to the exhibit. There is an error in the flight_id resource’s GET method. What needs to be done to fix the problem?
version: v1
title: American Flights API
/flights:
get:
/{flight_id
A. Remove blank line on row 9
B. Enclose flight_id in parentheses () instead of curly braces {}
C. Indent the get method under the {flight_id} resource
D. Outdent the {flight_id} resource
E. Remove the curly braces {} around flight_id
C. Indent the get method under the {flight_id} resource
What type of response code does an API typically return to indicate that a resource was successfully created?
a) 200
b) 400
c) 201
d) 404
Answer: c) 201 Created
What type of response code does an API typically return to indicate Bad Request?
a) 200
b) 400
c) 201
d) 404
b) 400 Bad Request
What type of response code does an API typically return to indicate the Not Found?
d) 404 Not Found
What is RAML and what role does it play in Mulesoft API development?
a) A programming language used for backend development
b) A protocol for securing APIs
c) A language for defining API specifications
d) A tool for deploying APIs
c) A language for defining API specifications
When deploying an API to CloudHub, what artifact is typically created?
a) A Mule project
b) A Docker container
c) An API specification
d) A JAR file
d) A JAR file
Which of the following HTTP methods is typically used to retrieve data from a specified resource?
a) POST
b) PUT
c) GET
d) DELETE
c) GET
In a RESTful API, what does the GET method typically do?
A) Create a new resource
B) Update an existing resource
C) Retrieve information about a resource
D) Remove a resource
C) Retrieve information about a resource
Which HTTP method would you use to submit data to be processed by a resource, such as creating a new record in Salesforce?
A) GET
B) POST
C) PUT
D) DELETE
B) POST
When would you use the PUT method in a RESTful API?
A) To update a resource or create a new resource if it does not exist
B) To delete a resource
C) To retrieve a resource
D) To submit a form
A) To update a resource or create a new resource if it does not exist
What does the DELETE method do in a RESTful API?
A) Updates a resource
B) Retrieves a resource
C) Deletes a resource
D) Creates a new resource
C) Deletes a resource
If you need to partially update a resource rather than replacing it entirely, which HTTP method is typically used?
A) POST
B) PATCH
C) GET
D) PUT
B) PATCH
Which HTTP method is commonly used to request information from a specific endpoint without modifying the resource?
A) PUT
B) POST
C) GET
D) PATCH
C) GET
In MuleSoft Anypoint Platform, what role does the HTTP POST method play when integrating with Salesforce?
A) Fetching data from Salesforce
B) Deleting data in Salesforce
C) Creating or updating records in Salesforce
D) Querying data without changing it
C) Creating or updating records in Salesforce
When using the PATCH method in a MuleSoft application to interact with Salesforce, what is its primary purpose?
A) To update an entire resource
B) To delete a resource
C) To partially update a resource
D) To retrieve a resource
C) To partially update a resource
What HTTP status code indicates that the request requires user authentication?
A. 400
B. 401
C. 403
D. 404
Answer: B. 401 Unauthorized
When integrating an external API using MuleSoft and you receive a 502 Bad Gateway error, what does this usually indicate?
A. The request was malformed or contained invalid data.
B. The server, while acting as a gateway or proxy, received an invalid response from an upstream server.
C. The requested resource has been permanently moved to a new URL.
D. The server successfully processed the request but has no content to return.
B. The server, while acting as a gateway or proxy, received an invalid response from an upstream server.
Which HTTP status code signifies that the server has encountered a situation it doesn’t know how to handle?
A. 400 Bad Request
B. 500 Internal Server Error
C. 502 Bad Gateway
D. 503 Service Unavailable
B. 500 Internal Server Error
What does an HTTP status code of 204 indicate?
A. The request has been processed, but no content is returned.
B. The request was successful and a new resource has been created.
C. The request has been processed and the response contains content.
D. The server cannot process the request due to a client error.
A. The request has been processed, but no content is returned.
In MuleSoft, if you need to respond with a 500 Internal Server Error from a Mule application, which of the following is the correct way to configure it?
A. Use a Transform Message component with status code 500
B. Use a Set Payload component with an error status code
C. Configure an HTTP Request with status code 500
D. Use a Raise Error component to throw an exception
D. Use a Raise Error component to throw an exception
Which HTTP status code should be used to indicate that the requested resource could not be found on the server?
A. 200
B. 301
C. 404
D. 500
Answer: C. 404 Not Found
In MuleSoft, if you want to return a response with a custom status code from a Mule flow, which component would you typically use?
A. HTTP Listener
B. HTTP Request
C. Set Payload
D. Object Store
Answer: C. Set Payload
What HTTP status code is returned when the server understands the request but refuses to authorize it?
A. 403
B. 404
C. 500
D. 405
Answer: A. 403 Forbidden
Which HTTP status code should you use to indicate that the server could not understand the request due to invalid syntax?
A. 400
B. 401
C. 403
D. 404
Answer: A. 400 Bad Request
What HTTP status code indicates that a request was successfully processed and a resource has been created?
A. 200
B. 201
C. 204
D. 400
Answer: B. 201 Created
What is the primary purpose of the Mule application’s flow in MuleSoft?
A. To handle database connections
B. To route messages through various components for processing
C. To configure HTTP listeners
D. To manage error handling
Answer: B. To route messages through various components for processing
What is the purpose of the api:router element in APIkit?
Creates native connectors using a 3rd party Java library
Serves as an API implementation
Validates requests against RAML API specifications and routes them to API implementations
Validates responses returned from API requests and routes them back to the caller
Validates responses returned from API requests and routes them back to the caller
What is the minimum required configuration in a flow for a Mule application to compile?
An event processor
An event source
A Logger component
A project RAML file
An event processor
A Database connector is configured to select rows from a MySQL database.
What is the format of the array of results returned from the database query?
Java
JSON
XML
CSV
Java
What is NOT part of a Mule 4 event?
message
payload
inboundProperties
attributes
inboundProperties
How does APIkit determine the number of flows to generate from a RAML specification?
Creates a separate flow for each resource
Creates a separate flow for each resource that contains child resources
Creates a separate flow for each HTTP method instance
Creates one flow for the entire API spec
Creates a separate flow for each response status code
Creates a separate flow for each HTTP method instance
What is the purpose of API autodiscovery?
Enables API Manager to discover the published API on Anypoint Exchange
Allows the Mule application to be automatically discovered on Anypoint
Exchange
Enables an API to be directly managed in API Manager
Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy
Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy
ow many Mule applications can run on a CloudHub worker?
At most one
At least one
Depends on the vCores of the worker
Depends on the number of CloudHub workers configured
At most one
What does an API proxy application NOT do?
Determine which request Mule event is allowed to pass through to the API backend service
Apply runtime policies to enforce governance
Determine which response Mule event is allowed to pass through to the API backend service
Meter the traffic flowing through the proxy
Determine which response Mule event is allowed to pass through to the API backend service
What does the Mule runtime use to enforce policies and limit access to APIs?
Anypoint Access Control
The proxy created by API Manager
API Manager
The Mule runtime’s embedded API Gateway
The Mule runtime’s embedded API Gateway