Topic 1 Question 45
A developer is writing an AWS Lambda function. The developer wants to log key events that occur while the Lambda function runs. The developer wants to include a unique identifier to associate the events with a specific function invocation. The developer adds the following code to the Lambda function:
Which solution will meet this requirement?Obtain the request identifier from the AWS request ID field in the context object. Configure the application to write logs to standard output.
Obtain the request identifier from the AWS request ID field in the event object. Configure the application to write logs to a file.
Obtain the request identifier from the AWS request ID field in the event object. Configure the application to write logs to standard output.
Obtain the request identifier from the AWS request ID field in the context object. Configure the application to write logs to a file.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: A👍 4Watascript2023/03/25
- 正解だ と思う選択肢: A
A https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html https://docs.aws.amazon.com/lambda/latest/dg/nodejs-logging.html There is no explicit information for the runtime, the code is written in Node.js.
👍 4Untamables2023/03/25 - 正解だと思う選択肢: A
I think the answer is A
👍 3March20232023/03/23
シャッフルモード