AWS开发人员认证考试样题解析

最近在准备AWS的开发人员考试认证。所以特意做了一下考试样题。每道题尽量给出了文档出处以及解析。



Which of the following statements about SQS is true?

  1. Messages will be delivered exactly once and messages will be delivered in First in, First out order
  2. Messages will be delivered exactly once and message delivery order is indeterminate
  3. Messages will be delivered one or more times and messages will be delivered in First in, First out order
  4. Messages will be delivered one or more times and message delivery order is indeterminate

答案:D

参考文档:https://aws.amazon.com/sqs/faqs/

解析:SQS为了保持高可用,会在多个服务器间duplicate消息,所以消息可能会被delivery多次,但会保证至少被delivery一次;另外由于分布式的特性,所以消息的delivery顺序无法得到保证



EC2 instances are launched from Amazon Machine Images (AMIs). A given public AMI:

  1. can be used to launch EC2 instances in any AWS region
  2. can only be used to launch EC2 instances in the same country as the AMI is stored
  3. can only be used to launch EC2 instances in the same AWS region as the AMI is stored
  4. can only be used to launch EC2 instances in the same AWS availability zone as the AMI is stored

答案:C

参考文档:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html

解析:AMI只在当前region可用(不过AMI的ID是global范围内唯一的);如果想跨region的话需要copy到其它region。



Company B provides an online image recognition service and utilizes SQS to decouple system
components for scalability. The SQS consumers poll the imaging queue as often as possible to keep endto-end
throughput as high as possible. However, Company B is realizing that polling in tight loops is
burning CPU cycles and increasing costs with empty responses. How can Company B reduce the number
of empty responses?

  1. Set the imaging queue VisibilityTimeout attribute to 20 seconds
  2. Set the imaging queue ReceiveMessageWaitTimeSeconds attribute to 20 seconds
  3. Set the imaging queue MessageRetentionPeriod attribute to 20 seconds
  4. Set the DelaySeconds parameter of a message to 20 seconds

答案:B

参考文档:http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html

解析:这个需要使用SQS的long pulling;方式之一就是设置queue的ReceiveMessageWaitTimeSeconds属性



You attempt to store an object in the US-STANDARD region in Amazon S3, and receive a confirmation
that it has been successfully stored. You then immediately make another API call and attempt to read
this object. S3 tells you that the object does not exist. What could explain this behavior?

  1. US-STANDARD uses eventual consistency and it can take time for an object to be readable in a bucket.
  2. Objects in Amazon S3 do not become visible until they are replicated to a second region.
  3. US-STANDARD imposes a 1 second delay before new objects are readable
  4. You exceeded the bucket object limit, and once this limit is raised the object will be visible.

答案:A

参考文档:http://docs.aws.amazon.com/AmazonS3/latest/dev/Introduction.html

解析:这道题有点过时了,当时US-STANDARD不支持read-after-write,使用的是eventual consistency,所以当写入一个object以后,不一定会立即读到。现在已经没有US-STANDARD region了(被重命名了)。而且所有region都支持read-after-write了。



You have reached your account limit for the number of CloudFormation stacks in a region. How do you
increase your limit?

  1. Make an API call
  2. Contact AWS
  3. Use the console
  4. You cannot increase your limit

答案:B

参考文档: http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudformation

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html

解析:stack数量的限制只是一个软限制,所以可以通过向AWS发请求来放宽限制。



Which statements about DynamoDB are true? (Pick 2 correct answers)

  1. DynamoDB uses a pessimistic locking model
  2. DynamoDB uses optimistic concurrency control
  3. DynamoDB uses conditional writes for consistency
  4. DynamoDB restricts item access during reads
  5. DynamoDB restricts item access during writes

答案:BC

参考文档: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html
解析:这个题目需要对DynamoDB有深入了解,具体可以查看相关文档



What is one key difference between an Amazon EBS-backed and an instance-store backed instance?

  1. Instance-store backed instances can be stopped and restarted
  2. Auto scaling requires using Amazon EBS-backed instances
  3. Amazon EBS-backed instances can be stopped and restarted
  4. Virtual Private Cloud requires EBS backed instances

答案:C

参考文档:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html



A corporate web application is deployed within an Amazon VPC, and is connected to the corporate data
center via IPSec VPN. The application must authenticate against the on-premise LDAP server. Once
authenticated, logged-in users can only access an S3 keyspace specific to the user.
Which two approaches can satisfy the objectives?

  1. The application authenticates against LDAP. The application then calls the IAM Security Service to login
    to IAM using the LDAP credentials. The application can use the IAM temporary credentials to access the
    appropriate S3 bucket.
  2. The application authenticates against LDAP, and retrieves the name of an IAM role associated with the
    user. The application then calls the IAM Security Token Service to assume that IAM Role. The application
    can use the temporary credentials to access the appropriate S3 bucket.
  3. The application authenticates against IAM Security Token Service using the LDAP credentials. The
    application uses those temporary AWS security credentials to access the appropriate S3 bucket.
  4. Develop an identity broker which authenticates against LDAP, and then calls IAM Security Token Service
    to get IAM federated user credentials. The application calls the identity broker to get IAM federated user
    credentials with access to the appropriate S3 bucket.
  5. Develop an identity broker which authenticates against IAM Security Token Service to assume an IAM
    Role to get temporary AWS security credentials. The application calls the identity broker to get AWS
    temporary security credentials with access to the appropriate S3 bucket.

答案:BD

参考文档:https://aws.amazon.com/blogs/aws/aws-identity-and-access-management-now-with-identity-federation/

解析:IAM认证一向是考察的重点。B采用的是assume role的方式,D采用的是federated user的方式。
A错误在于没有login to IAM这个功能;C、E错误在于认证应该通过LDAP,而不是STS。



You run an ad-supported photo sharing website using S3 to serve photos to visitors of your site. At some
point you find out that other sites have been linking to the photos on your site, causing loss to your
business. What is an effective method to mitigate this?

  1. Use CloudFront distributions for static content.
  2. Remove public read access and use signed URLs with expiry dates.
  3. Block the IPs of the offending websites in Security Groups.
  4. Store photos on an EBS volume of the web server.

答案:B

参考文档:http://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURL.html

解析:使用signed URL或者创建bucket policy都可以防止盗链。



Your application is trying to upload a 6 GB file to Simple Storage Service and receive a “Your proposed
upload exceeds the maximum allowed object size.” error message. What is a possible solution for this?

  1. None, Simple Storage Service objects are limited to 5 GB
  2. Use the multi-part upload API for this object
  3. Use the large object upload API for this object
  4. Contact support to increase your object size limit
  5. Upload to a different region

答案:B

参考文档:http://docs.aws.amazon.com/AmazonS3/latest/dev/UploadingObjects.html

解析:所以S3能存放的最大对象是5T,但单个put操作支持的最大对象只有5G,超过5G的需要使用multi-part upload API上传。

时间: 2024-10-26 18:26:34

AWS开发人员认证考试样题解析的相关文章

AWS的SysOps认证考试样题解析

刚考过了AWS的developer认证,顺手做了一下SysOps的样题.以下是题目和答案. When working with Amazon RDS, by default AWS is responsible for implementing which two management-related activities? (Pick 2 correct answers) A. Importing data and optimizing queries B. Installing and pe

JAVA认证历年真题解析二(附答案)

问题描述 我在网上偶然看到一个网站,这个网站里面的资料非常全,除了一些免费的资料,还有网络视频,觉得非常不错,大家有兴趣或者需要,可以去看看[中华IT学习网]www.100itxx.com内容介绍>>本试卷共有45道题,每题后面都有详细解析.例:1.Whichofthefollowingrangeofshortiscorrect?A.-27--27-1B.0--216-1C.?215--215-1D.?231--231-1翻译下面哪些是short型的取值范围.答案 C解析 短整型的数据类型的长

IBM推出Watson应用程序开发人员认证

IBM表示该公司将面向开发人员推出Watson认证. IBM此举是因为该公司正在越来越多地为Watson和认知计算追求开发人员和更广阔的生态系统. 参加IBM Watson Application Developer Certification,IBM会通过测试考核以下内容: 1. 认知计算基础知识; 2.认知计算用例; 3.IBM的Watson Developer Cloud基础知识; 4. 以及通过IBM的Watson Developer Cloud开发认知应用程序. 根据一篇博客文章透露,

AWS助理架构师样题解析

AWS 认证是对其在 AWS 平台上设计.部署和管理应用程序所需的技能和技术知识的一种认可.获得证书有助于证明您使用 AWS 的丰富经验和可信度,同时还能提升您所在的组织熟练使用基于 AWS 云服务应用的整体水平. 目前亚马逊推出了Solutions Architect,Developer和SysOps Administrator三个方向的认证.每个方向又分为Associate Level(助理级),Professional Level(专家级)和Master Level(大师级).当然目前只有

AWS助理架构师认证考经

上周考了亚马逊的解决方案架构师-助理级别的认证考试并顺利通过.这也算是对自己AWS服务熟悉程度的一种检验.在准备考试的过程中,把自己学习到的AWS知识都梳理了一遍,也算是收获颇丰.这次特意分享了该认证考经. 什么是AWS认证? AWS 认证是对其在 AWS 平台上设计.部署和管理应用程序所需的技能和技术知识的一种认可.获得证书有助于证明您使用 AWS 的丰富经验和可信度,同时还能提升您所在的组织熟练使用基于 AWS 云服务应用的整体水平. 目前亚马逊推出了Solutions Architect,

ssl-https双向认证,对客户端的认证,是协议来完成还是开发人员自己完成

问题描述 https双向认证,对客户端的认证,是协议来完成还是开发人员自己完成 看资料说对客户端证书的认证是在ssl握手时,也就是有协议来完成而不是从请求中获取证书进行判断 是吗?因为公司里的代码看到了这个类X509Certificate然后有一段逻辑,搞得我现在不清楚,https在设置双向认证时,对客户端的认证是协议来完成,还是开发人员自己完成啊 解决方案 看你在什么层次上开发,如果是https协议上,那么就是协议完成,如果是tcp/ip层次上就是自己完成. 解决方案二: 是协议中有这个定义

微信公众平台开发之认证"成为开发者".Net代码解析_实用技巧

.Net 实现微信公共服务平台开发的认证,认证成为开发者,具体内容如下 这些代码也就开始认证的时候用一次,以后就不用了: const string Token = "XXXXX";//你的token protected void Page_Load(object sender, EventArgs e) { string postStr = ""; if (Request.HttpMethod.ToLower() == "post") { Sys

think in java interview-高级开发人员面试宝典(十)

今天是"面经"的最后一篇,主要讲的就是一些大公司在招人时最后的那道"智力题"关卡. 什么是智力题? 什么样的智力题呢?就是类似于下面这种题目,出个1道到2道让面试者回答一下. 例: 有四个人要在夜里穿过一条悬索桥回到宿营地.可是他们只有一支手电,电池只够再亮17分钟.过桥必须要有手电,否则太危险.桥最多只能承受两个人 同时通过的重量.这四个人的过桥速度都不一样:一个需要1分钟,一个需要2分钟,一个需要5分钟,还有一个需要10分钟.问什么样的组合可以在最短的时间过桥?

think in java interview-高级开发人员面试宝典(二)

从现在开始,以样题的方式一一列出各种面试题以及点评,考虑到我在前文中说的,对于一些大型的外资型公司,你将会面临全程英语面试,因此我在文章中也会出现许多全英语样题. 这些题目来自于各个真实的公司,公司名我就不一一例举了,是本人一直以来苦心收藏的. 一个JAVA 的MAIN方法引发的一场血案 Q:    What if the main method is declared as private? A:     The program compiles properly but at run tim