SAP-C02 第 154 题
题目
A company gives users the ability to upload images from a custom application. The upload process invokes an AWS Lambda function that processes and stores the image in an Amazon S3 bucket. The application invokes the Lambda function by using a specific function version ARN. The Lambda function accepts image processing parameters by using environment variables. The company often adjusts the environment variables of the Lambda function to achieve optimal image processing output. The company tests different parameters and publishes a new function version with the updated environment variables after validating results. This update process also requires frequent changes to the custom application to invoke the new function version ARN. These changes cause interruptions for users. A solutions architect needs to simplify this process to minimize disruption to users. Which solution will meet these requirements with the LEAST operational overhead?
中文翻译:
一家公司让用户能够从自定义应用程序上传图像。上传过程调用 AWS Lambda 函数来处理图像并将其存储在 Amazon S3 存储桶中。应用程序使用特定函数版本 ARN 调用 Lambda 函数。 Lambda 函数使用环境变量接受图像处理参数。公司经常调整Lambda函数的环境变量以达到最佳的图像处理输出。该公司测试了不同的参数,并在验证结果后发布了具有更新的环境变量的新函数版本。此更新过程还需要频繁更改自定义应用程序以调用新功能版本 ARN。这些更改会导致用户中断。解决方案架构师需要简化此流程,以最大程度地减少对用户的干扰。哪种解决方案能够以最少的运营开销满足这些要求?
选项
A. Directly modify the environment variables of the published Lambda function version. Use the SLATEST version to test image processing parameters.
中文翻译:
直接修改已发布的Lambda函数版本的环境变量。使用SLATEST版本测试图像处理参数。
B. Create an Amazon DynamoDB table to store the image processing parameters. Modify the Lambda function to retrieve the image processing parameters from the DynamoDB table.
中文翻译:
创建 Amazon DynamoDB 表来存储图像处理参数。修改 Lambda 函数以从 DynamoDB 表中检索图像处理参数。
C. Directly code the image processing parameters within the Lambda function and remove the environment variables. Publish a new function version when the company updates the parameters.
中文翻译:
直接在 Lambda 函数中编写图像处理参数并删除环境变量。公司更新参数时发布新的功能版本。
D. Create a Lambda function alias. Modify the client application to use the function alias ARN. Reconfigure the Lambda alias to point to new versions of the function when the company finishes testing.
中文翻译:
创建 Lambda 函数别名。修改客户端应用程序以使用函数别名 ARN。当公司完成测试时,重新配置 Lambda 别名以指向该函数的新版本。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 创建 Lambda 函数别名。修改客户端应用程序以使用函数别名 ARN。当公司完成测试时,重新配置 Lambda 别名以指向该函数的新版本。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:Lambda、Dyna...