ExamGecko
Home Home / MuleSoft / MCD - Level 1

MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 17

Question list
Search
Search

Related questions











How does APIkit determine the number of flows to generate from a RAML specification?

A.
Creates a separate flow for each resource
A.
Creates a separate flow for each resource
Answers
B.
Creates a separate flow for each HTTP method
B.
Creates a separate flow for each HTTP method
Answers
C.
Creates a separate flow for each response status code
C.
Creates a separate flow for each response status code
Answers
D.
Creates a separate flow for each resource that contains child resources
D.
Creates a separate flow for each resource that contains child resources
Answers
Suggested answer: B

Explanation:

APIKIt Creates a separate flow for each HTTP method

What are the latest specification of RAML available?

A.
1.2
A.
1.2
Answers
B.
1
B.
1
Answers
C.
0.8
C.
0.8
Answers
D.
2
D.
2
Answers
Suggested answer: B

Explanation:

The current version of the RAML specification is 1.0

You can check RAML version in RAML definition by referring to first comment. See highlighted part in below image.

How to import Core (dw::Core) module into your DataWeave scripts?

A.
#include dw::core
A.
#include dw::core
Answers
B.
Not needed
B.
Not needed
Answers
C.
import core
C.
import core
Answers
D.
import dw::core
D.
import dw::core
Answers
Suggested answer: B

Explanation:

Correct answer is Not needed as dw::core module is included by default. We don't need to include it explicitly

A Mule application configured with Autodiscovery implements an API.

Where is governance enforced for policies defined for this Mule application?

A.
In Runtime Manager
A.
In Runtime Manager
Answers
B.
Runtime Manager
B.
Runtime Manager
Answers
C.
In the Mule application
C.
In the Mule application
Answers
D.
In API manager
D.
In API manager
Answers
Suggested answer: D

Explanation:

Correct answer is API manager

Which out of below is not an asset?

A.
Template
A.
Template
Answers
B.
Connector
B.
Connector
Answers
C.
Exchange
C.
Exchange
Answers
D.
Example
D.
Example
Answers
Suggested answer: C

Explanation:

Exchange is the odd man out here. Rest all are type of asset

A Mule project contains a DataWeave module like WebStore.dwl that defines a function named loginUser. The module file is located in the project's src/main/resources/libs/etl folder.

What is correct DataWeave code to import all of the WebStore.dwl file's functions and then call the loginUser function for the login '[email protected]'?

A.
1. 1. import libs.etl 2. 2. --- 3. 3. WebStore.loginUser('[email protected]')
A.
1. 1. import libs.etl 2. 2. --- 3. 3. WebStore.loginUser('[email protected]')
Answers
B.
1. 1. import * from libs::etl 2. 2. --- 3. 3. WebStore::loginUser('[email protected]')
B.
1. 1. import * from libs::etl 2. 2. --- 3. 3. WebStore::loginUser('[email protected]')
Answers
C.
1. 1. import libs.etl.WebStore 2. 2. --- 3. 3. loginUser('[email protected]')
C.
1. 1. import libs.etl.WebStore 2. 2. --- 3. 3. loginUser('[email protected]')
Answers
D.
1. 1. import * from libs::etl::WebStore 2. 2. --- 3. 3. loginUser('[email protected]')
D.
1. 1. import * from libs::etl::WebStore 2. 2. --- 3. 3. loginUser('[email protected]')
Answers
Suggested answer: D

Explanation:

* To use custom modules, you need to import the module or functions you want to use by adding the import directive to the head of your DataWeave script, for example:

1) Does not identify any functions to import from the String module:

import dw::core::Strings

2) To identify a specific function to import from the String module:

import camelize, capitalize from dw::core::Strings

3) To import all functions from the String module:

import * from dw::core::Strings

The way you import a module impacts the way you need to call its functions from a DataWeave script. If the directive does not list specific functions to import or use * from to import all functions from a function module, you need to specify the module when you call the function from your script.

* In given scenario, it's mentioned to import all of the WebStore.dwl

So correct answer is:

According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?

A.
Implements line of business projects to enforce common security requirements
A.
Implements line of business projects to enforce common security requirements
Answers
B.
Creates and manages discoverable assets to be consumed by line of business developers
B.
Creates and manages discoverable assets to be consumed by line of business developers
Answers
C.
Centrally manages partners and consultants to implement line of business projects
C.
Centrally manages partners and consultants to implement line of business projects
Answers
D.
Implements line of business projects to enforce common security requirements
D.
Implements line of business projects to enforce common security requirements
Answers
Suggested answer: B

Explanation:

Correct answer is Creates and manages discoverable assets to be consumed by line of business developers.

C4E does not get directly involved in projects.

What is the correct way to format the decimal 200.1234 as a string to two decimal places?

A.
200.1234 as string as format: '.0#'
A.
200.1234 as string as format: '.0#'
Answers
B.
200.1234 as String {format: '.0#'}
B.
200.1234 as String {format: '.0#'}
Answers
C.
200.1234 as String as format: '.0#'
C.
200.1234 as String as format: '.0#'
Answers
D.
200.1234 as string {format: '.0#'}
D.
200.1234 as string {format: '.0#'}
Answers
Suggested answer: B

Explanation:

Correct answer is 200.1234 as String {format: '.0#'} . Rest all options are not syntactically correct.

The new RAML spec has been published to Anypoint Exchange with client credentials.

What is the next step to gain access to the API?

A.
Request access to the API in Anypoint Exchange
A.
Request access to the API in Anypoint Exchange
Answers
B.
Email the owners of the API
B.
Email the owners of the API
Answers
C.
Create a new client application
C.
Create a new client application
Answers
D.
No additional steps needed
D.
No additional steps needed
Answers
Suggested answer: A

Explanation:

Correct answer is Request access to the API in Anypoint Exchange. This way we can get clientId and Client secret which we can use to access the API

Correct answer is {customerID}.

A.
var toUpper(userName) -> upper(userName)
A.
var toUpper(userName) -> upper(userName)
Answers
B.
fun toUpper(userName) = upper(userName)
B.
fun toUpper(userName) = upper(userName)
Answers
C.
fun toUpper(userName) -> upper(userName)
C.
fun toUpper(userName) -> upper(userName)
Answers
D.
var toUpper(userName) = upper(userName)
D.
var toUpper(userName) = upper(userName)
Answers
Suggested answer: B

Explanation:

A function named toUpper needs to be defined that accepts a string named userName and returns the string in uppercase.

What is the correct DW code to define the toUpper function?

Total 235 questions
Go to page: of 24