Ch5 ELB, CloudWatch and Auto Scaling Flashcards
Which of the following are required elements of an Auto Scaling group? (Choose 2 answers) A. Minimum size B. Health checks C. Desired capacity D. Launch configuration
A, D. An Auto Scaling group must have a minimum size and a launch configuration
defined in order to be created. Health checks and a desired capacity are optional.
You have created an Elastic Load Balancing load balancer listening on port 80, and you
registered it with a single Amazon Elastic Compute Cloud (Amazon EC2) instance also
listening on port 80. A client makes a request to the load balancer with the correct
protocol and port for the load balancer. In this scenario, how many connections does the
balancer maintain?
A. 1
B. 2
C. 3
D. 4
B. The load balancer maintains two separate connections: one connection with the client
and one connection with the Amazon EC2 instance.
How long does Amazon CloudWatch keep metric data? A. 1 day B. 2 days C. 1 week D. 2 weeks
D. Amazon CloudWatch metric data is kept for 2 weeks.
Which of the following are the minimum required elements to create an Auto Scaling
launch configuration?
A. Launch configuration name, Amazon Machine Image (AMI), and instance type
B. Launch configuration name, AMI, instance type, and key pair
C. Launch configuration name, AMI, instance type, key pair, and security group
D. Launch configuration name, AMI, instance type, key pair, security group, and block
device mapping
A. Only the launch configuration name, AMI, and instance type are needed to create an
Auto Scaling launch configuration. Identifying a key pair, security group, and a block
device mapping are optional elements for an Auto Scaling launch configuration.
You are responsible for the application logging solution for your company’s existing
applications running on multiple Amazon EC2 instances. Which of the following is the
best approach for aggregating the application logs within AWS?
A. Amazon CloudWatch custom metrics
B. Amazon CloudWatch Logs Agent
C. An Elastic Load Balancing listener
D. An internal Elastic Load Balancing load balancer
B. You can use the Amazon CloudWatch Logs Agent installer on existing Amazon EC2
instances to install and configure the CloudWatch Logs Agent.
Which of the following must be configured on an Elastic Load Balancing load balancer to accept incoming traffic? A. A port B. A network interface C. A listener D. An instance
C. You configure your load balancer to accept incoming traffic by specifying one or more
listeners.
You create an Auto Scaling group in a new region that is configured with a minimum size
value of 10, a maximum size value of 100, and a desired capacity value of 50. However,
you notice that 30 of the Amazon Elastic Compute Cloud (Amazon EC2) instances within
the Auto Scaling group fail to launch. Which of the following is the cause of this
behavior?
A. You cannot define an Auto Scaling group larger than 20.
B. The Auto Scaling group maximum value cannot be more than 20.
C. You did not attach an Elastic Load Balancing load balancer to the Auto Scaling
group.
D. You have not raised your default Amazon EC2 capacity (20) for the new region.
D. The default Amazon EC2 instance limit for all regions is 20.
You want to host multiple Hypertext Transfer Protocol Secure (HTTPS) websites on a
fleet of Amazon EC2 instances behind an Elastic Load Balancing load balancer with a
single X.509 certificate. How must you configure the Secure Sockets Layer (SSL)
certificate so that clients connecting to the load balancer are not presented with a
warning when they connect?
A. Create one SSL certificate with a Subject Alternative Name (SAN) value for each
website name.
B. Create one SSL certificate with the Server Name Indication (SNI) value checked.
C. Create multiple SSL certificates with a SAN value for each website name.
D. Create SSL certificates for each Availability Zone with a SAN value for each website
name.
A. An SSL certificate must specify the name of the website in either the subject name or
listed as a value in the SAN extension of the certificate in order for connecting clients to
not receive a warning.
Your web application front end consists of multiple Amazon Compute Cloud (Amazon
EC2) instances behind an Elastic Load Balancing load balancer. You have configured the
load balancer to perform health checks on these Amazon EC2 instances. If an instance
fails to pass health checks, which statement will be true?
A. The instance is replaced automatically by the load balancer.
B. The instance is terminated automatically by the load balancer.
C. The load balancer stops sending traffic to the instance that failed its health check.
D. The instance is quarantined by the load balancer for root cause analysis.
C. When Amazon EC2 instances fail the requisite number of consecutive health checks,
the load balancer stops sending traffic to the Amazon EC2 instance.
In the basic monitoring package for Amazon Elastic Compute Cloud (Amazon EC2), what
Amazon CloudWatch metrics are available?
A. Web server visible metrics such as number of failed transaction requests
B. Operating system visible metrics such as memory utilization
C. Database visible metrics such as number of connections
D. Hypervisor visible metrics such as CPU utilization
D. Amazon CloudWatch metrics provide hypervisor visible metrics.
A cell phone company is running dynamic-content television commercials for a contest.
They want their website to handle traffic spikes that come after a commercial airs. The
website is interactive, offering personalized content to each visitor based on location,
purchase history, and the current commercial airing. Which architecture will configure
Auto Scaling to scale out to respond to spikes of demand, while minimizing costs during
quiet periods?
A. Set the minimum size of the Auto Scaling group so that it can handle high traffic
volumes without needing to scale out.
B. Create an Auto Scaling group large enough to handle peak traffic loads, and then
stop some instances. Configure Auto Scaling to scale out when traffic increases
using the stopped instances, so new capacity will come online quickly.
C. Configure Auto Scaling to scale out as traffic increases. Configure the launch
configuration to start new instances from a preconfigured Amazon Machine Image
(AMI).
D. Use Amazon CloudFront and Amazon Simple Storage Service (Amazon S3) to cache
changing content, with the Auto Scaling group set as the origin. Configure Auto
Scaling to have sufficient instances necessary to initially populate CloudFront and
Amazon ElastiCache, and then scale in after the cache is fully populated.
C. Auto Scaling is designed to scale out based on an event like increased traffic while
being cost effective when not needed.
For an application running in the ap-northeast-1 region with three Availability Zones (ap-
northeast-1a, ap-northeast-1b, and ap-northeast-1c), which instance deployment provides
high availability for the application that normally requires nine running Amazon Elastic
Compute Cloud (Amazon EC2) instances but can run on a minimum of 65 percent
capacity while Auto Scaling launches replacement instances in the remaining Availability
Zones?
A. Deploy the application on four servers in ap-northeast-1a and five servers in ap-
northeast-1b, and keep five stopped instances in ap-northeast-1a as reserve.
B. Deploy the application on three servers in ap-northeast-1a, three servers in ap-
northeast-1b, and three servers in ap-northeast-1c.
C. Deploy the application on six servers in ap-northeast-1b and three servers in ap-
northeast-1c.
D. Deploy the application on nine servers in ap-northeast-1b, and keep nine stopped
instances in ap-northeast-1a as reserve.
B. Auto Scaling will provide high availability across three Availability Zones with three
Amazon EC2 instances in each and keep capacity above the required minimum capacity,
even in the event of an entire Availability Zone becoming unavailable.
For an application running in the ap-northeast-1 region with three Availability Zones (ap-
northeast-1a, ap-northeast-1b, and ap-northeast-1c), which instance deployment provides
high availability for the application that normally requires nine running Amazon Elastic
Compute Cloud (Amazon EC2) instances but can run on a minimum of 65 percent
capacity while Auto Scaling launches replacement instances in the remaining Availability
Zones?
A. Deploy the application on four servers in ap-northeast-1a and five servers in ap-
northeast-1b, and keep five stopped instances in ap-northeast-1a as reserve.
B. Deploy the application on three servers in ap-northeast-1a, three servers in ap-
northeast-1b, and three servers in ap-northeast-1c.
C. Deploy the application on six servers in ap-northeast-1b and three servers in ap-
northeast-1c.
D. Deploy the application on nine servers in ap-northeast-1b, and keep nine stopped
instances in ap-northeast-1a as reserve.
B, E, F. Auto Scaling responds to changing conditions by adding or terminating instances,
launches instances from an AMI specified in the launch configuration associated with
the Auto Scaling group, and enforces a minimum number of instances in the min-size
parameter of the Auto Scaling group.
Why is the launch configuration referenced by the Auto Scaling group instead of being
part of the Auto Scaling group?
A. It allows you to change the Amazon Elastic Compute Cloud (Amazon EC2) instance
type and Amazon Machine Image (AMI) without disrupting the Auto Scaling group.
B. It facilitates rolling out a patch to an existing set of instances managed by an Auto
Scaling group.
C. It allows you to change security groups associated with the instances launched
without having to make changes to the Auto Scaling group.
D. All of the above
E. None of the above
D. A, B, and C are all true statements about launch configurations being loosely coupled
and referenced by the Auto Scaling group instead of being part of the Auto Scaling group.
An Auto Scaling group may use: (Choose 2 answers)
A. On-Demand Instances
B. Stopped instances
C. Spot Instances
D. On-premises instances
E. Already running instances if they use the same Amazon Machine Image (AMI) as
the Auto Scaling group’s launch configuration and are not already part of another
Auto Scaling group
A, C. An Auto Scaling group may use On-Demand and Spot Instances. An Auto Scaling
group may not use already stopped instances, instances running someplace other than
AWS, and already running instances not started by the Auto Scaling group itself.