Architecting on AWS 学习笔记系列文章导航页面
38.Development teams in your organization use S3 buckets to store log files for various applications hosted in AWS development environments.
The developers intend to keep the logs for a month for troubleshooting purposes, and subsequently purge the logs.
What feature will enable this requirement?
A. Adding a bucket policy on the S3 bucket.
B. Configuring lifecycle configuration rules on the S3 bucket.
C. Creating an IAM policy for the S3 bucket.
D. Enabling CORS on the S3 bucket. (Sharing resources between regions)
Note:
Lifecycle configuration enables you to specify the Lifecycle management of objects in a bucket. The configuration is a set of one or more rules, where each rule defines an action for Amazon S3 to apply to a group of objects. These actions can be classified as follows:
- Transition actions – In which you define when objects transition to another storage class (http://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). For example, you may choose to transition objects to the STANDARD_IA (IA, for infrequent access) storage class 30 days after creation, or archive objects to the GLACIER storage class one year after creation.
- Expiration actions – In which you specify when the objects expire. Then, Amazon S3 deletes the expired objects on your behalf. For more information on AWS S3 Lifecycle policies, please visit the following URL: (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)
39.A legacy application needs a proprietary file system.
Which of the following can be used to store data accessible by an EC2 instance?
A. AWS CloudFront
B. AWS S3
C. AWS Glacier
D. AWS EFS
Note:
Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud. Amazon EFS is easy to use and offers a simple interface that allows you to create and configure file systems quickly and easily. With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files, so your applications have the storage they need, when they need it. When mounted on Amazon EC2 instances, an Amazon EFS file system provides a standard file system interface and file system access semantics, allowing you to seamlessly integrate Amazon EFS with your existing applications and tools. Multiple Amazon EC2 instances can access an Amazon EFS file system at the same time, allowing Amazon EFS to provide a common data source for workloads and applications running on more than one Amazon EC2 instance. For more information on AWS EFS, please visit the following URL: (https://aws.amazon.com/efs/)
Note that the Amazon EFS is not supported on Windows instances.
40.What options can be used to host an application that uses NGINX and is scalable at any point in time?
Choose 2 correct answers
A.AWS EC2
B.AWS Elastic Beanstalk
C.AWS SQS
D.AWS ELB
Note:
AWS Elastic Beanstalk 是一项易于使用的服务,用于在熟悉的服务器(例如 Apache 、Nginx、Passenger 和 IIS )上部署和扩展使用 Java、.NET、PHP、Node.js、Python、Ruby、GO 和 Docker 开发的 Web 应用程序和服务。
您只需上传代码,Elastic Beanstalk 即可自动处理包括容量预配置、负载均衡、自动扩展和应用程序运行状况监控在内的部署工作。同时,您能够完全控制为应用程序提供支持的 AWS 资源,并可以随时访问底层资源。
Elastic Beanstalk 不额外收费 – 您只需为存储和运行应用程序所需的 AWS 资源付费。