码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • mulesoft Module 6 quiz 解析


    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

  • 相关阅读:
    PostgreSQL 入门教程
    第一个C++程序
    从数据图表引入到最终效果呈现:全面解析JVS智能BI图表配置流程
    【JavaSE】封装与继承,访问限定符的总结
    网络安全-渗透测试
    web前端课程设计 HTML+CSS+JavaScript旅游风景云南城市网页设计与实现 web前端课程设计代码 web课程设计 HTML网页制作代码
    linux shell脚本学习指南
    XXL-JOB核心源码解读及时间轮原理剖析
    JS判断是否为数组的方式
    记一次 .NET 某企业采购平台 崩溃分析
  • 原文地址:https://blog.csdn.net/qq_41885819/article/details/127719592
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号