考题解析 | 使用 Amazon Aurora 只读副本提供跨区域数据读取工作负载


  题目

An online retail company based in the United States plans to expand its operations to Europe and Asia in the next six months. Its product currently runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Amazon EC2 Auto Scaling group across multiple Availability Zones. All data is stored in an Amazon Aurora database instance. When the product is deployed in multiple regions, the company wants a single product catalog across all regions, but for compliance purposes, its customer information and purchases must be kept in each region.
How should the company meet these requirements with the LEAST amount of application changes?

A. Use Amazon Redshift for the product catalog and Amazon DynamoDB tables for the customer information and purchases.
B. Use Amazon DynamoDB global tables for the product catalog and regional tables for the customer information and purchases.
C. Use Aurora with read replicas for the product catalog and additional local Aurora instances in each region for the customer information and purchases.
D. Use Aurora for the product catalog and Amazon DynamoDB global tables for the customer information and purchases.

  参考答案

C

  参考解析

技巧:排除明显错误选项,在没有明显错误的选项中选择最合理的选项。

某美国在线零售公司,其现有产品运行在Amazon EC2实例上,这些实例位于一个Application Load Balancer之后,并且这些实例在一个Amazon EC2 Auto Scaling组中跨多个可用区运行。该公司计划在未来六个月内向欧洲和亚洲扩张,当产品部署到多个区域时,公司希望有一个跨所有区域的产品目录,但出于合规目的,客户信息和购买记录必须保存在各个区域内。

A. 不正确。使用 Amazon Redshift 用于产品目录,Amazon DynamoDB 表用于客户信息和购买记录。Amazon Redshift 主要用于大数据分析和数据仓库,可能不是频繁访问的产品目录的最佳选择,除非目录非常大且需要分析能力。DynamoDB是NoSQL数据库,适合扩展和性能,但使用它可能需要更改数据模型和应用程序代码。
B. 不正确。使用Amazon DynamoDB全局表用于产品目录,区域表用于客户信息和购买记录。DynamoDB全局表提供跨多个区域的多主数据库,自动复制,适合全球访问的产品目录。但是,将产品目录切换到DynamoDB全局表,同时为客户信息和购买记录使用区域表,可能会引入复杂性,并需要更改数据访问和管理方式。
C. 正确。使用 Aurora 及其读副本用于产品目录,并在每个区域使用额外的本地 Aurora实例用于客户信息和购买记录。Amazon Aurora 是关系数据库服务,与 MySQL 和PostgreSQL 兼容。由于公司已经在使用 Aurora,这个选项可以最大限度地减少应用程序和数据模型的更改。 使用 Aurora 及其跨区域的读副本可以确保产品目录在全球范围内可用且延迟低。在每个区域使用本地 Aurora 实例来存储客户信息和购买记录,符合合规要求并确保数据本地化。
D. 不正确。使用 Aurora 用于产品目录,Amazon DynamoDB 全局表用于客户信息和购买记录。这种混合使用关系数据库(Aurora)和 NoSQL 数据库(DynamoDB)的方法可能会导致应用程序逻辑、数据建模和可能的开发工作流程发生重大变化。DynamoDB 全局表用于客户信息和购买记录将引入与Aurora不同的数据模型和访问模式。