PDF Download
EC2 AUTOSCALING EXAM QUESTIONS
Actual Qs and Ans Expert-Verified Explanation
This Exam contains:
-Guarantee passing score -41 Questions and Answers -format set of multiple-choice -Expert-Verified Explanation Question 1: "Q: How do I control access to Amazon EC2 Auto Scaling resources?"
Answer:
"Amazon EC2 Auto Scaling integrates with AWS Identity and Access Management (IAM), a service that
enables you to do the following:
Create users and groups under your organization's AWS account Assign unique security credentials to each user under your AWS account Control each user's permissions to perform tasks using AWS resources Allow the users in another AWS account to share your AWS resources Create roles for your AWS account and define the users or services that can assume them Use existing identities for your enterprise to grant permissions to perform tasks using AWS resources For example, you could create an IAM policy that grants the Managers group permission to use only the DescribeAutoScalingGroups, DescribeLaunchConfigurations, DescribeScalingActivities, and DescribePolicies API operations. Users in the Managers group could then use those operations with any Amazon EC2 Auto Scaling groups and launch configurations. With Amazon EC2 Auto Scaling resource-level permissions, you can restrict access to a particular EC2 Auto Scaling group or launch configuration.For more information, see the Controlling Access to Your Auto Scaling Resources section of the Amazon EC2 Auto Scaling user guide."
Question 2: "Q: How many instances can an EC2 Auto Scaling group have?"
Answer:
"You can have as many instances in your EC2 Auto Scaling group as your EC2 quota allows." Question 3: "Q: Can I specify instances of different sizes (CPU cores
Answer:
memory) in my Auto Scaling group?","Yes. You can specify any instance type available in a region.Additionally, you can specify an optional weight for each instance type, which defines the capacity units that each instance would contribute to your application's performance." Question 4: "Q: Can I modify the configuration of an ASG to update the different properties pertaining to combining purchasing models and specifying multiple instance types?"
Answer:
"Yes. Similar to other ASG parameters, customers can update an existing ASG to modify one or all parameters pertaining to combining purchasing models and specifying multiple instance types, including instance types, prioritization order for On-Demand instances, percentage split between On-Demand and Spot instances, and allocation strategy." Question 5: "Q: What is target tracking?"
Answer:
"Target tracking is a new type of scaling policy that you can use to set up dynamic scaling for your application in just a few simple steps. With target tracking, you select a load metric for your application, such as CPU utilization or request count, set the target value, and Amazon EC2 Auto Scaling adjusts the number of EC2 instances in your ASG as needed to maintain that target. It acts like a home thermostat, automatically adjusting the system to keep the environment at your desired temperature.For example, you can configure target tracking to keep CPU utilization for your fleet of web servers at 50%. From there, Amazon EC2 Auto Scaling launches or terminates EC2 instances as required to keep the average CPU utilization at 50%." Question 6: "Q: What does the term "stateful instances" refer to?"
Answer:
"When we refer to a stateful instance, we mean an instance that has data on it, which exists only on that instance. In general, terminating a stateful instance means that the data (or state information) on the instance is lost. You may want to consider using lifecycle hooks to copy the data off of a stateful instance before it's terminated, or enable instance protection to prevent Amazon EC2 Auto Scaling from terminating it.Replacing Impaired Instances"
Question 7: "Q: Can I use ASGs to launch and manage just Spot Instances or just On-Demand instances and RIs?"
Answer:
"Yes. You can configure your ASG specifying all capacity to be only Spot instances or all capacity to be only On-Demand instances and RIs." Question 8: "Q: What happens to my Amazon EC2 instances if I delete my ASG?"
Answer:
"If you have an EC2 Auto Scaling group (ASG) with running instances and you choose to delete the ASG, the instances will be terminated and the ASG will be deleted." Question 9: "Q: Can EC2 Auto Scaling groups span multiple AWS regions?"
Answer:
"EC2 Auto Scaling groups are regional constructs. They can span Availability Zones, but not AWS regions." Question 10: "Q: If you don't use Elastic Load Balancing (ELB) how would users be directed to the other servers in a group if there was a failure?"
Answer:
"You can integrate with Route53 (which Amazon EC2 Auto Scaling does not currently support out of the box, but many customers use). You can also use your own reverse proxy, or for internal microservices, can use service discovery solutions." Question 11: "Q: Can I suspend health checks (for example
Answer:
to evaluate unhealthy instances)?","Yes, you can temporarily suspend Amazon EC2 Auto Scaling health checks by using the SuspendProcesses API. You can use the ResumeProcesses API to resume automatic health checks." Question 12: "Q: What is an EC2 Auto Scaling group (ASG)?"
Answer:
"An Amazon EC2 Auto Scaling group (ASG) contains a collection of EC2 instances that share similar characteristics and are treated as a logical grouping for the purposes of fleet management and dynamic scaling. For example, if a single application operates across multiple instances, you might want to increase the number of instances in that group to improve the performance of the application, or decrease the number of instances to reduce costs when demand is low. Amazon EC2 Auto Scaling will automaticallly adjust the number of instances in the group to maintain a fixed number of instances even if a instance becomes unhealthy, or based on criteria that you specify. You can find more information about ASG in the Amazon EC2 Auto Scaling User Guide."
Question 13: "Q: If I have data installed in an EC2 Auto Scaling group
Answer:
and a new instance is dynamically created later, is the data copied over to the new instances?","Data is not automatically copied from existing instances to new instances. You can use lifecycle hooks to copy the data, or an Amazon RDS database including replicas." Question 14: "Q: What are lifecycle hooks?"
Answer:
"Lifecycle hooks let you take action before an instance goes into service or before it gets terminated.This can be especially useful if you are not baking your software environment into an Amazon Machine Image (AMI). For example, launch hooks can perform software configuration on an instance to ensure that it's fully prepared to handle traffic before Amazon EC2 Auto Scaling proceeds to connect it to your load balancer. One way to do this is by connecting the launch hook to an AWS Lambda function that invokes RunCommand on the instance. Terminate hooks can be useful for collecting important data from an instance before it goes away. For example, you could use a terminate hook to preserve your fleet's log files by copying them to an Amazon S3 bucket when instances go out of service.Visit lifecycle hooks in our Amazon EC2 Auto Scaling User Guide for more information." Question 15: "Q: How do I control which instances Amazon EC2 Auto Scaling terminates when scaling in
Answer:
and how do protect data on an instance?","With each Amazon EC2 Auto Scaling group, you control when Amazon EC2 Auto Scaling adds instances (referred to as scaling out) or remove instances (referred to as scaling in) from your group. You can scale the size of your group manually by attaching and detaching instances, or you can automate the process through the use of a scaling policy. When you have Amazon EC2 Auto Scaling automatically scale in, you must decide which instances Amazon EC2 Auto Scaling should terminate first. You can configure this through the use of a termination policy.You can also use instance protection to prevent Amazon EC2 Auto Scaling from selecting specific instances for termination when scaling in. If you have data on an instance, and you need that data to be persistent even if your instance is scaled in, then you can use a service like S3, RDS, or DynamoDB, to make sure that it is stored off the instance." Question 16: "Q: Can I use RI discounts with On-Demand Instances in an ASG?"
Answer:
"Yes. For example, if you have RIs for C4 instances and EC2 Auto Scaling launches a C4 you will receive your RI pricing for On-Demand Instances."