exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 723 discussion

Exam question from Amazon's AWS-SysOps
Question #: 723
Topic #: 1
[All AWS-SysOps Questions]

A company is running multiple AWS Lambda functions in a non-VPC environment. Most of the functions are application-specific; an operational function is invoked synchronously every hour.
Recently, the Applications team deployed new functions that are triggered based on an Amazon S3 event to process multiple files that are uploaded to an S3 bucket simultaneously. The SysOps Administrator notices that the operational function occasionally fails to execute due to throttling.
What step should the Administrator take to make sure that the operational function executes?

  • A. Redeploy the operational function to a VPC.
  • B. Increase the operational function timeout.
  • C. Set the operational function concurrency to 1.
  • D. Increase the operational function memory.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://aws.amazon.com/premiumsupport/knowledge-center/best-practices-custom-cf-lambda/

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
jpt2353
Highly Voted 2 years, 1 month ago
THE ANSWER CAN'T BE C. The function occasionally fails due to throttling. Take note of the word: occasionally. Therefore the function runs. Setting the concurrency to 1 will make it throttle even more. If it's 0 then the function can't execute at all. The answer can't be B as well since increasing the timeout is in relation to how long the function is being executed. It has no effect on concurrent executions since the function will still execute until it finishes a certain timeframe. The answer should be D. Increasing the memory will increase the CPU power of the Lambda function and therefore will execute faster.
upvoted 10 times
...
Tce
Highly Voted 2 years, 1 month ago
Answer is D https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html Performance testing your Lambda function is a crucial part in ensuring you pick the optimum memory size configuration. Any increase in memory size triggers an equivalent increase in CPU available to your function.
upvoted 6 times
...
gulu73
Most Recent 9 months ago
Selected Answer: D
Answer should be D
upvoted 1 times
...
Huy
2 years ago
Lambda execution concurrency are shared for all Lambda functions. to fix the throttling, 1 way is to reserve the concurrency of the operation lambda function. Another way is to reduce the execution time. There is no option for reserve concurrency therefore D is selected.
upvoted 1 times
...
Lionnaire
2 years ago
Answer D. https://aws.amazon.com/blogs/aws/new-for-aws-lambda-functions-with-up-to-10-gb-of-memory-and-6-vcpus/
upvoted 1 times
Lionnaire
2 years ago
* Lambda allocates CPU and other resources linearly in proportion to the amount of memory configured *
upvoted 1 times
...
...
abhishek_m_86
2 years ago
D. Increase the operational function memory. Seem correct
upvoted 2 times
...
jackdryan
2 years ago
I'll go with D
upvoted 2 times
...
vob
2 years ago
This is a strangely worded question. The only variable is how many files are uploaded at the same time (or even the size of the files). Normally a function processes one file at a time, an invocation for each. For lots of files, concurrency limits are normally the issue. But there is no answer for that here. C is the opposite and is undesired. D. increasing memory might give some improvement but it is not likely to be a great improvement. A won't achieve anything. If the files are large and making the function slow to complete, then the timeout will apply (B). But invocation was successful and this is not throttling. Therefore the answer must be D, but I think the question is lame because in reality this would not make much of a difference, if any.
upvoted 3 times
...
waterzhong
2 years ago
The answer should be D. Increasing the memory will increase the CPU power of the Lambda function and therefore will execute faster.
upvoted 1 times
...
KhatriRocks
2 years ago
Before going thru the discussion, my answer was also D. Tricky one :)
upvoted 1 times
...
Afolabi
2 years ago
Repeated Question
upvoted 1 times
...
allsitesmember
2 years ago
this question is repeated.
upvoted 1 times
...
proxyolism
2 years ago
agreed with Tce and jpt2353. Answer is D. I dont know this problem is caused with concurrency or memory, but obviously, setting concurrency to 1 means that one of a specific lambda cannot run pararell.
upvoted 2 times
...
Jimmy5
2 years ago
Answer is C https://aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-throttling/ Configure reserved concurrency Verify if you've configured reserved concurrency on your Lambda function. Check the setting using the Lambda console, or by calling the GetFunction API. Note: If a function is configured to have zero reserved concurrency, then the function is throttled because it can't process any events. Be sure to increase the value to a number greater than zero.
upvoted 1 times
...
Tce
2 years, 1 month ago
Answer is D https://aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-throttling/ Check concurrency metrics Check for spikes in Duration metrics for your function. Concurrency depends on function duration. If your code is taking too long to execute, it might not have enough compute resources. Try increasing the function's memory setting.
upvoted 2 times
...
Pavan403
2 years, 1 month ago
Should be C . https://aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-throttling/
upvoted 3 times
...
Phil31
2 years, 1 month ago
Same question as 138. I think should be C. onfigure reserved concurrency Verify if you've configured reserved concurrency on your Lambda function. Check the setting using the Lambda console, or by calling the GetFunction API. Note: If a function is configured to have zero reserved concurrency, then the function is throttled because it can't process any events. Be sure to increase the value to a number greater than zero. https://aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-throttling/
upvoted 2 times
JGD
2 years ago
but they have mentioned Occassionally. So, correct answer D
upvoted 2 times
...
AWSTiger
2 years ago
Not sure if I'm reading this wrong: If a function is configured to have ***zero reserved concurrency, then the function is throttled because it can't process any events.***** Be sure to increase the value to a number greater than zero. The use of the word occasionally means that it's sporadic. If it was initially set to Zero " then the function is throttled because it can't process any events " - in that case its processed in the past so cant be C
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