mulesoft Module 6 quiz 解析

  • 1. A web service implements an API to handle requests to http://acme.com/customers/{state}
  • 2. A Mule application has a flow named parentFlow. The parentFlow contains an HTTP Request operation at the end of the flow. The parentFlow also contains a Set Variable operation right before the HTTP Request operation.
  • 3. A Mule application has two flows named parentFlow and childFlow. The childFlow begins with an HTTP Listener.
  • 4. Refer to the exhibit. What is the correct DataWeave expression for accessing the city Cleveland from the JSON payload?
  • 5. A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header
  • 6. What happens to the attirbutes of a Mule event in a flow after an outbound HTTP Request is made?
  • 7. A Set Variable component saves the current payload to a variable with the name images.
  • 8. What is NOT part of a Mule 4 event?

1. A web service implements an API to handle requests to http://acme.com/customers/{state}

A web client makes a request to this API implementation at http://acme.com/customers/CA

What is the correct DataWeave expression to retrieve the value CA?

A #[message.inboundProperties.‘http.uri.params’.state]
B #[message.payload.inboundProperties.‘http.uri.params’.state]
C #[attributes.‘http.uri.params’.state]
D #[state]
E #[attributes.uriParams.state]

答案:E,这章需区分message,attributes,variables,payload这几个组件


2. A Mule application has a flow named parentFlow. The parentFlow contains an HTTP Request operation at the end of the flow. The parentFlow also contains a Set Variable operation right before the HTTP Request operation.

What is the scope of the variable to the server receiving the HTTP Request from parentFlow?

A The variable is accessible in the server, can be changed, but changes are NOT seen back in parentFlow
B The variable is accessible in the server, can be changed, and changes are seen back in parentFlow
C The variable is NOT accessble in the server
D The variable is accessible in the server but is immutable

答案:C,只能access parentFlow的payload


3. A Mule application has two flows named parentFlow and childFlow. The childFlow begins with an HTTP Listener.

A variable is defined in parentFlow, then an HTTP Request is made to childFlow’s HTTP Listener with some headers set.
What is the scope of the variable and attributes in the parentFlow after childFlow returns a response?

A The variable is NOT accessible.All the attributes passed to childFlow are preserved
B The variable is accessible. All the attributes passed to childFlow are preserved
C The variable is NOT accessible. All the attributes passed to childFlow are removed or replaced.
D The variable is accessible. All the attributes passed to childFlow are removed or replaced

答案:D


4. Refer to the exhibit. What is the correct DataWeave expression for accessing the city Cleveland from the JSON payload?

A #[payload[1].city]
B #[payload.city[1]]
C #[payload.city[2]]
D #[payload[2].city]

答案:A


5. A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header

using a Logger component?

A #[“Content-Type:” + headers.‘content-type’]
B #[“Content-Type:” ++ attributes.headers.‘content-type’]
C #[“Content-Type:” + attributes.headers.‘content-type’]
D #[“Content-Type:” ++ headers.‘content-type’]

答案:B


6. What happens to the attirbutes of a Mule event in a flow after an outbound HTTP Request is made?

A New attributes may be added from the HTTP response headers, but no headers are ever removed
B Attributes are replaced with new attributes from the HTTP Request response(which might be null)
C New attributes may be added from the HTTP response, but previous attributes are passed through unchanged
D Attributes do not change

答案:B


7. A Set Variable component saves the current payload to a variable with the name images.

What is the DataWeave expression to access the images variable?

A #[flowVars.images]
B #[images]
C #[payload.images]
D #[vars.images]

答案:D


8. What is NOT part of a Mule 4 event?

A variables
B payload
C outboundProperties
D attributes
E message

答案:C

mulesoft Module 6 quiz 解析相关推荐

  1. mulesoft Module 10 quiz 解析

    mulesoft Module 10 quiz 解析 概述(重中之重) 1. How can an error scope be configured to catch all errors in t ...

  2. mulesoft Module 11 quiz解析

    mulesoft Module 11 quiz解析 1. A Mule application has a main flow and a combineNames flow. In the main ...

  3. mulesoft Module 9 quiz 解析

    mulesoft Module 9 quiz 解析 1. A Scatter-Gather processes three separate HTTP requests. Each request r ...

  4. mulesoft Module 1 quiz 解析

    mulesoft Module 1 quiz 解析 1. What MuleSoft API-led connectivity layer is intended to expose part of ...

  5. mulesoft Module 7 quiz 解析

    mulesoft Module 7 quiz 解析 1. What reserved property can be defined and used in a Mule application to ...

  6. mulesoft Module 2 quiz 解析

    mulesoft Module 2 quiz 解析 1. What asset can NOT be created using Design Center? 2. A web client subm ...

  7. mulesoft Module 12 quiz解析

    mulesoft Module 12 quiz解析 1. A flow has a JMS Publish consume operation followed by a JMS Publish op ...

  8. mulesoft Module 13 quiz 解析

    mulesoft Module 13 quiz 解析 Processing records Summary 1. A Batch Job scope has three batch steps. An ...

  9. mulesoft Module 5 quiz 解析

    mulesoft Module 5 quiz 解析 1. API Manager has been configured to enforce an SLA policy and the RAML s ...

最新文章

  1. Flutter 导包 以及体验
  2. Linux软件安装的补充
  3. 首次写文章,分享一些渗透、安全工具
  4. 【最新合集】PAT甲级最优题解(题解+解析+代码)
  5. CodeForces 282E Sausage Maximization(trie+xor)
  6. 泛型型协变逆变_Java泛型类型简介:协变和逆变
  7. windows等宽字体
  8. 1024电商项目的邮箱验证码与图形验证码功能模块
  9. 阿里CTO张建锋:明年双11将大规模应用含光AI芯片
  10. hive 导出json格式 文件_hive中创建hive-json格式的表及查询
  11. oracle新建一个用户_Kettle 连接oracle将数据保存到Excel
  12. Spring中IOC和AOP的详细解释(转)
  13. one-stage 目标检测——M2Det源码运行测试
  14. 可变剪切(选择性剪接)rmats2sashimiplot可视化安装与使用
  15. 倍福---原点断电保持的方法
  16. java汇编代码段,新手求助,跪求各位大神解答,怎么把这段汇编转成java代码
  17. 试题 算法训练 kAc给糖果你吃(贪心)
  18. Source Insight 最新版本
  19. Baumer工业相机堡盟相机如何使用自动曝光功能(自动曝光优点和行业应用)(C++)
  20. FXLMS主动降噪的simulink建模与仿真

热门文章

  1. 力扣刷题 - LCP 30. 魔塔游戏
  2. Base64工具类(加密、解密)
  3. 数据库:group by 的使用
  4. 1Blocker for Mac 1.4.6 破解版下载 – 优秀的浏览器网页广告拦截工具
  5. 标准的晋升 PPT 长什么样子?互联网职场晋升内幕!想升职加薪?得这么干……...
  6. 更改WebStrom主题字体
  7. html2pdf页面大小,javascript – JSPDF – 如何将具有各种页面大小(高度和宽度)的多个图像导出到单个pdf文件...
  8. paddleocr-营业执照识别项目实战
  9. 网狐登录提示,服务器连接失败,请检查网络配置以及网络连接状况
  10. 一个C++程序员的一天,心酸···