SAP-C02 第 56 题
题目
An AWS customer has a web application that runs on premises. The web application fetches data from a third-party API that is behind a firewall. The third party accepts only one public CIDR block in each client’s allow list. The customer wants to migrate their web application to the AWS Cloud. The application will be hosted on a set of Amazon EC2 instances behind an Application Load Balancer (ALB) in a VPC. The ALB is located in public subnets. The EC2 instances are located in private subnets. NAT gateways provide internet access to the private subnets. How should a solutions architect ensure that the web application can continue to call the third-party API after the migration?
中文翻译:
AWS 客户有一个在本地运行的 Web 应用程序。 Web 应用程序从防火墙后面的第三方 API 获取数据。第三方仅接受每个客户端的允许列表中的一个公共 CIDR 块。客户希望将其 Web 应用程序迁移到 AWS 云。该应用程序将托管在 VPC 中应用程序负载均衡器 (ALB) 后面的一组 Amazon EC2 实例上。 ALB 位于公共子网中。 EC2 实例位于私有子网中。 NAT 网关提供对私有子网的互联网访问。解决方案架构师应该如何确保Web应用程序在迁移后可以继续调用第三方API?
选项
A. Associate a block of customer-owned public IP addresses to the VPC. Enable public IP addressing for public subnets in the VPC.
中文翻译:
将客户拥有的公共 IP 地址块关联到 VPC。为 VPC 中的公有子网启用公有 IP 寻址。
B. Register a block of customer-owned public IP addresses in the AWS account. Create Elastic IP addresses from the address block and assign them to the NAT gateways in the VPC.
中文翻译:
在 AWS 账户中注册客户拥有的公共 IP 地址块。从地址块创建弹性 IP 地址并将其分配给 VPC 中的 NAT 网关。
C. Create Elastic IP addresses from the block of customer-owned IP addresses. Assign the static Elastic IP addresses to the ALB.
中文翻译:
从客户拥有的 IP 地址块创建弹性 IP 地址。将静态弹性 IP 地址分配给 ALB。
D. Register a block of customer-owned public IP addresses in the AWS account. Set up AWS Global Accelerator to use Elastic IP addresses from the address block. Set the ALB as the accelerator endpoint.
中文翻译:
在 AWS 账户中注册客户拥有的公共 IP 地址块。设置 AWS Global Accelerator 以使用地址块中的弹性 IP 地址。将 ALB 设置为加速器端点。
答案
B
解析
正确答案:B 解析: 本题应选择 B。 正确选项: B. 在 AWS 账户中注册客户拥有的公共 IP 地址块。从地址块创建弹性 IP 地址并将其分配给 VPC 中的 NAT 网关。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:VPC、EC2、Global Accel...