exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 157 discussion

A DevOps engineer notices that all Amazon EC2 instances running behind an Application Load Balancer in an Auto Scaling group are failing to respond to user requests. The EC2 instances are also failing target group HTTP health checks.

Upon inspection, the engineer notices the application process was not running in any EC2 instances. There are a significant number of out of memory messages in the system logs. The engineer needs to improve the resilience of the application to cope with a potential application memory leak. Monitoring and notifications should be enabled to alert when there is an issue.

Which combination of actions will meet these requirements? (Choose two.)

  • A. Change the Auto Scaling configuration to replace the instances when they fail the load balancer's health checks.
  • B. Change the target group health check HealthCheckIntervalSeconds parameter to reduce the interval between health checks.
  • C. Change the target group health checks from HTTP to TCP to check if the port where the application is listening is reachable.
  • D. Enable the available memory consumption metric within the Amazon CloudWatch dashboard for the entire Auto Scaling group. Create an alarm when the memory utilization is high. Associate an Amazon SNS topic to the alarm to receive notifications when the alarm goes off.
  • E. Use the Amazon CloudWatch agent to collect the memory utilization of the EC2 instances in the Auto Scaling group. Create an alarm when the memory utilization is high and associate an Amazon SNS topic to receive a notification.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
thanhnv142
Highly Voted 8 months, 2 weeks ago
Selected Answer: AE
A and E are correct: If there is failed instance, we should replace it with a new one to restart. Use cloudwatch agent to monitor metrics B: this does not do anything C: should not change from HTTP to TCP D: Cloudwatch work with agents, about which this option does not mention
upvoted 5 times
...
lovekiller
Most Recent 2 months, 3 weeks ago
Selected Answer: AE
First choice is A, that is sure because one requirement is resiliency. For second choice, D vs E: By default, CloudWatch metrics for EC2 do not include memory utilization. We must install the CloudWatch agent to collect memory metrics which is mentioned in E. So E is correct.
upvoted 1 times
...
zijo
3 months, 3 weeks ago
Selected Answer: AE
An Auto Scaling Group (ASG) can replace EC2 instances by default when Application Load Balancer (ALB) health checks fail, but only if ALB health checks are explicitly enabled in the ASG configuration. By default, an ASG uses EC2 instance status checks for health monitoring. If you want the ASG to replace instances based on ALB health check results, you need to configure it to use ELB/ALB health checks.
upvoted 2 times
...
xdkonorek2
5 months, 3 weeks ago
Selected Answer: BE
from doc: When Amazon EC2 Auto Scaling determines that an InService instance is unhealthy, it replaces it with a new instance to maintain the desired capacity of the group. so you can't actually have a ASG that doesn't replace unhealthy instance so A doesn't make sense, but B makes sense since faster replacement will improve the resilience.
upvoted 4 times
...
dkp
6 months, 2 weeks ago
Selected Answer: AE
Answer is A&E
upvoted 3 times
...
DanShone
7 months, 1 week ago
Selected Answer: AE
A - Autoscaling to replace teh EC2s E - CloudWatch agent to monitor Memory
upvoted 3 times
...
Jaguaroooo
7 months, 2 weeks ago
I choose AE, but I am not comfortable with E, because CW doesn't by default give memory metrics, it requires customization.
upvoted 2 times
...
a54b16f
9 months, 2 weeks ago
Selected Answer: AE
It's A & E
upvoted 3 times
...
davdan99
9 months, 3 weeks ago
Selected Answer: AE
We don't have memory metrics for autoscaling, here is the list of metrics https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/appinsights-metrics-ec2.html#appinsights-metrics-ec2-linux Here is the list of metrics from cloudwatch agent https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/appinsights-metrics-ec2.html#appinsights-metrics-ec2-linux
upvoted 3 times
...
d262e67
10 months ago
Selected Answer: AE
Memory monitoring requires an agent and auto scaling needs the self-healing feature turned on.
upvoted 2 times
...
csG13
10 months ago
Selected Answer: AE
It's A & E - no memory can be added in Cloudwatch dashboard, needs to be exported using Cloudwatch agent first.
upvoted 3 times
...
PrasannaBalaji
10 months ago
Selected Answer: AE
I'll go with A, E B is wrong because it does not talk about problem solving C is wrong because it does not talk about problem solving http/tcp D is wrong because of notifications when the alarm goes off
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago