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 99 discussion

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

A developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved.
What best practice should first be applied to address this issue?

  • A. Contact AWS Support for a limit increase.
  • B. Use the AWS CLI to get the metrics.
  • C. Analyze the applications and remove the API call.
  • D. Retry the call with exponential backoff.
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
awscertified
Highly Voted 3 years, 7 months ago
I would say try D first and if does not fi the problem completely, request limit increase (A) D. Retry the call with exponential backoff
upvoted 32 times
jnara
3 years, 6 months ago
D is the right answer. https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-400-error-throttling/ It's a best practice to use the following methods to reduce your call rate and avoid API throttling: Distribute your API calls evenly over time rather than making several API calls in a short time span. If you require data to be available with a one-minute resolution, you have an entire minute to emit that metric. Use jitter (randomized delay) to send data points at various times. Combine as many metrics as possible into a single API call. For example, a single PutMetricData call can include 20 metrics and 150 data points. You can also use pre-aggregated data sets, such as StatisticSet, to publish aggregated data points, thus reducing the number of PutMetricData calls per second. Retry your call with exponential backoff and jitter.
upvoted 22 times
...
Goozian
3 years, 5 months ago
defiantly it's not D, as 4xx is a client errors. Must only implement the retries on 5xx server errors
upvoted 4 times
...
...
newbie2019
Highly Voted 3 years, 7 months ago
Answer is D. After that, then engaging support. https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-400-error-throttling/
upvoted 21 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: D
This is a retry mechanism where the client waits for an increasing amount of time between retries after each failure. This approach helps to prevent overwhelming the API further and allows time for the system to recover.
upvoted 1 times
...
Melisa202401
1 year, 1 month ago
https://repost.aws/knowledge-center/cloudwatch-400-error-throttling CHOOSE D
upvoted 1 times
...
NaghamAbdellatif
1 year, 7 months ago
Selected Answer: D
https://repost.aws/knowledge-center/cloudwatch-400-error-throttling > D
upvoted 1 times
...
RachitNandi1997
1 year, 8 months ago
Selected Answer: B
AWS CLI metrics should be used first.
upvoted 1 times
...
ninomfr64
1 year, 8 months ago
Selected Answer: B
AWS CLI implement exponential backoff https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-retries.html
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: D
Usually, when a function or a service return an error, we can implement a retry mechanism with exponential backoff in order to try to call the function several times. So D is the correct answer
upvoted 1 times
...
sichilam
2 years, 3 months ago
D is the answer Resolution It's a best practice to use the following methods to reduce your call rate and avoid API throttling: Distribute your API calls evenly over time rather than making several API calls in a short time span. If you require data to be available with a one-minute resolution, you have an entire minute to emit that metric. Use jitter (randomized delay) to send data points at various times. Combine as many metrics as possible into a single API call. For example, a single PutMetricData call can include 20 metrics and 150 data points. You can also use pre-aggregated data sets, such as StatisticSet, to publish aggregated data points, thus reducing the number of PutMetricData calls per second. Retry your call with exponential backoff and jitter.
upvoted 1 times
...
speer
2 years, 4 months ago
Selected Answer: D
D is correct based on feedbacks and link in chat.
upvoted 1 times
...
humble_developer
2 years, 4 months ago
Selected Answer: D
Ans is D. C is avoiding the problem rather than solving it.
upvoted 1 times
...
mohamedba
2 years, 11 months ago
The answer is D. Key Word is "sporadically", this means the error does not occur very often, exponential backoff is the way to go. If it was a persistent issue, you should go with A
upvoted 2 times
...
joesome
3 years, 4 months ago
Selected Answer: D
D https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-400-error-throttling/
upvoted 2 times
...
leliodesouza
3 years, 5 months ago
Selected Answer: D
D is correct.
upvoted 1 times
...
jc966
3 years, 5 months ago
Answer is B. If you're not using an AWS SDK, you should retry original requests that receive server (5xx) or throttling errors. However, client errors (4xx) indicate that you need to revise the request to correct the problem before trying again. https://docs.aws.amazon.com/general/latest/gr/api-retries.html
upvoted 4 times
Vlasto
3 years, 2 months ago
You have it in your comment and yet you select wrong aswer. The question is about the throttling error which as you mentioned should be handled by exponential backoff. So D is the answer.
upvoted 1 times
...
...
santhoshmj
3 years, 5 months ago
D is the correct answer
upvoted 2 times
...
ceeee
3 years, 5 months ago
D is WRONG!!!! the developer is getting a 400 error which is from the client side not server side !!! Exponential backoff is NOT an option !! B is the correct answer.
upvoted 3 times
EV123
3 years, 5 months ago
The error is 400: ThrottlingException, which means it exceeds the limit, even if you use CLI, you will get the same error. So D is correct
upvoted 3 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