SAP-C02 学习助手

SAP-C02 第 147 题

Lambda S3 RDS SQS Config Fargate

题目

A financial services company receives a regular data feed from its credit card servicing partner. Approximately 5,000 records are sent every 15 minutes in plaintext, delivered over HTTPS directly into an Amazon S3 bucket with server-side encryption. This feed contains sensitive credit card primary account number (PAN) data. The company needs to automatically mask the PAN before sending the data to another S3 bucket for additional internal processing. The company also needs to remove and merge specific fields, and then transform the record into JSON format. Additionally, extra feeds are likely to be added in the future, so any design needs to be easily expandable. Which solutions will meet these requirements?

中文翻译:
一家金融服务公司从其信用卡服务合作伙伴处定期接收数据源。每 15 分钟就会以明文形式发送大约 5,000 条记录,通过 HTTPS 直接传送到具有服务器端加密的 Amazon S3 存储桶中。此 Feed 包含敏感的信用卡主帐号 (PAN) 数据。该公司需要在将数据发送到另一个 S3 存储桶进行额外的内部处理之前自动屏蔽 PAN。该公司还需要删除并合并特定字段,然后将记录转换为 JSON 格式。此外,未来可能会添加额外的提要,因此任何设计都需要易于扩展。哪些解决方案可以满足这些要求?

选项

A. Invoke an AWS Lambda function on file delivery that extracts each record and writes it to an Amazon SQS queue. Invoke another Lambda function when new messages arrive in the SQS queue to process the records, writing the results to a temporary location in Amazon S3. Invoke a final Lambda function once the SQS queue is empty to transform the records into JSON format and send the results to another S3 bucket for internal processing.

中文翻译:
在文件传输时调用 AWS Lambda 函数,该函数提取每条记录并将其写入 Amazon SQS 队列。当新消息到达 SQS 队列时调用另一个 Lambda 函数来处理记录,将结果写入 Amazon S3 中的临时位置。一旦 SQS 队列为空,调用最终 Lambda 函数,将记录转换为 JSON 格式,并将结果发送到另一个 S3 存储桶进行内部处理。

B. Invoke an AWS Lambda function on file delivery that extracts each record and writes it to an Amazon SQS queue. Configure an AWS Fargate container application to automatically scale to a single instance when the SQS queue contains messages. Have the application process each record, and transform the record into JSON format. When the queue is empty, send the results to another S3 bucket for internal processing and scale down the AWS Fargate instance.

中文翻译:
在文件传输时调用 AWS Lambda 函数,该函数提取每条记录并将其写入 Amazon SQS 队列。将 AWS Fargate 容器应用程序配置为在 SQS 队列包含消息时自动扩展到单个实例。让应用程序处理每条记录,并将记录转换为 JSON 格式。当队列为空时,将结果发送到另一个 S3 存储桶进行内部处理并缩小 AWS Fargate 实例。

C. Create an AWS Glue crawler and custom classifier based on the data feed formats and build a table definition to match. Invoke an AWS Lambda function on file delivery to start an AWS Glue ETL job to transform the entire record according to the processing and transformation requirements. Define the output format as JSON. Once complete, have the ETL job send the results to another S3 bucket for internal processing.

中文翻译:
根据数据源格式创建 AWS Glue 爬网程序和自定义分类器,并构建匹配的表定义。在文件传输时调用 AWS Lambda 函数来启动 AWS Glue ETL 作业,以根据处理和转换要求转换整个记录。定义输出格式为 JSON。完成后,让 ETL 作业将结果发送到另一个 S3 存储桶以进行内部处理。

D. Create an AWS Glue crawler and custom classifier based upon the data feed formats and build a table definition to match. Perform an Amazon Athena query on file delivery to start an Amazon EMR ETL job to transform the entire record according to the processing and transformation requirements. Define the output format as JSON. Once complete, send the results to another S3 bucket for internal processing and scale down the EMR cluster.

中文翻译:
根据数据源格式创建 AWS Glue 爬网程序和自定义分类器,并构建匹配的表定义。对文件传输执行 Amazon Athena 查询以启动 Amazon EMR ETL 作业,根据处理和转换要求转换整个记录。定义输出格式为 JSON。完成后,将结果发送到另一个 S3 存储桶进行内部处理并缩小 EMR 集群规模。

答案

C

解析

正确答案:C 解析: 本题应选择 C。 正确选项: C. 根据数据源格式创建 AWS Glue 爬网程序和自定义分类器,并构建匹配的表定义。在文件传输时调用 AWS Lambda 函数来启动 AWS Glue ETL 作业,以根据处理和转换要求转换整个记录。定义输出格式为 JSON。完成后,让 ETL 作业将结果发送到另一个 S3 存储桶以进行内部处理。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同...

登录后查看完整解析