Fork me on GitHub

黄博文的地盘

我是一个程序员.

AWS的SysOps认证考试样题解析

| Comments

刚考过了AWS的developer认证,顺手做了一下SysOps的样题。以下是题目和答案。


When working with Amazon RDS, by default AWS is responsible for implementing which two management-related activities? (Pick 2 correct answers)

  1. Importing data and optimizing queries

  2. Installing and periodically patching the database software

  3. Creating and maintaining automated database backups with a point-in-time recovery of up to five minutes

  4. Creating and maintaining automated database backups in compliance with regulatory long-term retention requirements

答案:B C

参考文档:http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.html


You maintain an application on AWS to provide development and test platforms for your developers.

Currently both environments consist of an m1.small EC2 instance. Your developers notice performance degradation as they increase network load in the test environment.

How would you mitigate these performance issues in the test environment?

  1. Upgrade the m1.small to a larger instance type

  2. Add an additional ENI to the test instance

  3. Use the EBS optimized option to offload EBS traffic

  4. Configure Amazon Cloudwatch to provision more network bandwidth when network utilization exceeds 80%

答案:A

解析:添加ENI并不会增加带宽;m1.small机器类型没有EBS optimized option;network utilisation与机器类型相关,无法对m1.small provision更多的带宽


Per the AWS Acceptable Use Policy, penetration testing of EC2 instances:

  1. may be performed by the customer against their own instances, only if performed from EC2 instances.

  2. may be performed by AWS, and is periodically performed by AWS.

  3. may be performed by AWS, and will be performed by AWS upon customer request.

  4. are expressly prohibited under all circumstances.

  5. may be performed by the customer against their own instances with prior authorization from AWS.

答案:E

参考文档:https://aws.amazon.com/security/penetration-testing/


You have been tasked with identifying an appropriate storage solution for a NoSQL database that requires random I/O reads of greater than 100,000 4kB IOPS.

Which EC2 option will meet this requirement?

  1. EBS provisioned IOPS

  2. SSD instance store

  3. EBS optimized instances

  4. High Storage instance configured in RAID 10

答案:B

解析:这道题只有SSD instance store能提供10万的IOPS


Instance A and instance B are running in two different subnets A and B of a VPC. Instance A is not able to ping instance B.

What are two possible reasons for this? (Pick 2 correct answers)

  1. The routing table of subnet A has no target route to subnet B

  2. The security group attached to instance B does not allow inbound ICMP traffic

  3. The policy linked to the IAM role on instance A is not configured correctly

  4. The NACL on subnet B does not allow outbound ICMP traffic

答案:B D

解析:同一个VPC下的所有subnet默认可以相互连接,所以A不对;ping连接不需要什么AWS权限,所以C也不对。而控制机器访问有两层,一层是给subnet指定的ACL,另一层是给机器指定的SG。


Your web site is hosted on 10 EC2 instances in 5 regions around the globe with 2 instances per region.

How could you configure your site to maintain site availability with minimum downtime if one of the 5 regions was to lose network connectivity for an extended period of time?

  1. Create an Elastic Load Balancer to place in front of the EC2 instances. Set an appropriate health check on each ELB.

  2. Establish VPN Connections between the instances in each region. Rely on BGP to failover in the case of a region wide connectivity outage

  3. Create a Route 53 Latency Based Routing Record Set that resolves to an Elastic Load Balancer in each region. Set an appropriate health check on each ELB.

  4. Create a Route 53 Latency Based Routing Record Set that resolves to Elastic Load Balancers in each region and has the Evaluate Target Health flag set to true.

答案:D

参考文档:http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html

解析:只有开启了Evaluate Target Health flag,Route53才会根据健康情况进行路由


You run a stateless web application with the following components: Elastic Load Balancer (ELB), 3 Web/Application servers on EC2, and 1 MySQL RDS database with 5000 Provisioned IOPS. Average response time for users is increasing. Looking at CloudWatch, you observe 95% CPU usage on the Web/Application servers and 20% CPU usage on the database. The average number of database disk operations varies between 2000 and 2500.

Which two options could improve response times? (Pick 2 correct answers)

  1. Choose a different EC2 instance type for the Web/Application servers with a more appropriate CPU/memory ratio

  2. Use Auto Scaling to add additional Web/Application servers based on a CPU load threshold

  3. Increase the number of open TCP connections allowed per web/application EC2 instance

  4. Use Auto Scaling to add additional Web/Application servers based on a memory usage threshold

答案:A B

解析:这里是application机器CPU过载,解决方式是要不加强application机器性能,要不增加更多的application机器,C没有用,D是基于内存门槛,所以都不对


Which features can be used to restrict access to data in S3? (Pick 2 correct answers)

  1. Create a CloudFront distribution for the bucket.

  2. Set an S3 bucket policy.

  3. Use S3 Virtual Hosting.

  4. Set an S3 ACL on the bucket or the object.

  5. Enable IAM Identity Federation.

答案:B D

参考文档:http://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html


You need to establish a backup and archiving strategy for your company using AWS. Documents should be immediately accessible for 3 months and available for 5 years for compliance reasons.

Which AWS service fulfills these requirements in the most cost effective way?

  1. Use StorageGateway to store data to S3 and use life-cycle policies to move the data into Redshift for long-time archiving

  2. Use DirectConnect to upload data to S3 and use IAM policies to move the data into Glacier for longtime archiving

  3. Upload the data on EBS, use life-cycle policies to move EBS snapshots into S3 and later into Glacier for long-time archiving

  4. Upload data to S3 and use life-cycle policies to move the data into Glacier for long-time archiving

答案:D

参考文档:http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html

解析:S3可以存放经常使用的文档,然后存档文件可以使用life-cycle policies放置到Glacier上


Given the following IAM policy:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:Get*", "s3:List*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::corporate_bucket/*"
}
]
}

What does the IAM policy allow? (Pick 3 correct answers)

  1. The user is allowed to read objects from all S3 buckets owned by the account

  2. The user is allowed to write objects into the bucket named ‘corporate_bucket’

  3. The user is allowed to change access rights for the bucket named ‘corporate_bucket’

  4. The user is allowed to read objects in the bucket named ‘corporate_bucket’ but not allowed to list the objects in the bucket

  5. The user is allowed to read objects from the bucket named ‘corporate_bucket’

答案:A B E

解析:AWS的权限认证遵循最小化原则。即:默认情况都是deny的;显式allow会覆盖默认deny;显式deny会覆盖显式allow。

Comments