<prompt> Fana ka mohlala oa mosebetsi o motle oa lambdanan  <response>: Instruction in English: Give an example of a stateful lambda function . Response in English: A stateful lambda function is a function that preserves state information between multiple invocations. This can be done in various ways, such as using database storage or external data stores. Here is an example of a stateful lambda function using Amazon DynamoDB to store state information between invocations in Python:pythonimport boto3def lambda_handlerevent, context: dynamodb boto3.resourcedynamodb table dynamodb.TablemyLambdaCounterTable result table.update_item Key id: myLambdaFunctionCounter, UpdateExpression ADD invocationCount :increment, ExpressionAttributeValues :increment: 1, ReturnValues UPDATED_NEW currentCount resultAttributesinvocationCount return statusCode: 200, body: This function has been invoked times..formatcurrentCount This function uses Amazon DynamoDB as a data store to keep track of the number of times the lambda function has been invoked. Each time the function is invoked, it increments the counter stored in the DynamoDB table and returns the updated value. Since the state information is stored externally, it is preserved between multiple invocations of the function, making it stateful. . Response in Sesotho: Stateful lambda function ke tsebetso e bolokang litaba tsa naha lipakeng tsa likopo tse ngata. Sena se ka etsoa ka mekhoa e fapaneng, joalo ka ho sebelisa polokelo ea database kapa mabenkele a kantle a data. Mohlala ke ona oa tsebetso e hlakileng ea lambda e sebelisang Amazon DynamoDB ho boloka lintlha tsa naha lipakeng tsa likopo ho Python: python import boto3 def lambda_handlerketsahalo, moelelo: dynamodb boto3.resourcedynamodb table dynamodb.Table. myLambdaCounterTable result table.update_item Key id: myLambdaFunctionCounter, UpdateExpression ADD invocationCount :increment, ExpressionAttributeValues :increment: 1, ReturnValues UPDATED_NEW sephethoAttributesinvocationCount khutlisetsa statusCode: 200, body: Mosebetsi ona o nile oa sebelisoa ka makhetlo a ..formatcurrentCount Mosebetsi ona o sebelisa Amazon DynamoDB e le polokelo ea data ho boloka tlaleho ea makhetlo ao tsebetso ea lambda e kopilitsoeng ka eona. Nako le nako ha tsebetso e etsoa, e eketsa khaontareng e bolokiloeng tafoleng ea DynamoDB ebe e khutlisa boleng bo ntlafalitsoeng. Kaha tlhahisoleseding ea mmuso e bolokiloe ka ntle, e bolokiloe pakeng tsa likōpo tse ngata tsa mosebetsi, ho etsa hore e be e hlakileng. 