exam questions

Exam AWS Certified Data Analytics - Specialty All Questions

View all questions & answers for the AWS Certified Data Analytics - Specialty exam

Exam AWS Certified Data Analytics - Specialty topic 1 question 8 discussion

A company uses Amazon OpenSearch Service (Amazon Elasticsearch Service) to store and analyze its website clickstream data. The company ingests 1 TB of data daily using Amazon Kinesis Data Firehose and stores one day's worth of data in an Amazon ES cluster.
The company has very slow query performance on the Amazon ES index and occasionally sees errors from Kinesis Data Firehose when attempting to write to the index. The Amazon ES cluster has 10 nodes running a single index and 3 dedicated master nodes. Each data node has 1.5 TB of Amazon EBS storage attached and the cluster is configured with 1,000 shards. Occasionally, JVMMemoryPressure errors are found in the cluster logs.
Which solution will improve the performance of Amazon ES?

  • A. Increase the memory of the Amazon ES master nodes.
  • B. Decrease the number of Amazon ES data nodes.
  • C. Decrease the number of Amazon ES shards for the index.
  • D. Increase the number of Amazon ES shards for the index.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Priyanka_01
Highly Voted 3 years, 8 months ago
IThink its C. Refer the below link https://aws.amazon.com/premiumsupport/knowledge-center/high-jvm-memory-pressure-elasticsearch/
upvoted 29 times
...
singh100
Highly Voted 3 years, 8 months ago
I agree with Option C: Unbalanced shard allocations across nodes or too many shards in a cluster can cause JVMMemoryPressue. Resolution - Reduce the number of shards by deleting old or unused indices. https://aws.amazon.com/premiumsupport/knowledge-center/high-jvm-memory-pressure-elasticsearch/
upvoted 10 times
...
NikkyDicky
Most Recent 1 year, 10 months ago
Selected Answer: C
its a C
upvoted 1 times
...
pk349
2 years, 1 month ago
C: I passed the test
upvoted 1 times
...
AwsNewPeople
2 years, 2 months ago
C. Decrease the number of Amazon ES shards for the index. To improve the performance of Amazon ES in this scenario, the number of shards for the index should be decreased. Currently, the index has 1,000 shards, which is likely causing high overhead and slowing down query performance. In general, it's recommended to have 20-30 GB of data per shard for efficient indexing and query performance in Amazon ES. However, having too many shards can lead to inefficient resource utilization and slow query performance. Additionally, since the cluster is configured with 3 dedicated master nodes, increasing the memory of the master nodes may not have a significant impact on performance. Decreasing the number of data nodes may also not be an effective solution, as this could reduce the capacity of the cluster to handle the 1 TB of daily data ingestion. Increasing the number of shards for the index would further exacerbate the performance issues, as more shards would lead to more overhead and slower query performance.
upvoted 1 times
...
MaxwellBlackmore
2 years, 6 months ago
Selected Answer: C
According to this link https://aws.amazon.com/premiumsupport/knowledge-center/opensearch-high-jvm-memory-pressure/ It clearly states that this issue can be caused due to "Unbalanced shard allocations across nodes or too many shards in a cluster."
upvoted 2 times
...
cloudlearnerhere
2 years, 7 months ago
Selected Answer: C
Correct answer is C as one of the causes of JVMMemoryPressure error can be Unbalanced shard allocations across nodes or too many shards in a cluster. and can be resolved by reducing the number of shards by deleting old or unused indices. Option A is wrong because dedicated master nodes are only used to increase cluster stability. Therefore, this option won't help you improve the performance of the cluster. Option B is incorrect because these nodes carry all the data in your indexes (storage) and do all the processing for your requests (CPU). If you decrease the number of data nodes, the performance of the cluster still won't improve. Option D is incorrect. The JVMMemoryPressure error signifies that there is an unbalanced shard allocations across nodes. This means that there are too many shards in the Amazon ES cluster and not the other way around. To improve the performance of the cluster, you must decrease the number of shards.
upvoted 2 times
...
rocky48
2 years, 10 months ago
Selected Answer: C
Selected Answer: C
upvoted 1 times
...
moon2351
3 years, 2 months ago
Selected Answer: C
Answer is C.
upvoted 2 times
...
Marvel_jarvis
3 years, 5 months ago
Ans - C I got this question for my certification I gave on Dec 9th 2021.
upvoted 1 times
...
aws2019
3 years, 6 months ago
C is the right answer
upvoted 1 times
...
Donell
3 years, 7 months ago
Answer: C. Decrease the number of Amazon ES shards for the index. Memory pressure in the JVM can result if: You have unbalanced shard allocations across nodes You have too many shards in a cluster Fewer shards can yield better performance if JVMMemoryPressure errors are encountered Delete old or unused indices
upvoted 2 times
...
yogen
3 years, 7 months ago
C is correct. from documentation -- https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/sizing-domains.html Here the shard size is 1.5*1000 (GB)/1000 (number of shards)= 1.5 GB which is much less than recommended size of shards. The overarching goal of choosing a number of shards is to distribute an index evenly across all data nodes in the cluster. However, these shards shouldn't be too large or too numerous. A good rule of thumb is to try to keep shard size between 10–50 GiB. Large shards can make it difficult for Elasticsearch to recover from failure, but because each shard uses some amount of CPU and memory, having too many small shards can cause performance issues and out of memory errors. In other words, shards should be small enough that the underlying Amazon ES instance can handle them, but not so small that they place needless strain on the hardware.
upvoted 6 times
...
lostsoul07
3 years, 7 months ago
C is the right answer
upvoted 3 times
...
Deep101
3 years, 7 months ago
The question says the domain is running one index, if so how can we assume there are old unused indices. shouldn't we reindex to adjust the number of shards?
upvoted 1 times
...
BillyC
3 years, 7 months ago
C is correct
upvoted 2 times
...
syu31svc
3 years, 7 months ago
From link https://aws.amazon.com/premiumsupport/knowledge-center/high-jvm-memory-pressure-elasticsearch/ You can resolve high JVM memory pressure issues by reducing traffic to the cluster. To reduce traffic to the cluster, follow these best practices: Reduce the number of shards by deleting old or unused indices.
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 ...