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

Discussion

Consider the following statements about cold starts.
1. A larger deployment package generally lengthens the cold start.
2. Work done outside the handler is paid for once per environment.
3. Every invocation of a function incurs a cold start.

  • A.All of them
  • B.1 and 2 only
  • C.3 only
  • D.1 only

Answer: B

Correct answer: 1 and 2 only

Statements 1 and 2 are correct: a larger package takes longer to download and unpack, and initialisation code outside the handler runs once when the environment is created rather than on every call - which is why database clients and SDK objects are built there. Statement 3 is wrong: a warm environment is reused for subsequent invocations, and in a busy function the great majority of calls incur no cold start at all.

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

Post your comment

Please log in or register to post a comment.