exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 309 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 309
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer deploys an ecommerce application on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances run in an Amazon EC2 Auto Scaling group. The EC2 instances are based on an Amazon Machine Image (AMI) that uses an Amazon Elastic Block Store (Amazon EBS) root volume. After deployment, the developer notices that a third of the instances seem to be idle. These instances are not receiving requests from the load balancer. The developer verifies that all the instances are registered with the load balancer. The developer must implement a solution to allow the EC2 instances to receive requests from the load balancer.

Which action will meet this requirement?

  • A. Reregister the failed instances with the ALB.
  • B. Enable all Availability Zones for the ALB.
  • C. Use the instance refresh feature to redeploy the EC2 Auto Scaling group.
  • D. Restart the EC2 instances that are not receiving traffic.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mrbig00
Highly Voted 2 years, 8 months ago
Selected Answer: B
The correct action is to enable all Availability Zones for the ALB. This will allow the ALB to distribute requests across all registered instances, regardless of which Availability Zone they are in. By enabling all Availability Zones, the developer can ensure that the EC2 instances that are not receiving traffic will start receiving requests from the ALB. Reregistering the failed instances with the ALB or using the instance refresh feature to redeploy the EC2 Auto Scaling group would not solve the problem because the instances are already registered and the instance refresh feature does not support AMIs with EBS root volumes. Restarting the EC2 instances that are not receiving traffic would not solve the problem because the instances are registered with the ALB and are not failing.
upvoted 15 times
vn_thanhtung
2 years, 7 months ago
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-subnets.html
upvoted 1 times
...
by116549
2 years, 7 months ago
hey qq please, if all the AZ were not enabled will the instances be registered still please?
upvoted 1 times
...
AgboolaKun
2 years, 2 months ago
Why is enabling AZs necessary here? I don't get it. The issue is with the unhealthy instances and instance refresh as explained in this article: https://aws.amazon.com/blogs/compute/introducing-instance-refresh-for-ec2-auto-scaling/ will resolve the issue.
upvoted 1 times
...
...
pancman
Highly Voted 2 years, 6 months ago
Selected Answer: C
C is correct. The instances that are not receiving traffic are most likely in an unhealthy state. So they need to be replaced with healthy instances. This can be accomplished by an instance refresh.
upvoted 5 times
...
odisor
Most Recent 1 year, 8 months ago
C "Amazon EC2 Auto Scaling is used for a wide variety of workload types and applications. EC2 Auto Scaling helps you maintain application availability through a rich feature set. This feature set includes integration into Elastic Load Balancing, automatically replacing unhealthy instances, balancing instances across Availability Zones, provisioning instances across multiple pricing options and instance types, dynamically adding and removing instances, and more." https://aws.amazon.com/blogs/compute/introducing-instance-refresh-for-ec2-auto-scaling/
upvoted 1 times
...
rcaliandro
2 years, 1 month ago
Selected Answer: B
Also for me B is the correct answer. Since the EC2 instances are correctly running, they are correctly attacched to the ALB and 1/3 of the instances don't receive traffic, it seems that one Availability Zone is not configured for the Application Load Balancer. To solve the problem it is possible to add the AZ in the ALB Configurations.
upvoted 1 times
...
k1kavi1
2 years, 8 months ago
Selected Answer: C
Agreed
upvoted 2 times
...
michaldavid
2 years, 8 months ago
Selected Answer: C
CCCCCCC
upvoted 2 times
...
DrCloud
2 years, 8 months ago
Ans: C https://aws.amazon.com/blogs/compute/introducing-instance-refresh-for-ec2-auto-scaling/
upvoted 2 times
kaes
1 year, 10 months ago
"Today, we are launching Instance Refresh. This is a new feature in EC2 Auto Scaling that enables automatic deployments of instances in Auto Scaling Groups (ASGs), in order to release new application versions or make infrastructure updates." The purpose of it is not to restart unhealthy instances but to release updates! So B is correct answer
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...