Moduloas 1,2, 3, 4, 5 Flashcards

1
Q

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

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

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

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

hat HTTP method in a RESTful web service is typically used to completely replace an existing resource?

PATCH

PUT

POST

GET

A

PUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

Experience

Data

System

Process

Security

A

System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the MuleSoft-hosted runtime environment called?

A. MuleSoft Private Cloud

B. CloudHub

C. Anypoint Central

D. MuleSoft CloudHost

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is NOT one of the benefits of a layered API-led architecture?

Delivery speed

Customized problem-solving

Security

Native self-service

A

Customized problem-solving

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What MuleSoft product enables publishing, sharing, and searching of APIs?

API Designer

Runtime Manager

Anypoint Exchange

API Notebook

A

Anypoint Exchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What asset can NOT be created using Design Center?

API Specifications

Correctly unselected
Mule Applications

Correctly unselected
API Fragments

Incorrectly selected
API Portals

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

Publish the API to Anypoint Exchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

examples: !include examples/BankAccountsExample.raml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

%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

A

C. Indent the get method under the {flight_id} resource

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

Answer: c) 201 Created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What type of response code does an API typically return to indicate Bad Request?

a) 200
b) 400
c) 201
d) 404

A

b) 400 Bad Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What type of response code does an API typically return to indicate the Not Found?

A

d) 404 Not Found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

c) A language for defining API specifications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

A

d) A JAR file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which of the following HTTP methods is typically used to retrieve data from a specified resource?

a) POST
b) PUT
c) GET
d) DELETE

A

c) GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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

A

C) Retrieve information about a resource

20
Q

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

A

B) POST

21
Q

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

A) To update a resource or create a new resource if it does not exist

22
Q

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

A

C) Deletes a resource

23
Q

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

A

B) PATCH

24
Q

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

A

C) GET

25
Q

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

A

C) Creating or updating records in Salesforce

26
Q

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

A

C) To partially update a resource

27
Q

What HTTP status code indicates that the request requires user authentication?

A. 400
B. 401
C. 403
D. 404

A

Answer: B. 401 Unauthorized

28
Q

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.

A

B. The server, while acting as a gateway or proxy, received an invalid response from an upstream server.

29
Q

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

A

B. 500 Internal Server Error

30
Q

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

A. The request has been processed, but no content is returned.

31
Q

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

A

D. Use a Raise Error component to throw an exception

32
Q

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

A

Answer: C. 404 Not Found

33
Q

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

A

Answer: C. Set Payload

34
Q

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

A

Answer: A. 403 Forbidden

35
Q

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

A

Answer: A. 400 Bad Request

36
Q

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

A

Answer: B. 201 Created

37
Q

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

A

Answer: B. To route messages through various components for processing

38
Q

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

A

Validates responses returned from API requests and routes them back to the caller

39
Q

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

A

An event processor

40
Q

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

A

Java

41
Q

What is NOT part of a Mule 4 event?

message

payload

inboundProperties

attributes

A

inboundProperties

42
Q

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

A

Creates a separate flow for each HTTP method instance

43
Q

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

A

Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy

44
Q

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

A

At most one

45
Q

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

A

Determine which response Mule event is allowed to pass through to the API backend service

46
Q

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

A

The Mule runtime’s embedded API Gateway

47
Q
A