Skip to content
Go back

SAA 考试每日练习 - 2024/12/02

| 0 Views Edit page

来源:Amazon AWS Certified Solutions Architect - Associate SAA-C03 Exam
15 题 (No.221 ~ No.235) 只记录了 4 道首次碰到的、错误的或有疑问的题目,仅供自己复习使用。
如果侵权请联系删除。


🌟 单词:

  1. demonstrationn. 示范,演示,证明;表示,表露;示威游行;示威集会
  2. isolatedadj. 偏远的,孤立的,孤独的 | v. 分离

一、Amazon Route 53 routing policy

A company recently migrated its web application to AWS by rehosting the application on Amazon EC2 instances in a single AWS Region. The company wants to redesign its application architecture to be highly available and fault tolerant. Traffic must reach all running EC2 instances randomly.
Which combination of steps should the company take to meet these requirements? (Choose two.)

  1. ❌ Create an Amazon Route 53 failover routing policy.
  2. Create an Amazon Route 53 weighted routing policy.
  3. ✅ Create an Amazon Route 53 multivalue answer routing policy.
  4. Launch three EC2 instances: two instances in one Availability Zone and one instance in another Availability Zone.
  5. ✅ Launch four EC2 instances: two instances in one Availability Zone and two instances in another Availability Zone.

✨ 关键词:Traffic must reach all running EC2 instances randomly

1️⃣ 5️⃣ ❌ -> 3️⃣ 5️⃣ ✅

💡 解析:应用要高可用和容灾,同时流量随机到每个 EC2 实例。
5️⃣ 肯定是对的,但是要来过一下路由策略:选择路由策略

  • 简单路由策略 (Simple routing policy)
  • 故障转移路由策略 (Failover routing policy) - 主动-被动 (active-passive) 故障转移的情况下使用。

    故障转移路由允许您将流量路由到某个资源 (如果该资源正常) 或路由到其他资源 (如果第一个资源不正常)。主和辅助记录可以将流量路由到从配置为网站的 Amazon S3 存储桶到复杂记录树的任何目的地

  • 地理位置路由策略 (Geolocation routing policy)
  • 地理位置临近度路由策略 (Geoproximity routing policy)
  • 延迟路由策略 (Latency routing policy)
  • 基于 IP 的路由策略 (IP-based routing policy)
  • 多值应答路由策略 (Multivalue answer routing policy) - 如果您想要让 Route 53 用随机选择的正常记录(最多八条)响应 DNS 查询,则可以使用该策略。在私有托管区域中,可以使用多值应答路由创建记录。
  • 加权路由策略 (Weighted routing policy)

当前场景下是由 3️⃣ 正确。

👨‍👨‍👦‍👦 社区讨论:C. A multivalue answer routing policy in Route 53 allows you to configure multiple values for a DNS record,and Route 53 responds to DNS queries with multiple random values.Thisenables the distribution of traffic randomlyamong the available EC2 instances.
E. By launching EC2 instances in different AZs, you achieve high availabilityand fault tolerance. Launching four instances (two in each AZ) ensures that there are enough resources to handle the traffic load and maintain the desired level of availability.

A. Failover routing is designed to direct traffic to a backup resource or secondary location only when the primary resource or location is unavailable.
B. Although a weighted routing policyallows you to distribute traffic across multiple EC2 instances, it does not ensure random distribution.
D. While launching instances in multiple AZs is important for fault tolerance, having only three instances does not provide an even distribution of traffic. With only three instances, the traffic may not be evenly distributed, potentially leading to imbalanced resource utilization.


二、Petabytes size of data

A media company collects and analyzes user activity data on premises. The company wants to migrate this capability to AWS.
The user activity data store will continue to grow and will be petabytes in size. The company needs to build a highly available data ingestion solution that facilitates on-demand analytics of existing data and new data with SQL.
Which solution will meet these requirements with the LEAST operational overhead?

  1. ❌ Send activity data to an Amazon Kinesis data stream. Configure the stream to deliver the data to an Amazon S3 bucket.
  2. ✅ Send activity data to an Amazon Kinesis Data Firehose delivery stream. Configure the stream to deliver the data to an Amazon Redshift cluster.
  3. Place activity data in an Amazon S3 bucket. Configure Amazon S3 to run an AWS Lambda function on the data as the data arrives in the S3 bucket.
  4. Create an ingestion service on Amazon EC2 instances that are spread across multiple Availability Zones. Configure the service to forward data to an Amazon RDS Multi-AZ database.

✨ 关键词:petabytes、data storage、analytics with SQL

1️⃣ ❌ -> 2️⃣ ✅

💡 解析:PB 级别的数据存储与分析。
S3 当然是能存储 PB 级别的数据的,但是存储加分析显然使用 Redshift 更合适:Amazon Redshift 定价

使用 Amazon Redshift 时,您可以从小规模开始(每小时 0.25 美元),逐渐扩展到 PB 级数据和数千个并发用户。

社区讨论中提到了 Kinesis Data Stream 存储数据使用分片,数据增多时需要手动增加分片,这并不准确:容量模式

若采用按需模式,Kinesis Data Streams 会自动管理分片来提供必要的吞吐量。您只需为实际使用的吞吐量付费,Kinesis Data Streams 会在工作负载增加或减少时自动适应吞吐量需求。

若采用预置模式,您必须为数据流指定分片数。数据流的总容量是其分片容量的总和。您可以根据需要增加或减少数据流中的分片数,并且按小时费率支付分片数的费用。

Amazon 总是推荐选择集成度更高、且能符合题目需求的服务。

👨‍👨‍👦‍👦 社区讨论:Petabyte scale- Redshift

1 - Kinesis Data Stream providesa fully managed platform for custom data processing and analysis. Or we can say that used for custom data processing and analysis which required more manual intervention.
2 - Kinesis Data Firehose simplifies the delivery of streaming data to various destinations without the need for complex transformations.
Option B is more suitable for the given scenario.


三、Notify RDP or SSH access

A company runs demonstration演示 environments for its customers on Amazon EC2 instances. Each environment is isolated孤立的 in its own VPC. The company’s operations team needs to be notified when RDP or SSH access to an environment has been established.

  1. ❌ Configure Amazon CloudWatch Application Insights to create AWS Systems Manager OpsItems when RDP or SSH access is detected.
  2. Configure the EC2 instances with an IAM instance profile that has an IAM role with the AmazonSSMManagedInstanceCore policy attached.
  3. ✅ Publish VPC flow logs to Amazon CloudWatch Logs. Create required metric filters. Create an Amazon CloudWatch metric alarm with a notification action for when the alarm is in the ALARM state.
  4. Configure an Amazon EventBridge rule to listen for events of type EC2 Instance State-change Notification. Configure an Amazon Simple Notification Service (Amazon SNS) topicas a target. Subscribe the operations team to the topic.

✨ 关键词:

1️⃣ ❌ -> 3️⃣ ✅

💡 解析:需要监控对 EC2 实例的 SSH 和 RDP 连接。
我并不了解 CloudWatch Application Insights(见解) 实际上能完成哪些工作,来看下:Amazon CloudWatch Application Insights 是什么?

CloudWatch Application Insights 可帮助您监控使用 Amazon EC2 实例以及其他应用程序资源的应用程序。它可在应用程序资源和技术堆栈(例如,Microsoft SQL Server 数据库、Web (IIS) 和应用程序服务器、操作系统、负载均衡器和队列)中识别和设置关键指标、日志和警报。它会持续监控指标和日志,以检测异常情况和错误并将它们关联起来。

看上去它是用以监控警告和错误信息,并将其关联起来的。并不适用于当前的 SSH 和 RDP 登录场景。
而 4️⃣ 错在 EC2 的实例中不会反映登录状态:Amazon EC2 实例的状态更改事件

state 可使用的值为:

  • pending
  • running
  • stopping
  • stopped
  • shutting-down
  • terminated

当您启用或启动实例时,它会进入 pending 状态,然后进入 running 状态。当您停止实例时,它会进入 stopping 状态,然后进入 stopped 状态。当您终止实例时,它会进入 shutting-down 状态,然后进入 terminated 状态。

最终答案只剩 3️⃣ 了:How to Monitor and Visualize Failed SSH Access Attempts to Amazon EC2 Linux Instances

监控 SSH 和 RDP 登录的最佳实践

👨‍👨‍👦‍👦 社区讨论:By publishing VPC flow logs to CloudWatch Logsand creating metric filters to detect RDP orSSH access, the operations team can configure an CloudWatch metric alarm to notify them when the alarm is triggered.This will provide the desired notification when RDP orSSH access to an environment isestablished.

Option A is incorrect because CloudWatch Application Insights is not designed for detecting RDP or SSH access.
Option B isalso incorrect because configuring an IAM instance profile with the AmazonSSMManagedInstanceCore policy does not directlyaddress the requirement of notifying the operations team when RDP orSSH access occurs.
Option D is wrong beacuse configuring an EventBridge rule to listen for EC2 Instance State-change Notification eventsand using an SNS topic asa target will notify the operations team about changes in the instance state, such as starting or stopping instances. However, it does not specifically detect or notify when RDP orSSH access isestablished, which is the requirement stated in the question.


四、Database migration

A company is moving its on-premises Oracle database to Amazon Aurora PostgreSQL. The database has several applications that write to the same tables. The applications need to be migrated one by one with a month in between each migration.
Management has expressed concerns that the database has a high number of reads and writes. The data must be kept in sync across both databases throughout the migration.
What should a solutions architect recommend?

  1. Use AWS DataSync for the initial migration. Use AWS Database Migration Service (AWS DMS) to create a change data capture (CDC) replication task and a table mapping to select all tables.
  2. Use AWS DataSync for the initial migration. Use AWS Database Migration Service (AWS DMS) to create a full load plus change data capture (CDC) replication task and a table mapping to select all tables.
  3. ✅ Use the AWS Schema Conversion Tool with AWS Database Migration Service (AWS DMS) using a memory optimized replication instance. Create a full load plus change data capture (CDC) replication task and a table mapping to select all tables.
  4. Use the AWS Schema Conversion Tool with AWS Database Migration Service (AWS DMS) using a compute optimized replication instance. Create a full load plus change data capture (CDC) replication task and a table mapping to select the largest tables.

✨ 关键词:Oracle database to Amazon Aurora PostgreSQL、high number of reads and writes

3️⃣ ✅

💡 解析:要将数据库从本地 Oracle 迁移到云上的 PostgreSQL,并且需要改善性能。
需要适用 AWS Schema Conversion Tool 来处理数据库类型的转换。
我比较好奇 change data capture (CDC) 是什么:什么是变更数据捕获(CDC)?

变更数据捕获是一种经过验证的数据集成模式,用于跟踪数据更改,并向必须响应这些更改的其他系统和服务发出警报。变更数据捕获有助于确保所有依赖数据的系统数据同步,功能正常。

它在 DMS 中的使用:使用 AWS DMS 为持续复制创建任务

您可以创建一个 AWS DMS 任务来捕获源数据存储的持续更改。您可以在迁移数据时执行此捕获。您还可以创建一个任务,以便在初始(完全加载)迁移到支持的目标数据存储完成后捕获持续更改。此过程称为持续复制或更改数据捕获 (CDC)。AWS DMS 在从源数据存储复制持续更改时使用此过程。此过程的工作方式是使用数据库引擎的原生 API 来收集对数据库日志的更改。

有两种类型的持续复制任务:

  • Full load plus CDC – The task migrates existing data and then updates the target database based on changes to the source database.
  • CDC only – The task migrates ongoing changes after you have data on your target database.

我认为这是代表着:Full load plus CDC 包含初始化行为,CDC only 不包含。也能与题目中的操作对应。

👨‍👨‍👦‍👦 社区讨论:C : because we need SCT to convert from Oracle to PostgreSQL,and we need memory optimized machine for databases not compute optimized.


Edit page