MLS-C01 练习题

MLS-C01 题目讲解:模糊匹配去重用 FindMatches

MLS-C01 练习题讲解。答案 C。两份数据格式不同,同一实体可能字符串不相等。

MLS-C01 免费试练题 · 考证匠讲解

题目

A retail company wants to combine its customer orders with the product description data from its product catalog. The structure and format of the records in each dataset is different. A data analyst tried to use a spreadsheet to combine the datasets, but the effort resulted in duplicate records and records that were not properly combined. The company needs a solution that it can use to combine similar records from the two datasets and remove any duplicates. Which solution will meet these requirements?

A. Use an AWS Lambda function to process the data. Use two arrays to compare equal strings in the fields from the two datasets and remove any duplicates.
B. Create AWS Glue crawlers for reading and populating the AWS Glue Data Catalog. Call the AWS Glue SearchTables API operation to perform a fuzzy- matching search on the two datasets, and cleanse the data accordingly.
C. Create AWS Glue crawlers for reading and populating the AWS Glue Data Catalog. Use the FindMatches transform to cleanse the data.
D. Create an AWS Lake Formation custom transform. Run a transformation for matching products from the Lake Formation console to cleanse the data automatically.

答案

答案 C。两份数据格式不同,同一实体可能字符串不相等。

拆题

  • 两份数据格式不同,同一实体可能字符串不相等。
  • Glue FindMatches 用标注样例学习记录相似关系,而 crawler 只发现 schema。
  • 去重与 join 不能混为一谈,匹配候选后还要业务键与冲突合并规则。

每个选项为什么对、为什么错

  • A:精确字符串比较无法识别拼写、缩写与格式变化,自建数组对比还可能规模低效。
  • B:SearchTables 搜索元数据目录,不是对数据行做实体模糊匹配。
  • C(正确):crawler 建目录,FindMatches 做实体匹配,是各司其职的托管路径。
  • D:Lake Formation 管授权治理,没有题述开箱即用自定义产品匹配功能。

放到具体场景里

教学例子:目录有 JR Wireless Mouse,订单写 JR wireless mouse black,人工样例标注是否同 SKU。FindMatches 产生 match group 后,用 SKU、颜色和供应商校验,不能把不同颜色全部合并;保留原行与合并出处便于审计。

检查对象本例条件或动作结果与边界
目录crawler schema不自动匹配行
学习标注同/不同实体影响精确率
合并业务冲突规则保留出处

遇到同类题的判断顺序

  1. 发现结构:爬取两份数据。
  2. 标注样例:定义何为同一产品。
  3. 运行匹配:生成候选组。
  4. 校验合并:防止错误合并并留原记录。
结论:相似名字不必然同一商品,匹配需要业务验证。

参考资料

继续练这门考试

同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。