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

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

A company manages a financial services application that stores a large volume of data in an Amazon DynamoDB table. A developer needs to improve the performance of the DynamoDB read queries without increasing the cost.

Which solution meets these requirements?

  • A. Use parallel scans.
  • B. Add a local secondary index (LSI).
  • C. Create a DynamoDB Accelerator (DAX) cluster.
  • D. Query with the ProjectionExpression parameter.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
a15ce96
1 year, 1 month ago
Selected Answer: A
Controversial questions... B and C are not the options. D doesn't seem to affect the performance that much (well, ok, we query and process less data, could be). Parallel scans is a good option, but scans are not recommended on the big amount of data plus the question says "query", not "scan". Overall, I'd go with A simply because it makes the most sense. If there are any scans in that large amount of data, it should improve the performance.
upvoted 1 times
...
Teemo2023
1 year, 1 month ago
Selected Answer: D
Never do scan on a large table
upvoted 1 times
...
kyoharo
1 year, 5 months ago
Selected Answer: D
D. Query with the ProjectionExpression parameter. The ProjectionExpression parameter allows you to specify the attributes that you need in the response, rather than returning all of the attributes in the table. This can reduce the amount of data that DynamoDB needs to read and process, which can improve performance. The other solutions are not as effective: A. Parallel scans: Parallel scans can improve performance, but they can also increase cost. B. Adding a local secondary index (LSI): LSIs can improve performance for specific queries, but they can also increase cost and complexity. C. Creating a DynamoDB Accelerator (DAX) cluster: DAX clusters can provide significant performance improvements, but they are also expensive.
upvoted 1 times
...
AWSdeveloper08
1 year, 8 months ago
Selected Answer: A
Parallel Scans
upvoted 1 times
...
rcaliandro
1 year, 9 months ago
Selected Answer: A
I would say A. Use parallel scans
upvoted 1 times
...
wrnk
2 years, 1 month ago
Cant be C, DynamoDB DAX has a cost: https://aws.amazon.com/dynamodb/pricing/provisioned/#.E2.80.A2_DynamoDB_Accelerator_.28DAX.29
upvoted 1 times
...
Dun6
2 years, 1 month ago
Selected Answer: C
DAX is the only feasible solution I see
upvoted 1 times
...
Ankit1010
2 years, 2 months ago
Option C Creating a DynamoDB Accelerator (DAX) cluster, would be the best solution for improving the performance of DynamoDB read queries without increasing the cost. DynamoDB Accelerator (DAX) is a fully-managed, highly available, in-memory cache for DynamoDB that improves the performance of read-intensive DynamoDB workloads. DAX can be used to reduce the response times of eventually consistent read workloads by an order of magnitude, from single-digit milliseconds to microseconds.
upvoted 2 times
Ankit1010
2 years, 2 months ago
Parallel scans (option A) are not the best solution for improving performance, as they can consume a lot of read capacity units (RCUs) and can be slower than other alternatives. Adding a local secondary index (LSI) (option B) can improve query performance for specific access patterns, but they are limited in their usefulness and may not be the best option for overall query performance improvement. Querying with the ProjectionExpression parameter (option D) can help reduce the amount of data returned by a query, but it does not improve the performance of the query itself.
upvoted 2 times
...
...
pancman
2 years, 2 months ago
Selected Answer: B
Theanswer is B A:You should avoid using scan operation on a large database C: This would create extra costs D: This parameter helps you get certain columns only and doesn't affect performance in a significant way
upvoted 4 times
...
unbornfroyo
2 years, 2 months ago
Selected Answer: B
B. Add a local secondary index (LSI). Adding a local secondary index (LSI) can improve the performance of DynamoDB read queries as it allows you to query the data in the table using an alternate sort key, which can be different from the primary key. By using the alternate sort key in your queries, you can reduce the number of read operations required to retrieve the data, and therefore improve the query performance without increasing the cost.
upvoted 2 times
rcaliandro
1 year, 9 months ago
you can't add an LSI on an existing table
upvoted 1 times
...
...
Phinx
2 years, 3 months ago
Selected Answer: A
A it is.
upvoted 1 times
...
breathingcloud
2 years, 3 months ago
Selected Answer: A
Hint is large set of data volumes, so its parallel scan
upvoted 2 times
...
hb0011
2 years, 3 months ago
Selected Answer: A
I think it's A
upvoted 1 times
...
by116549
2 years, 3 months ago
Question states: "improve the performance of the DynamoDB read queries without increasing the cost" - Forget B as this can only be created at the time when the table is created - C will cost money - Leaves A or D, being the question says "stores a large volume of data" and "queries" I will lean more to D. Please see the following: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-query-scan.html https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ProjectionExpressions.html
upvoted 3 times
Phinx
2 years, 3 months ago
To quote the AWS documentation, "To read data from a table, you use operations such as GetItem, Query, or Scan. " So that means scan is also a read operation. I'll go with A. D does not state it's for large amount of data.
upvoted 1 times
...
tieyua
2 years, 2 months ago
To pick D, you are making assumptions not all data are needed, and performance is caused by network bandwidth. Neither was mentioned. I bet half the question is missing.
upvoted 1 times
...
clarksu
2 years, 1 month ago
NO. B is ruling out not because LSI can only be created while creating the table. LSI (Local Secondary Indexes) can be created at any time after the table is created in Amazon DynamoDB.
upvoted 1 times
...
...
fe2
2 years, 3 months ago
Selected Answer: D
The answer cant be A. It says query not scan. Scan and query different things in DynamoDB. If you check their API pages, you will see Scan has parallel scan option. But in Query API page, there is no such parallel scan option. Because it is not valid for Query. In this case, the answer is D.
upvoted 2 times
fe2
2 years, 3 months ago
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html
upvoted 1 times
...
Phinx
2 years, 3 months ago
To quote the AWS documentation, "To read data from a table, you use operations such as GetItem, Query, or Scan. " So that means scan is also a read operation. I'll go with A. D does not state it's for large amount of data.
upvoted 1 times
...
...
DrCloud
2 years, 4 months ago
Selected Answer: A
Given: "large volume of data" in an Amazon DynamoDB table. Taking advantage of parallel scans: Many applications can benefit from using "parallel Scan" operations rather than sequential scans. For example, an application that processes a large table of historical data can perform a parallel scan much faster than a sequential one.
upvoted 1 times
...
ubuntu1234
2 years, 4 months ago
C. Applications that are read-intensive, but are also cost-sensitive. With DynamoDB, you provision the number of reads per second that your application requires. If read activity increases, you can increase your tables' provisioned read throughput (at an additional cost). Or, you can offload the activity from your application to a DAX cluster, and reduce the number of read capacity units that you need to purchase otherwise. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.html
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