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

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

A developer has built an application that inserts data into an Amazon DynamoDB table. The table is configured to use provisioned capacity. The application is deployed on a burstable nano Amazon EC2 Instance. The application logs show that the application has been failing because of a
ProvisionedThroughputExceedException error.
Which actions should the developer take to resolve this issue? (Choose two.)

  • A. Move The application to a larger EC instance.
  • B. Increase the number or read capacity units (RCUs) that are provisioned for the DynamoDB table.
  • C. Reduce the frequency of requests to DynamoDB by implement ng exponential backoff.
  • D. Increase the frequency of requests to DynamoDB by decreasing the retry delay.
  • E. Change the capacity mode of the DynamoDB table from provisioned to on-demand.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
XAvenger
Highly Voted 2 years, 7 months ago
Selected Answer: CE
I don't know how people can vote for B and D. B - increases RCU, but the application inserts data, so WCU are needed, => B is wrong D - you application will make more requests per minute, the problem with lack of resources will not disappear, application will have more errors in logs. => D is wrong C. Exponential algorithm will lead to fewer requests per minute => application will start working properly. C is correct E. capacity on demand means that your database will get more required WCU automatically. => E is correct
upvoted 19 times
ShriniW
2 years, 2 months ago
this is an excellent explanation
upvoted 1 times
npn225
1 year, 6 months ago
Correct
upvoted 1 times
...
...
MrTee
2 years ago
E is not necessarily wrong. However, this option may not always be the most cost-effective solution and may not be suitable for all use cases especially with predictable workloads. Increasing the number of read capacity units (RCUs) and implementing exponential backoff are two other actions that can help resolve this issue. B and C are best in this case
upvoted 1 times
npn225
1 year, 6 months ago
Option E works here because on-demand capacity mode works best for a BURSTABLE Amazon EC2 instance! Option B doesn't work here because increasing Read Capacity Units (RCU) does not help resolve the ProvisionThroughputExceedException Error when we are inserting (a.k.a. WRITING) to the DynamoDB table. XAvenger is correct - the answer is C and E!
upvoted 1 times
...
...
...
JOL86
Highly Voted 2 years, 7 months ago
I'm not sure how increasing the EC2 instance size would help here - seems to be issues with too many writes to DynamoDB. So I'd go for C and E
upvoted 9 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: CE
The ProvisionedThroughputExceedException occurs when the number of read or write requests exceeds the provisioned capacity for the DynamoDB table. B) - Eliminated - As application is inserted the data (so we need to increase WCU, instead of RCU)
upvoted 1 times
...
Lucas_Luke
1 year, 6 months ago
Selected Answer: CE
ProvisionedThroughputExceedException is related to throughput capacity of DynamoDB. In this context, it is nowhere related to EC2 instance. Answer is C & E.
upvoted 1 times
...
teluskaser
1 year, 7 months ago
Selected Answer: AE
The key is "an application that **inserts** data into an Amazon DynamoDB table"
upvoted 1 times
...
ezredame
1 year, 11 months ago
Selected Answer: CE
ProvisionedThroughputExceededException happens with writing/reading. but the question claims that data is inserted. Therefore B is wrong. E comes with different cost implications and operational considerations but in question we are not looking for the best solution.
upvoted 1 times
...
MrTee
2 years ago
Selected Answer: BC
the correct actions are B and C
upvoted 1 times
...
Jingke
2 years ago
C. Reduce the frequency of requests to DynamoDB by implement ng exponential backoff. I don't know why this is "ng" there? if not typo error, C can't be correct because there isn't "ng exponential backoff" function.
upvoted 1 times
...
Syre
2 years ago
Selected Answer: BC
B. Increase the number of read capacity units (RCUs) that are provisioned for the DynamoDB table: The error message indicates that the application is exceeding the provisioned throughput capacity for the DynamoDB table. Increasing the number of RCUs provisioned for the table can help prevent this error from occurring by providing additional throughput capacity. C. Reduce the frequency of requests to DynamoDB by implementing exponential backoff: When an application receives a ProvisionedThroughputExceedException error, it can indicate that it is making too many requests to DynamoDB too quickly. Implementing exponential backoff in the application can help to reduce the frequency of requests and prevent the error from occurring. E. Changing the capacity mode of the DynamoDB table from provisioned to on-demand may help in situations where the workload is unpredictable and sporadic, but it may not provide the necessary performance guarantees required by the application. Additionally, the pricing model for on-demand capacity is different from provisioned capacity and may not be cost-effective for high-volume workloads.
upvoted 1 times
...
Dr_Chomp
2 years ago
the nominated answer is wrong! The application on its existing infra is already beating the DynamoDB instance - thus the throughput choke. Its C + E - 100%. This answer needs to be corrected
upvoted 1 times
...
pancman
2 years, 2 months ago
Selected Answer: CE
C and E is correct. Good job with putting A as it can really trick you into choosing it, but A says read capacity units, whereas the question states that the problem is about writing data, not reading.
upvoted 1 times
...
may2021_r
2 years, 2 months ago
BC The ProvisionedThroughputExceedException error occurs when the number of read or write requests to a DynamoDB table exceeds the provisioned capacity for the table. To resolve this issue, the developer can either increase the number of read capacity units (RCUs) that are provisioned for the DynamoDB table or reduce the frequency of requests to DynamoDB by implementing exponential backoff. Increasing the RCUs allows the table to handle a larger number of requests, while reducing the frequency of requests to DynamoDB can help to avoid exceeding the provisioned capacity.
upvoted 2 times
shahs10
2 years ago
Application is built to write so read condition is removed and B can not be the answer.
upvoted 1 times
...
...
may2021_r
2 years, 2 months ago
BC correct answer
upvoted 1 times
...
dark_cherrymon
2 years, 5 months ago
Selected Answer: CE
CE, who voted for A or D lol
upvoted 1 times
...
david00
2 years, 7 months ago
Selected Answer: CE
CE: because https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html, not choosing B because it only inceases the RCU (read units), the issue of throughput exceeded could also be with WCU (write units)
upvoted 3 times
...
robbyboss
2 years, 7 months ago
Selected Answer: CE
A wont help as the issue is facing DynamoDB not application on EC2 B. is incorrect because we are facing issue with writes, not reads C. True D. This statement is logicless - increasing request to dynamo results in higher API usage. E. TRUE
upvoted 4 times
...
[Removed]
2 years, 7 months ago
Selected Answer: BD
ProvisionedThroughputExceededException is a DynamoDB exception, for this I exclude A. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html The error message says: You exceeded your maximum allowed provisioned throughput for a table or for one or more global secondary indexes. To view performance metrics for provisioned throughput vs. consumed throughput For this i say B and Example: Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. for this i say D
upvoted 1 times
robbyboss
2 years, 7 months ago
B is incorrect as the issue is regarding writes not reads. RCU is for read capacity unit.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago