exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 46 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 46
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A DevOps Engineer manages a large commercial website that runs on Amazon EC2. The website uses Amazon Kinesis Data Streams to collect and process web logs. The DevOps Engineer manages the Kinesis consumer application, which also runs on Amazon EC2.
Sudden increases of data cause the Kinesis consumer application to fall behind, and the Kinesis data streams drop records before the records can be processed.
The DevOps Engineer must implement a solution to improve stream handling.
Which solution meets these requirements with the MOST operational efficiency?

  • A. Modify the Kinesis consumer application to store the logs durably in Amazon S3. Use Amazon EMR to process the data directly on Amazon S3 to derive customer insights. Store the results in Amazon S3.
  • B. Horizontally scale the Kinesis consumer application by adding more EC2 instances based on the Amazon CloudWatch GetRecords.IteratorAgeMilliseconds metric. Increase the retention period of the Kinesis Data Streams.
  • C. Convert the Kinesis consumer application to run as an AWS Lambda function. Configure the Kinesis Data Streams as the event source for the Lambda function to process the data streams.
  • D. Increase the number of shards in the Kinesis Data Streams to increase the overall throughput so that the consumer application processes data faster.
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
ohcn
Highly Voted 2 years, 7 months ago
B - https://www.examtopics.com/discussions/amazon/view/8544-exam-aws-devops-engineer-professional-topic-1-question-129/
upvoted 7 times
...
Simba84
Most Recent 4 months, 2 weeks ago
Selected Answer: C
c is correct Benefits of the Lambda Approach: Fully managed, serverless processing. Scales automatically with incoming data. Reduces operational overhead and simplifies management. Provides a robust solution for real-time data processing.
upvoted 1 times
...
kempl
6 months, 2 weeks ago
Selected Answer: C
C - Lambda is more operationally efficient and it out scales. It runs in parallel (multi-thread) to process Kinesis records, which would resolve the issue of the consumer falling behind.
upvoted 1 times
...
Venki_dev
10 months, 3 weeks ago
Selected Answer: C
Ans is C , key here is "MOST operational efficiency" , when compare EC2 vs Lambda , Lambda are more operationally efficient, with EC2 you need to operationally manage it like patching etc etc. though B will also fit , but Operationally efficient would be C with regard to application falling behind it can be achieved by lambda ParallelizationFactor , see AWS Documentation when you set ParallelizationFactor to 2, you can have 200 concurrent Lambda invocations at maximum to process 100 Kinesis data shards (though in practice, you may see a different values for the ConcurrentExecutions metric). This helps scale up the processing throughput when the data volume is volatile and the IteratorAge is high. https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
upvoted 2 times
...
failexamonly
1 year, 3 months ago
Selected Answer: C
more efficient than b
upvoted 1 times
...
hahaha1
2 years, 1 month ago
Selected Answer: B
B is the correct one.
upvoted 2 times
...
thuyeinaung
2 years, 2 months ago
Selected Answer: B
I think the answer is B.
upvoted 4 times
...
Piccaso
2 years, 2 months ago
Selected Answer: B
I changed my mind to B. The throughput problem is not from Kinesis Data Streams, but from the EC2 hosting Kinesis Data Streams. So we need to scale up the EC2 instances.
upvoted 3 times
Venki_dev
10 months, 3 weeks ago
you are right , and lambda ParallelizationFactor can help to solve this problem and Lambda or operationally more efficient than EC2. So answer is C and not B
upvoted 1 times
...
...
Piccaso
2 years, 2 months ago
Selected Answer: D
We need to use the in-built auto-scaling mechanism in Kinesis Data Streams to solve the problem.
upvoted 3 times
Piccaso
2 years, 2 months ago
I changed my mind to B. The throughput problem is not from Kinesis Data Streams, but from the EC2 hosting Kinesis Data Streams. So we need to scale up the EC2 instances.
upvoted 1 times
...
...
Bulti
2 years, 3 months ago
Answer is B. We need to scale the Kinesis consumer application horizontally based on the CloudWatch metric. Answer cannot be C because replacing the Kinesis Consumer app with Lambda does not make the solution operationally efficient. Lambda could also throttle as the data is streamed faster into Kinesis Data Stream. Answer is not D because just my increasing the shards will not result in efficient processing on the consumer side. We also need to increase the no of instances and therefore KCL workers to propose the data from additional shards.
upvoted 3 times
...
PepsNick
2 years, 3 months ago
Selected Answer: B
B. They are asking for operational efficiency. Converting the application to lambda may not be possible and is not efficient.
upvoted 1 times
...
ddev3737
2 years, 3 months ago
Why not D? D. Increase the number of shards in the Kinesis Data Streams to increase the overall throughput so that the consumer application can process the data faster. Increasing the number of shards in the Kinesis Data Streams is the most operationally efficient solution because it allows the consumer application to process the data faster by increasing the overall throughput of the data stream. This will allow the consumer application to keep up with sudden increases in data and prevent records from being dropped. It also does not require any changes to the consumer application itself, which can be more operationally efficient than modifying the application or converting it to a Lambda function. Additionally, increasing the number of shards does not require the use of additional resources such as EC2 instances or EMR clusters, which can be more expensive and complex to manage.
upvoted 3 times
m4r0ck
1 year, 9 months ago
the problem is not with the throughput as it can increase. the problem is when this happens, the processing app falls behind which means it's a consumer issue. B is the correct answer in this case
upvoted 1 times
...
...
saeidp
2 years, 3 months ago
I go with C. Most efficient (C: because of the sudden spikes) vs fastest approach (B)
upvoted 4 times
...
AkaAka4
2 years, 3 months ago
Selected Answer: B
Refer to ohcn's comment.
upvoted 1 times
...
Chinta
2 years, 4 months ago
Go with B
upvoted 1 times
...
SatenderRathee
2 years, 4 months ago
Selected Answer: C
kinesis stream + lambda is better solution
upvoted 2 times
...
Maygam
2 years, 4 months ago
Selected Answer: C
1. https://docs.aws.amazon.com/streams/latest/dev/lambda-consumer.html 2. https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
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