Tuesday, October 4, 2016

AWS CDA Study List - Elastic Beanstalk

Elastic Beanstalk

Basics
  • Free, but resources it creates are billed normally
  • Automates capacity provisioning, load balancing, auto scaling and application development
  • Supports
    • Apache Tomcat for Java
    • Apache HTTP for PHP
    • Apache HTTP for Python
    • Apache HTTP for Node.js
    • Nginx for Node.js
    • Passenger or Puma for Ruby
    • Microsoft IIS 7.5, 8.0, and 8.5 for .NET
    • Java SE
    • Docker
    • Go
  • Uses EC2, RDS, ELB, Auto Scaling,  S3 and SNS resources to create needed environment
  • Supports currently Amazon Linux AMI and Windows Server 2012 R2 AMI
  • Supports running multiple environments at the same time
  • Supports using multiple Availability Zones
  • If underlying infrastructure stops responding, auto scaling will automatically launch a new instance
  • By default, application is publicly accessible from "myapp.elasticbeanstalk.com"

Limits

  • Supports to 75 applications and 1,000 application versions
  • By default, up to 200 environments across all of your applications can be run

Following topics are exam questions collected through Internet and should be evaluated as so. Answers are mine and have been checked with answers collected through the internet, but might still be wrong.

Elastic Beanstalk

What AWS products and features can be deployed by Elastic Beanstalk? Choose 3
answers

A. Auto scaling groups
B. Route 53 hosted zones
C. Elastic Load Balancers
D. RDS Instances
E. Elastic IP addresses
F. SQS Queues

Why?

https://aws.amazon.com/elasticbeanstalk/faqs/

Q: What are the Cloud resources powering my AWS Elastic Beanstalk application?
AWS Elastic Beanstalk uses proven AWS features and services, such as Amazon EC2, Amazon RDS, Elastic Load Balancing, Auto Scaling, Amazon S3, and Amazon SNS, to create an environment that runs your application. The current version of AWS Elastic Beanstalk uses the Amazon Linux AMI or the Windows Server 2012 R2 AMI.


Elastic Beanstalk supported platforms

Which of the following platforms are supported by Elastic Beanstalk? Choose 2 answers

A. Apache Tomcat
B. IBM Websphere
C. Oracle JBoss
D. Jetty
E. .NET

Why?

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html

Platforms
  • Single Container Docker
  • Multicontainer Docker
  • Preconfigured Docker
  • Go
  • Java SE
  • Java with Tomcat
  • .NET on Windows Server with IIS
  • Node.js
  • PHP
  • Python
  • Ruby

What does Amazon Elastic Beanstalk provide?

A. A scalable storage appliance on top of Amazon Web Services.
B. An application container on top of Amazon Web Services.
C. A service by this name doesn’t exist.
D. A scalable cluster of EC2 instances.

Why? http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/Welcome.html "With Elastic Beanstalk, you can quickly deploy and manage applications in the AWS Cloud without worrying about the infrastructure that runs those applications. AWS Elastic Beanstalk reduces management complexity without restricting choice or control. You simply upload your application, and Elastic Beanstalk automatically handles the details of capacity provisioning, load balancing, scaling, and application health monitoring."


You deployed your company website using Elastic Beanstalk and you enabled log file rotation to S3. An Elastic Map Reduce job is periodically analyzing the logs on S3 to build a usage dashboard that you share with your CIO. You recently improved overall performance of the website using CloudFront for dynamic content delivery and your website as the origin. After this architectural change, the usage dashboard shows that the traffic on your website dropped by an order of magnitude. How do you fix your usage dashboard?

A. Enable CloudFront to deliver access logs to S3 and use them as input of the Elastic Map Reduce job.
B. Turn on CloudTrail and use trail log tiles on S3 as input of the Elastic Map Reduce job
C. Change your log collection process to use CloudWatch ELB metrics as input of the Elastic Map Reduce job
D. Use Elastic Beanstalk “Rebuild Environment” option to update log delivery to the Elastic Map Reduce job.
E. Use Elastic Beanstalk ‘Restart App server(s)” option to update log delivery to the Elastic Map Reduce job.

Why? http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html "You can configure CloudFront to create log files that contain detailed information about every user request that CloudFront receives. These access logs are available for both web and RTMP distributions. If you enable logging, you can also specify the Amazon S3 bucket that you want CloudFront to save files in."

2 comments: