SAP-C02 学习助手

SAP-C02 第 47 题

VPC Lambda Config

题目

A company is building a serverless application that runs on an AWS Lambda function that is attached to a VPC. The company needs to integrate the application with a new service from an external provider. The external provider supports only requests that come from public IPv4 addresses that are in an allow list. The company must provide a single public IP address to the external provider before the application can start using the new service. Which solution will give the application the ability to access the new service?

中文翻译:
一家公司正在构建一个在附加到 VPC 的 AWS Lambda 函数上运行的无服务器应用程序。该公司需要将该应用程序与外部提供商的新服务集成。外部提供商仅支持来自允许列表中的公共 IPv4 地址的请求。在应用程序可以开始使用新服务之前,公司必须向外部提供商提供单个公共 IP 地址。哪种解决方案将使应用程序能够访问新服务?

选项

A. Deploy a NAT gateway. Associate an Elastic IP address with the NAT gateway. Configure the VPC to use the NAT gateway.

中文翻译:
部署NAT网关。将弹性 IP 地址与 NAT 网关关联。配置VPC使用NAT网关。

B. Deploy an egress-only internet gateway. Associate an Elastic IP address with the egress-only internet gateway. Configure the elastic network interface on the Lambda function to use the egress-only internet gateway.

中文翻译:
部署仅出口互联网网关。将弹性 IP 地址与仅出口互联网网关关联。在 Lambda 函数上配置弹性网络接口以使用仅出口互联网网关。

C. Deploy an internet gateway. Associate an Elastic IP address with the internet gateway. Configure the Lambda function to use the internet gateway.

中文翻译:
部署互联网网关。将弹性 IP 地址与互联网网关关联。配置 Lambda 函数以使用互联网网关。

D. Deploy an internet gateway. Associate an Elastic IP address with the internet gateway. Configure the default route in the public VPC route table to use the internet gateway.

中文翻译:
部署互联网网关。将弹性 IP 地址与互联网网关关联。在公共 VPC 路由表中配置默认​​路由以使用 Internet 网关。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 部署NAT网关。将弹性 IP 地址与 NAT 网关关联。配置VPC使用NAT网关。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:VPC、Lambda、Config。 排除思路: B、C、D 通常会在协议或服务...

登录后查看完整解析