Machine-translated by Google. Questions are authored in English.
Top

Discussion

Assertion (A): Local disk in a function environment is not a reliable place to keep data.
Reason (R): The environment may be discarded at any time and a later invocation may not see it.

  • A.A is false but R is true
  • B.Both A and R are true, and R is the correct explanation of A
  • C.Both A and R are true, but R is not the correct explanation of A
  • D.A is true but R is false

Answer: B

Correct answer: Both A and R are true, and R is the correct explanation of A

Both are true and the reason gives the cause. The execution environment is created and destroyed by the platform on its own schedule, and successive invocations may land in different environments, so anything written to local disk may be gone or may simply not be visible. The disk is useful as a cache within one invocation or across invocations that happen to share an environment, and for nothing that must be there.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.