exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 83 discussion

A company analyzes sales data for its customers. Customers upload files to one of the company's Amazon S3 buckets, and a message is posted to an Amazon
Simple Queue Service (Amazon SQS) queue that contains the object Amazon Resource Name (ARN). An application that runs on an Amazon EC2 instance polls the queue and processes the messages. The processing time depends on the size of the file.
Customers are reporting delays in the processing of their files. A SysOps administrator decides to configure Amazon EC2 Auto Scaling as the first step. The
SysOps administrator creates an Amazon Machine Image (AMI) that is based on the existing EC2 instance. The SysOps administrator also creates a launch template that references the AMI.
How should the SysOps administrator configure the Auto Scaling policy to improve the response time?

  • A. Add several different instance sizes in the launch template. Create an Auto Scaling policy based on the ApproximateNumberOfMessagesVisible metric to select the size of the instance based on the number of messages in the queue.
  • B. Create an Auto Scaling policy based on the ApproximateNumberOfMessagesDelayed metric to scale the number of instances based on the number of messages in the queue that have been delayed.
  • C. Create a custom metric based on the ASGAverageCPUUtilization metric and the GroupPendingInstances metric from the Auto Scaling group. Modify the application to calculate the metric and post the metric to Amazon CloudWatch once each minute. Create an Auto Scaling policy based on this metric to scale the number of instances.
  • D. Create a custom metric based on the ApproximateNumberOfMessagesVisible metric and the number of instances in the InService state in the Auto Scaling group. Modify the application to calculate the metric and post the metric to Amazon CloudWatch once each minute. Create an Auto Scaling policy based on this metric to scale the number of instances.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
numark
3 months, 3 weeks ago
It is D: ApproximateNumberOfMessagesVisible Metric: This metric indicates the number of messages waiting to be processed in the Amazon SQS queue.Number of InService Instances:The scaling decision should consider the number of currently available EC2 instances in the Auto Scaling group to handle the load efficiently. Custom Metric:By creating a custom metric that divides the ApproximateNumberOfMessagesVisible by the number of running (InService) instances, you can calculate the per-instance workload.Posting the Metric to CloudWatch:Once the application posts this custom metric to Amazon CloudWatch, you can create an Auto Scaling policy that uses it to scale the number of instances dynamically.\ B: ApproximateNumberOfMessagesDelayed refers to messages that were delayed because of SQS configurations like delay queues or retries. It doesn’t reflect the immediate workload waiting to be processed.
upvoted 2 times
...
be9z
8 months, 2 weeks ago
The answer is D: This approach involves custom monitoring of queue depth and instance count, allowing dynamic scaling based on workload demands. By combining both metrics, you can achieve responsiveness while considering varying processing times.
upvoted 1 times
...
auxwww
8 months, 2 weeks ago
Selected Answer: D
ApproximateNumberOfMessagesDelayed - The number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter. In our scenario the messages are not delayed in the queue - just not been picked up yet.
upvoted 1 times
...
JoeBoom
1 year, 1 month ago
ApproximateNumberOfMessagesDelayed is a built in metric not a custom metric Answer is B
upvoted 1 times
AminTriton
4 days, 2 hours ago
I guess you didn't read answer D properly. It says NumberOfMessagesVisible which is a different metric. So you can't answer based on custom vs built-in.
upvoted 1 times
...
...
Maria2023
1 year, 1 month ago
Selected Answer: D
ApproximateNumberOfMessagesDelayed - The number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter. In our scenario the messages are not delayed in the queue - just not been picked up yet. Hence I vote for "D"
upvoted 1 times
...
callspace
1 year, 5 months ago
Selected Answer: D
Looks like the answer is in this link: (D) ApproximateNumberOfMessagesDelayed: The number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter. Which means not that they are delayed because of the insufficient available capacity to process but "delayed" is more of a feature rather than a result of something. ApproximateNumberOfMessagesVisible: The number of messages to be processed.
upvoted 1 times
...
gokalpkocer3
1 year, 6 months ago
Modifying an application is almost always a no-no in AWS exams. so I will go with B.
upvoted 2 times
...
jipark
1 year, 7 months ago
Selected Answer: D
I thought B, but it looks D. numberofDelay seems just delay setting msg, not queued msg : B. ApproximateNumberOfMessagesDelayed – Returns the approximate number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter. D. ApproximateNumberOfMessagesNotVisible – Returns the approximate number of messages that are in flight. Messages are considered to be in flight if they have been sent to a client but have not yet been deleted or have not yet reached the end of their visibility window.
upvoted 4 times
...
hexie
1 year, 9 months ago
Selected Answer: B
if ApproximateNumberOfMessagesDelayed is increasing, wouldnt it be a good way to make the ASG scaling? Also providing the scalability accordingly to the problem its facing? And "modifying the application to calculate.." doesnt also sound for something to the devs, not for the SysOps Administrator? I'm going for B.
upvoted 1 times
...
Vivec
2 years ago
Selected Answer: D
When there are delays in processing files due to a high volume of messages in the queue, adding more instances using Auto Scaling can help to reduce the processing time. The ApproximateNumberOfMessagesVisible metric is a good indicator of the workload on the EC2 instances. By creating an Auto Scaling policy based on this metric, the number of instances can be scaled up or down depending on the number of messages in the queue.
upvoted 2 times
...
Spike2020
2 years, 1 month ago
C. D: There is no "ApproximateNumberOfMessagesVisible" parameter. It should be ApproximateNumberOfMessagesNotVisible
upvoted 2 times
defmania00
2 years ago
There sure is an "ApproximateNumberOfMessagesVisible" parameter.
upvoted 2 times
jas26says
1 year, 8 months ago
there isn´t https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueAttributes.html
upvoted 1 times
tttfakil
1 year, 7 months ago
Why Not? https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-available-cloudwatch-metrics.html
upvoted 2 times
...
...
...
...
squeeze_talus0y
2 years, 2 months ago
Selected Answer: D
AWS offers even an example for this - https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-target-tracking-metric-math.html#metric-math-sqs-queue-backlog
upvoted 3 times
...
Mila28
2 years, 2 months ago
Selected Answer: D
I'm agree with D
upvoted 1 times
...
foreverlearner
2 years, 2 months ago
Selected Answer: D
The issue here is that the app is taking too long to process the files. This means that the messages are in the SQS queue, just they're not being processed fast enough. It can't be B as "ApproximateNumberOfMessagesDelayed – Returns the approximate number of messages in the queue that are delayed and not available for reading immediately" (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueAttributes.html). This would mean that the messages are not available, which isn't the case in this question The link posted by zolthar_z clearly explains why it's D. The app takes a variable amount of time to process each message, hence the app should calculate the Backlog per instance
upvoted 4 times
...
zolthar_z
2 years, 2 months ago
Selected Answer: D
The answer is D: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html
upvoted 3 times
...
marcelodba
2 years, 3 months ago
Selected Answer: D
It's D
upvoted 1 times
marcelodba
2 years, 3 months ago
Ans is B
upvoted 1 times
...
...
Liongeek
2 years, 4 months ago
Ans: B
upvoted 4 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