Latest Salesforce-MuleSoft-Developer-I Exam Dumps Salesforce Exam from Training Expert TrainingQuiz [Q59-Q78]

Share

Latest Salesforce-MuleSoft-Developer-I Exam Dumps Salesforce Exam from Training Expert TrainingQuiz

Pass Salesforce Salesforce Certified MuleSoft Developer I PDF Dumps | Recently Updated 237 Questions

NEW QUESTION # 59
Refer to the exhibits.


The Validation component in the Try scope throws an error.
What response message is returned to a client request to the main flow's HTTP Listener?
The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

  • A. Success - main flow
  • B. Error - Try scope
  • C. Error - main flow
  • D. Validation Error

Answer: A

Explanation:
Note that private flow has error scope defined as On Error Continue . So when error occurs in private flow , it is handled by this On Error Continue scope which sends success response back to main flow and does not throw back an error. So main continues normally and payload is set to Success - main flow.
Hence correct answer is Success - main flow
1) HTTP listener received request
2) The Flow Reference calls the child flow
3) The Is Number validator creates an Error Object because the payload isn't an integer. Child Flow execution stops
#[error.description] = "payload is not a valid INTEGER value"
#[error.errorType] = VALIDATION:INVALID_NUMBER
4) The On Error Continue handles the errorThe payload is set to "Error - Sub Flow"
5) "Error - Sub Flow" is returned to the main flow as if the child flow was a success. The Set Payload is executed. The payload is reset to "Success - Finished Main Flow"
6) "Success - Main Flow" is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200 As you can see, in the above example, because the error was caught by an On Error Continue scope in the child flow (RED in, GREEN out) when the Mule Message returns to the parent flow, the parent flow knows none-the-different that there was a failure because the on error continue returns a 200 success message. Note that because, to the mainFlow, the childFlow appeared to succeed, the processing of mainFlow resumed after the flow reference.


NEW QUESTION # 60
Refer to the below exhibit.
A Mule application configures a property placeholder file named config.yaml to set some property placeholders for an HTTP connector.
What is the valid properties placeholder file to set these values?

  • A. 1. http:
    2. basepath: "api"
    3. host : "localhost"
    4. port : "8081"
  • B. 1. http:
    2. host = "localhost"
    3. port = "8081"
  • C. 1. http.host = localhost
    2. http.port = 8081
  • D. 1. {
    2. http:
    3. basePath: "api",
    4. port: "8081",

Answer: A

Explanation:
5. host: " localhost"
Explanation:
Correct answer is as below as it follows the correct syntax.
http:
basepath: "api"
host : "localhost"
port : "8081"
Mule Doc Reference : https://docs.mulesoft.com/mule-runtime/4.3/mule-app-properties-to-configure


NEW QUESTION # 61
Refer to the exhibit.

What Database expression transforms the input to the output?

  • A.
  • B.
  • C.
  • D.

Answer: B

Explanation:
This kind of questions are best solved with filtering technique. Key thing to note here is XML attributes are always access by @ notation. So in this example orderId can be accessed as @OrderId which makes option 3 and option 4 false. Now difference in optin and option 2 is in mapping of lineItemPrice. Correct syntax to format a String in Numbse is value.price as Number. Hence option 2 is correct


NEW QUESTION # 62
Refer to the exhibits. The Mule application does NOT define any global error handlers.
A web client sends a POST request to the Mule application with this input payload. The File Write operation throws a FILE: CONNECTIVITY error.
What response message is returned to the web client?

  • A. "FILE: CONNECTMTV
  • B. "File written"
  • C. "ORDER: NOT CREATED"
  • D. "OTHER ERROR"

Answer: C


NEW QUESTION # 63
A flow has a JMS Publish consume operation followed by a JMS Publish operation. Both of these operations have the default configurations. Which operation is asynchronous and which one is synchronous?

  • A. Publish consume: Synchronous. Publish: Asynchronous.
  • B. Publish consume: Asynchronous. Publish: Synchronous
  • C. Publish consume: Synchronous. Publish: Synchronous
  • D. Publish consume: Asynchronous. Publish: Asynchronous

Answer: A

Explanation:
Publish consume: Synchronous. Publish: Asynchronous.


NEW QUESTION # 64
Refer to the exhibits.

What payload and quantity are togged at the end of the main flow?

  • A. [[order1, order2, order3, order4], 14]
  • B. [[1,2,3,4], 14]
  • C. [[1,2,3,4], 10]
  • D. [orderlorder2order3order4, 14]

Answer: B


NEW QUESTION # 65
A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?

  • A. A global element
  • B. The pom.xml file
  • C. A configuration properties file
  • D. Nowhere, the global error handler is automatically used

Answer: A

Explanation:
Correct answer is A global element
Global error handlers are to be created in global element .
Quick note to remember here is Global error handlers come in to picture only when there are no error handlers specified as flow level.
Steps to create Global error handler
1) Click Global Elements to open Global Configuration Elements. Global Elements is located below the Studio canvas
2) In Global Configuration Elements, click Create to open the Choose Global Type dialog

3) From the dialog, select Global Configuration - Configuration, and then click OK to open the Configuration dialog.

4) From the select Configuration dialog, select allErrorHandler for the Default Error Handler field, and click OK.


NEW QUESTION # 66
Refer to the exhibits.


Mule application has an HTTP request configuration where host name is hardcoded. Organization is looking to move host and port values to configuration file. What valid expression can be used to so that HTTP configuration can pick the value from configuration file?

  • A. #[training.host]
  • B. ${training.host}
  • C. #{training.host}
  • D. ${http.host}

Answer: B

Explanation:
Correct answer is ${training.host}


NEW QUESTION # 67
Which of the module is imported automatically in Dataweave scripts?

  • A. dw::core
  • B. dw::Crypto
  • C. dw::System
  • D. dw::Runtime

Answer: A

Explanation:
Core (dw::Core) This module contains core DataWeave functions for data transformations. It is automatically imported into any DataWeave script.


NEW QUESTION # 68
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
  • B. Email the owners of the API
  • C. Create a new client application
  • D. No additional steps needed

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


NEW QUESTION # 69
Refer to the exhibits. The Set Payload transformer in the addltem child flow uses DataWeave to create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem child flow to add a router call with the price of 100 to the order?

  • A. addltem( { price: "100", item: "router", itemType: "cable" } )
  • B. lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )
  • C. lookup( "addltern", { price: "100", item: "router", itemType: "cable" } )
  • D. addltem( { payload: { price: "100", item: "router", itemType: "cable" > } )

Answer: B


NEW QUESTION # 70
A Mule project contains a DataWeave module called MyModule.dwl that defines a function named formatString. The module is located in the project's src/main/resources/modules folder.
What is the correct way in DataWeave code to import MyModule using a wildcard and then call the module's formatString function?

  • A.
  • B.
  • C.
  • D.

Answer: D


NEW QUESTION # 71
Refer to the exhibits.


The <when> expression for the Choice router needs to be written.
What is a valid <when> expression to route Mule events to the non-default flow?

  • A. #[ if( company = "MuleSoft") ]
  • B. #[ company = "MuleSoft" ]
  • C. #[ if( 'MuleSoff == payload.company) ]
  • D. #['MuleSoft' == paytoad.company]

Answer: D


NEW QUESTION # 72
A mule project contains MySQL database dependency . The project is exported from Anypoint Studio so that it can be deployed to Cloudhub. What export options needs to be selected to create the smallest deployable archive that will successfully deploy to Cloudhub?

  • A. Select only below option 1) Attach project sources
  • B. Select only below option 2) Include project module and dependencies
  • C. No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
  • D. Select both the options 1) Attach project sources 2) Include project module and dependencies

Answer: B

Explanation:
You can choose Attach Project Sources to include metadata that Studio requires to reimport the deployable file as an open Mule project into your workspace. You must keep the Attach Project Sources option selected to be able to import the packaged JAR file back into a Studio workspace. But requirement here is to create smallest deployable archive that will successfully deploy to Cloudhub. Hence we can ignore this option.
We need to select Include project module and dependencies
As actual modules and external dependencies required to run the Mule application in a Mule runtime engine Hence correct answer is Select only below option 2) Include project module and dependencies MuleSoft Doc Ref : https://docs.mulesoft.com/studio/7.5/import-export-packages#exporting-a-studio-project-to-a-deployable-mule-application


NEW QUESTION # 73
A company has defined two RAML fragments, Book Data Type and Book Example to be used in APIs.
What would be valid RAML to use these fragments ?

  • A. 1. #%RAML 1.0
    2. title: Books
    3. Book: bookDataType.raml
    4. /books:
    5. post:
    6. body:
    7. application/json:
    8. type: Book
    9. examples:
    10. input: bookExample.raml
    11. responses:
    12. 201:
    13. body:
    14. application/json:
    15. example:
    16. message: Book added
  • B. 1. #%RAML 1.0
    2. title: Books
    3. Book: !include bookDataType.raml
    4. /books:
    5. post:
    6. body:
    7. application/json:
    8. type: Book
    9. examples:
    10. input: !include bookExample.raml
    11. responses:
    12. 201:
    13. body:
    14. application/json:
    15. example:
    16. message: Book added
  • C. 1. #%RAML 1.0
    2. title: Books
    3. types:
    4. Book: ABC/Examples/bookDataType.raml
    5. /books:
    6. post:
    7. body:
    8. application/json:
    9. type: Book
    10. examples:
    11. input: ABC/Examples/bookExample.raml
    12. responses:
    13. 201:
    14. body:
    15. application/json:
    16. example:
    17. message: Book added
  • D. 1. #%RAML 1.0
    2. title: Books
    3. Book: bookDataType.raml
    4. /books:
    5. post:
    6. body:
    7. application/json:
    8. type: Book
    9. examples:
    10. input: bookExample.raml
    11. responses:
    12. 201:
    13. body:
    14. application/json:
    15. example:
    16. message: Book added

Answer: D

Explanation:
* RAML file contains lot of information that could be considered as "not API-describing". Sort of "economy-class" members.
Equally important, but not necessarily part of the main RAML file.
* Through !includes, RAML allows us to build file-distributed API definitions, which is not only useful to encourage code reuse but also improves readability.
* We can create RAML fragments with such code and then include them in main RAML project using !include like:
types:
Book: !include bookDataType.raml and
examples:
input: !include bookExample.raml
* Additionally for
---------------------------------------------------------------------------------------------------------------------------------------- Correct Answer: D


NEW QUESTION # 74
Does a root element required when creating a XML response using Dataweave?

  • A. None of these
  • B. Not required
  • C. Depends on requirement
  • D. Always required

Answer: D

Explanation:
Root element is always required while creating XML response in DataWeave transformation


NEW QUESTION # 75
What is the difference between a subflow and a sync flow?

  • A. No difference
  • B. Subflow is synchronous and sync flow is asynchronous
  • C. Subflow has no error handling of its own and sync flow does
  • D. Sync flow has no error handling of its own and subflow does

Answer: C

Explanation:
Correct answer is Subflow has no error handling implementation where as sync flow has.
Subflow
A subflow processes messages synchronously (relative to the flow that triggered its execution) and always inherits both the processing strategy and exception strategy employed by the triggering flow. While a subflow is running, processing on the triggering flow pauses, then resumes only after the subflow completes its processing and hands the message back to the triggering flow.
Synchronous Flow
A synchronous flow, like a subflow, processes messages synchronously (relative to the flow that triggered its execution). While a synchronous flow is running, processing on the triggering flow pauses, then resumes only after the synchronous flow completes its processing and hands the message back to the triggering flow. However, unlike a subflow, this type of flow does not inherit processing or exception strategies from the triggering flow.
This type of flow processes messages along a single thread, which is ideally suited to transactional processing


NEW QUESTION # 76
Refer to exhibits.

What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?

  • A. The city is #[payload.City]
  • B. #["The city is" ++ payload.City]
  • C. #[The city is ${payload.City}
  • D. The city is + #[payload.City]

Answer: A

Explanation:
Correct answer is The city is #[payload.City]
Answer can get confused with the option #["The city is" ++ payload.City] But note that this option will not print the space between is and city name. This will print The city isPune


NEW QUESTION # 77
Refer to the exhibits The Mule application does NOT define any global error handlers.
A web client sends a POST request to the Multi application with this input payload The File Write operation throws a FILECONNECTIVITY error What response message is returned to the web client?

  • A. "ORDER NOT_CREATED"
  • B. "FILECONNECTIVITY"
  • C. "File written"
  • D. "OTHER ERROR"

Answer: A


NEW QUESTION # 78
......

Updated Test Engine to Practice Salesforce-MuleSoft-Developer-I Dumps & Practice Exam: https://www.trainingquiz.com/Salesforce-MuleSoft-Developer-I-practice-quiz.html

Dumps Collection Salesforce-MuleSoft-Developer-I Test Engine Dumps Training With 237 Questions: https://drive.google.com/open?id=1mKCeMpVS6F88l84saaeVoI4K4u0jD0Xa