SAP-C02 学习助手

SAP-C02 第 479 题

CloudFront RDS Config ECS EKS

题目

A company needs to improve the reliability of its ticketing application. The application runs on an Amazon Elastic Container Service (Amazon ECS) cluster. The company uses Amazon CloudFront to serve the application. A single ECS service of the ECS cluster is the CloudFront distribution’s origin. The application allows only a specific number of active users to enter a ticket purchasing flow. These users are identified by an encrypted attribute in their JSON Web Token (JWT). All other users are redirected to a waiting room module until there is available capacity for purchasing. The application is experiencing high loads. The waiting room module is working as designed, but load on the waiting room is disrupting the applications availability. This disruption is negatively affecting the application's ticket sale transactions. Which solution will provide the MOST reliability for ticket sale transactions during periods of high load?

中文翻译:
公司需要提高其票务应用程序的可靠性。该应用程序在 Amazon Elastic Container Service (Amazon ECS) 集群上运行。该公司使用 Amazon CloudFront 来为该应用程序提供服务。 ECS 集群的单个 ECS 服务是 CloudFront 发行版的起源。该应用程序仅允许特定数量的活跃​​用户进入购票流程。这些用户通过其 JSON Web 令牌 (JWT) 中的加密属性进行标识。所有其他用户都会被重定向到等候室模块,直到有可用容量进行购买。该应用程序正在经历高负载。候诊室模块按设计工作,但候诊室的负载正在扰乱应用程序的可用性。这种中断对应用程序的门票销售交易产生了负面影响。哪种解决方案将为高负载期间的门票销售交易提供最高的可靠性?

选项

A. Create a separate service in the ECS cluster for the waiting room. Use a separate scaling configuration. Ensure that the ticketing service uses the JWT information and appropriately forwards requests to the waiting room service.

中文翻译:
在 ECS 集群中为候诊室创建单独的服务。使用单独的缩放配置。确保票务服务使用 JWT 信息并将请求适当转发到候诊室服务。

B. Move the application to an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. Split the waiting room module into a pod that is separate from the ticketing pod. Make the ticketing pod part of a StatefulSet. Ensure that the ticketing pod uses the JWT information and appropriately forwards requests to the waiting room pod.

中文翻译:
将应用程序移至 Amazon Elastic Kubernetes Service (Amazon EKS) 集群。将候诊室模块拆分为与售票舱分开的舱。使票务 Pod 成为 StatefulSet 的一部分。确保票务 Pod 使用 JWT 信息并将请求正确转发到等候室 Pod。

C. Create a separate service in the ECS cluster for the waiting room. Use a separate scaling configuration. Create a CloudFront function that inspects the JWT information and appropriately forwards requests to the ticketing service or the waiting room service.

中文翻译:
在 ECS 集群中为候诊室创建单独的服务。使用单独的缩放配置。创建一个 CloudFront 函数,用于检查 JWT 信息并将请求适当地转发到票务服务或候诊室服务。

D. Move the application to an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. Split the waiting room module into a pod that is separate from the ticketing pod. Use AWS App Mesh by provisioning the App Mesh controller for Kubernetes. Enable mTLS authentication and service-to-service authentication for communication between the ticketing pod and the waiting room pod. Ensure that the ticketing pod uses the JWT information and appropriately forwards requests to the waiting room pod.

中文翻译:
将应用程序移至 Amazon Elastic Kubernetes Service (Amazon EKS) 集群。将候诊室模块拆分为与售票舱分开的舱。通过为 Kubernetes 预置 App Mesh 控制器来使用 AWS App Mesh。为票务容器和候诊室容器之间的通信启用 mTLS 身份验证和服务到服务身份验证。确保票务 Pod 使用 JWT 信息并将请求正确转发到等候室 Pod。

答案

C

解析

正确答案:C 解析: 本题应选择 C。 正确选项: C. 在 ECS 集群中为候诊室创建单独的服务。使用单独的缩放配置。创建一个 CloudFront 函数,用于检查 JWT 信息并将请求适当地转发到票务服务或候诊室服务。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括...

登录后查看完整解析