Skip to content
Go back

SAA 考试每日练习 - 2024/11/16

| 0 Views Edit page

来源:AWS解决方案架构师认证-助理级(SAA-C03)仿真练习题
7 题,免费题库,题目质量不高,仅供自己复习使用。
如果侵权请联系删除。


🌟 单词:

  1. retainedv. 保留;保持;保存
  2. indefinitelyadv. 无限期地
  3. concurrentlyadv. (正式)同时发生或完成地
  4. branchn. 树枝;(公司或组织的)分店,分部;(政府或公安机关的)部门,机构;(学科或家族的)分支 | v. 发出新枝;岔开,分岔;出现分歧
  5. effortn. 力气;精力;努力;费力,痛苦;有组织的活动
  6. overheadadv. 在头顶上,在空中,在高处 | adj. 在头上的,高架的 | n. 经常性开支,营运费用
  7. fetchv. (去)拿来,(去)请来,售得(…的价钱) | n. 拿,取;取物的距离;风浪区;诡计,计谋
  8. legacyn. 遗产, 遗赠财物, 遗留问题, 后遗症 | adj. (计算机系统或产品)已停产的

一、Amazon S3

A company runs an application on a group of Amazon Linux EC2 instances. The application writes log files using standard API calls. For compliance reasons, all log files must be retained indefinitely and will be analyzed by a reporting tool that must access all files concurrently.
Which storage service should a solutions architect use to provide the MOST cost-effective solution?

  1. Amazon EBS
  2. Amazon EFS
  3. Amazon EC2 instance store
  4. ✅ Amazon S3

✨ 关键词:API calls、retained indefinitely、analyzed by a reporting tool、MOST cost-effective

4️⃣ ✅

💡 解析:应用程序运行在一组 EC2 实例上,通过 API 写日志,为了审计原因需要无限期保留日志,并将用来分析,要求迅速能被使用。还要是最便宜的方案。
按量付费的 EFSS3 似乎都可以,不过由于可以使用 S3 Select 等工具进行存储桶检索,因此更合适。

对比下 EFSS3 的价格:

存储类型EFSS3
Standard$0.30$0.023
IA$0.016$0.0125
Archive$0.008$0.00099 ~ $0.004
且从详细价格对照表上来看,S3 总是更加便宜。

二、AWS Snowball

A solutions architect is tasked with transferring 750 TB of data from a network-attached file system located at a branch office Amazon S3 Glacier. The solution must avoid saturating the branch office’s low-bandwidth internet connection.
What is the MOST cost-effective solution?

  1. Create a site-to-site VPN tunnel to an Amazon S3 bucket and transfer the files directly. Create a bucket VPC endpoint.
  2. Order 10 AWS Snowball appliances and select an S3 Glacier vault as the destination. Create a bucket policy to enforce VPC endpoint.
  3. Mount the network-attached file system to Amazon S3 and copy the files directly. Create a lifecycle policy to S3 objects to Amazon S3 Glacier.
  4. ✅ Order 10 AWS Snowball appliances and select an Amazon S3 bucket as the destination. Create a lifecycle policy to transition the S3 objects to Amazon S3 Glacier.

✨ 关键词:750 TB of data、low-bandwidth internet connection

4️⃣ ✅

💡 解析:公司需要在低网络带宽的前提下,将 750 TB 的文件存放到 S3 归档存储中。并使用最便宜的方式。
肯定需要使用 AWS Snowball 家族产品,而 2️⃣ 中的 VPC endpoint 不知所云,排除掉后选 4️⃣。


三、Amazon Kinesis Data Firehose

A company captures clickstream data from multiple websites and analyzes it using batch processing. The data is loaded nightly into Amazon Redshift and is consumed by business analysts. The company wants to move towards near-real-time data processing for timely insights. The solution should process the streaming data with minimal effort and operational overhead.
Which combination of AWS services are MOST cost-effective for this solution? (Choose two.)
1. Amazon EC2
2. ✅ AWS Lambda
3. ❌ Amazon Kinesis Data Streams
4. ✅ Amazon Kinesis Data Firehose
5. Amazon Kinesis Data Analytics

✨ 关键词:data from multiple websites、operational overhead

2️⃣ 3️⃣ ❌ -> 2️⃣ 4️⃣ ✅

💡 解析:从多个网站收集数据并通过批处理分析,数据每晚会被加载到 Redshift 数据湖中,公司希望近乎实时地处理这些数据。需要使用最少操作的方式。
由于 Amazon Data Firehose 官方文档中就介绍了它和 Lambda 整合处理数据流的功能,更简单,因此在这里更加合适。

Amazon Kinesis Data Streams 是一种可大规模扩展、高度持久的数据摄取和处理服务,针对流式传输数据进行了优化。您可以配置数以万计的数据创建器,连续不断地将数据传输到 Kinesis 数据流。数据将在几毫秒内传输到您的 Amazon Kinesis 应用程序,这些应用程序将按生成顺序接收数据记录。
Amazon Kinesis Data Streams 与多项 AWS 服务集成,其中包括以近乎实时的方式转换流数据并将其传输到 Amazon S3 等数据湖的 Amazon Kinesis Data Firehose、用于托管流处理的适用于 Apache Flink 的亚马逊托管服务、用于事件或记录处理的 AWS Lambda、用于私有连接的 AWS PrivateLink、用于指标和日志处理的 Amazon Cloudwatch 以及用于服务器端加密的 AWS KMS。


四、Scaling Based on Amazon SQS

A solutions architect is designing the cloud architecture for a new application being deployed on AWS. The process should run in parallel while adding and removing application nodes as needed based on the number of jobs to be processed. The processor application is stateless. The solutions architect must ensure that the application is loosely coupled and the job items are durably stored.
Which design should the solutions architect use?

  1. Create an Amazon SNS topic to send the jobs that need to be processed. Create an Amazon Machine Image (AMI) that consists of the processor application. Create a launch configuration that uses the AMI. Create an Auto Scaling group using the launch configuration. Set the scaling policy for the Auto Scaling group to add and remove nodes based on CPU usage.
  2. ❌ Create an Amazon SQS queue to hold the jobs that need to be processed. Create an Amazon Machine Image (AMI) that consists of the processor application. Create a launch configuration that uses the AMI. Create an Auto Scaling group using the launch configuration. Set the scaling policy for the Auto Scaling group to add and remove nodes based on network usage.
  3. ✅ Create an Amazon SQS queue to hold the jobs that need to be processed. Create an Amazon Machine Image (AMI) that consists of the processor application. Create a launch template that uses the AMI. Create an Auto Scaling group using the launch template. Set the scaling policy for the Auto Scaling group to add and remove nodes based on the number of items in the SQS queue.
  4. Create an Amazon SNS topic to send the jobs that need to be processed. Create an Amazon Machine Image (AMI) that consists of the processor application. Create a launch template that uses the AMI. Create an Auto Scaling group using the launch template. Set the scaling policy for the Auto Scaling group to add and remove nodes based on the number of messages published to the SNS topic.

✨ 关键词:based on the number of jobs to be processed、stateless

3️⃣ ❌ -> 2️⃣ ✅

💡 解析:There are some scenarios where you might think about scaling in response to activity in an Amazon SQS queue. For example, suppose that you have a web app that lets users upload images and use them online. In this scenario, each image requires resizing and encoding before it can be published. The app runs on EC2 instances in an Auto Scaling group, and it’s configured to handle your typical upload rates. Unhealthy instances are terminated and replaced to maintain current instance levels at all times. The app places the raw bitmap data of the images in an SQS queue for processing. It processes the images and then publishes the processed images where they can be viewed by users. The architecture for this scenario works well if the number of image uploads doesn’t vary over time. But if the number of uploads changes over time, you might consider using dynamic scaling to scale the capacity of your Auto Scaling group.
Reference:
https://aws.amazon.com/sqs/#:~:text=Amazon%20SQS%20leverages%20the%20AWS,queues%20provide%20nearly%20unlimited%20throughput
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html


五、Network Load Balancer

A gaming company has multiple Amazon EC2 instances in a single Availability Zone for its multiplayer game that communicates with users on Layer 4. The chief technology officer (CTO) wants to make the architecture highly available and cost-effective.
Which should a solutions architect do to meet these requirements? (Choose two.)?

  1. Increase the number of EC2 instances.
  2. Decrease the number of EC2 instances.
  3. ✅ Configure a Network Load Balancer in front of the EC2 instances.
  4. Configure an Application Load Balancer in front of the EC2 instances.
  5. ✅ Configure an Auto Scaling group to add or remove instances in multiple Availability Zones automatically.

✨ 关键词:single Availability Zone、highly available、game server

3️⃣ 5️⃣ ✅

💡 解析:A Network Load Balancer functions at the fourth layer of the Open Systems Interconnection (OSI) model. It can handle millions of requests per second. After the load balancer receives a connection request, it selects a target from the target group for the default rule. It attempts to open a TCP connection to the selected target on the port specified in the listener configuration.
When you enable an Availability Zone for the load balancer, Elastic Load Balancing creates a load balancer node in the Availability Zone. By default, each load balancer node distributes traffic across the registered targets in its Availability Zone only. If you enable cross-zone load balancing, each load balancer node distributes traffic across the registered targets in all enabled Availability Zones. For more information, see Availability Zones.
If you enable multiple Availability Zones for your load balancer and ensure that each target group has at least one target in each enabled Availability Zone, this increases the fault tolerance of your applications. For example, if one or more target groups does not have a healthy target in an Availability Zone, we remove the IP address for the corresponding subnet from DNS, but the load balancer nodes in the other Availability Zones are still available to route traffic. If a client doesn’t honor the time-to-live (TTL) and sends requests to the IP address after it is removed from DNS, the requests fail.
For TCP traffic, the load balancer selects a target using a flow hash algorithm based on the protocol, source IP address, source port, destination IP address, destination port, and TCP sequence number. The TCP connections from a client have different source ports and sequence numbers, and can be routed to different targets. Each individual TCP connection is routed to a single target for the life of the connection.
For UDP traffic, the load balancer selects a target using a flow hash algorithm based on the protocol, source IP address, source port, destination IP address, and destination port. A UDP flow has the same source and destination, so it is consistently routed to a single target throughout its lifetime. Different UDP flows have different source IP addresses and ports, so they can be routed to different targets.
An Auto Scaling group contains a collection of Amazon EC2 instances that are treated as a logical grouping for the purposes of automatic scaling and management. An Auto Scaling group also enables you to use Amazon EC2 Auto Scaling features such as health check replacements and scaling policies. Both maintaining the number of instances in an Auto Scaling group and automatic scaling are the core functionality of the Amazon EC2 Auto Scaling service.
The size of an Auto Scaling group depends on the number of instances that you set as the desired capacity. You can adjust its size to meet demand, either manually or by using automatic scaling. An Auto Scaling group starts by launching enough instances to meet its desired capacity. It maintains this number of instances by performing periodic health checks on the instances in the group. The Auto Scaling group continues to maintain a fixed number of instances even if an instance becomes unhealthy. If an instance becomes unhealthy, the group terminates the unhealthy instance and launches another instance to replace it.
Reference:
https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html
https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html


六、Amazon RDS Read Replicas

A company’s website is using an Amazon RDS MySQL Multi-AZ DB instance for its transactional data storage. There are other internal systems that query this DB instance to fetch data for internal batch processing. The RDS DB instance slows down significantly the internal systems fetch data. This impacts the website’s read and write performance, and the users experience slow response times.
Which solution will improve the website’s performance?

  1. Use an RDS PostgreSQL DB instance instead of a MySQL database.
  2. Use Amazon ElastiCache to cache the query responses for the website.
  3. Add an additional Availability Zone to the current RDS MySQL Multi.AZ DB instance.
  4. ✅ Add a read replica to the RDS DB instance and configure the internal systems to query the read replica.

✨ 关键词:Amazon RDS MySQL、只读副本

4️⃣ ✅

💡 解析:You can reduce the load on your source DB instance by routing read queries from your applications to the read replica. Read replicas allow you to elastically scale out beyond the capacity constraints of a single DB instance for read-heavy database workloads. Because read replicas can be promoted to master status, they are useful as part of a sharding implementation.
To further maximize read performance, Amazon RDS for MySQL allows you to add table indexes directly to Read Replicas, without those indexes being present on the master.
Reference:
https://aws.amazon.com/rds/features/read-replicas


七、Amazon Kinesis Data Firehose

A company has a legacy application that process data in two parts. The second part of the process takes longer than the first, so the company has decided to rewrite the application as two microservices running on Amazon ECS that can scale independently.
How should a solutions architect integrate the microservices?
1. Implement code in microservice 1 to send data to an Amazon S3 bucket. Use S3 event notifications to invoke microservice 2.
2. Implement code in microservice 1 to publish data to an Amazon SNS topic. Implement code in microservice 2 to subscribe to this topic.
3. ✅ Implement code in microservice 1 to send data to Amazon Kinesis Data Firehose. Implement code in microservice 2 to read from Kinesis Data Firehose.
4. ❌ Implement code in microservice 1 to send data to an Amazon SQS queue. Implement code in microservice 2 to process messages from the queue.

✨ 关键词:解耦、队列

4️⃣ ❌ -> 3️⃣ ✅

💡 解析:无。
程序 2 的处理速度比 1 的慢,但是对于 Data(数据)而非 Message 或 Task 似乎 Amazon Kinesis Data 系更加合适。


Edit page