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


    mulesoft Module 11 quiz解析

    • 1. A Mule application has a main flow and a combineNames flow. In the main flow, a variable named fullName is set to the object {firstNmae:"Max",lastName:"Mule"}.
    • 3. What is the correct way to format the decimal 20.3844 as a string to two decimal places?
    • 4. Whata DataWeave 2.0 type can be used as input to a map operation?
    • 5. Refer to the exhibit. An event payload contains an unordered array of flight objects.where every object has a price key and a toAirport key.

    在这里插入图片描述

    1. A Mule application has a main flow and a combineNames flow. In the main flow, a variable named fullName is set to the object {firstNmae:“Max”,lastName:“Mule”}.

    What is valid DataWeave code to call the combineNames flow with the input object stored in the fullName
    variable?

    A #[dw::Flow::lookup(“combineNames”,vars.fullName)]
    B #[lookup(“combineNames”,vars.fullName)]
    C #[dw::Runtime::lookup(“combineNames”,vars.fullName)]
    D #[combineNames,vars.fullName]
    E #[lookup(combineNames(vars.fullName))]

    答案:B


    1. Refer to the exhibit. What is valid DataWeave code to transform the input JSON payload to the output XML payload
      在这里插入图片描述
      A
      在这里插入图片描述
      B
      在这里插入图片描述
      C
      在这里插入图片描述
      D
      在这里插入图片描述

    答案:B,注意firstName和lastName是作为employee的行内属性


    3. What is the correct way to format the decimal 20.3844 as a string to two decimal places?

    A 20.3844 as :string{format:“.0#”}
    B 20.3844 as String{format:“.0#”}
    C 20.3844 as :string{format=“.0#”}
    D 20.3844 as String as format:“.0#”
    E 20.3844 as :string as format:“.0#”
    F 20.3844 as String{format=“.0#”}

    答案:B


    4. Whata DataWeave 2.0 type can be used as input to a map operation?

    A String
    B Map
    C Object
    D Array
    E Key

    答案:D,和js的用法一样


    5. Refer to the exhibit. An event payload contains an unordered array of flight objects.where every object has a price key and a toAirport key.

    What is valid DataWeave code to return flights with price under 500, grouped by toAirport in ascending order, with the lowest price first?

    在这里插入图片描述

    A payload groupBy $.toAirport filter $.price < 500 orderBy $.price
    B payload groupBy $.toAirport filter $.price > 500 orderBy $.price
    C payload filter $.price < 500 orderBy $.price groupBy $.toAirport
    D payload filter $.price > 500 orderBy $.price groupBy $.toAirport

    答案:C

  • 相关阅读:
    mysql数据库备份与回滚
    Binder进程通信基础使用
    生产环境元空间内存溢出(OOM)的问题排查
    Elasticsearch
    探索JavaScript ES6+新特性
    Vue2.0开发之——Vue基础用法-事件绑定-按键修饰符(21)
    Ubuntu18.04 velodyne 运行loam_velodyne
    【Linux Socket C++】为什么IO复用需要用到非阻塞IO?EAGAIN的简单介绍与应用
    [开源初探]screenshot-to-code:将截图转化为代码
    C#面试十问
  • 原文地址:https://blog.csdn.net/qq_41885819/article/details/127780580
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | 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号