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

Serverless Computing Questions and Answers

Answer: A

Correct answer: increases the processing power allocated to it

On the major platforms CPU is allocated in proportion to the memory setting, so raising memory raises processing power with it. That has a counter-intuitive consequence: a compute-bound function can be *cheaper* at a higher memory setting, because it finishes proportionally faster and the price is per gigabyte-second. The timeout and account concurrency limits are separate settings, and the unit price does not fall.

Please log in or register to report this question.

22.

Assertion (A): Raising a function's memory can sometimes reduce its total cost.
Reason (R): The function completes proportionately faster because processor share rises with memory.

Answer: B

Both are true and the reason gives the mechanism, and the outcome depends on whether the work is actually processor bound. A function waiting on a network call gains nothing from the extra capacity and simply costs more.

Please log in or register to report this question.

23.

Arrange the stages of a cold invocation in order.
1. the initialisation code outside the handler runs
2. the platform allocates an execution environment
3. the handler is called with the event payload
4. the runtime and the deployment package are loaded

Answer: C

Only the last stage repeats on a warm invocation, which is why the first three are collectively called the cold start. Work moved into the third stage is paid for once rather than on every call. That is why connection pools and loaded models are set up outside the handler.

Please log in or register to report this question.

Answer: D

Chaining functions by having each invoke the next leaves nowhere to keep progress and no sensible place to retry. An orchestrator holds the state of the workflow outside the functions and handles failure between steps.

Please log in or register to report this question.

25.

Consider the following statements about chaining functions directly.
1. There is no single place holding the state of the overall workflow.
2. A failure midway leaves the process in an unclear condition.
3. Direct chaining is the recommended pattern for long workflows.

Answer: A

The first two are correct and are the reasons orchestration services exist. The third is the practice those services were created to replace, and it becomes unmanageable beyond two or three steps. An orchestrator also gives a single place to see where a workflow actually stopped.

Please log in or register to report this question.

26.

State whether the following is true or false.
A function should be written so that running it twice with the same event is safe.

Answer: B

Correct answer: True

Event delivery is generally at-least-once, so retries after a timeout or a transient error can deliver the same event twice, and a function that is not idempotent will double-charge, double-post or corrupt its state. Writing with an idempotency key, or making the operation naturally repeatable, is therefore a requirement of the model rather than a refinement.

Please log in or register to report this question.

27.

Assertion (A): Idempotency matters more in serverless than in a traditional request handler.
Reason (R): Event sources typically deliver at least once, so retries and duplicates are routine.

Answer: C

Both are true and the reason gives the cause, and the platform's own retry behaviour on failure adds to it. A handler that charges a card without a deduplication key will eventually charge it twice. Writing the deduplication key before doing the work is the usual guard against it.

Please log in or register to report this question.

Answer: D

Long lived stateful processes are the opposite of the model, which assumes short invocations in disposable environments. The other three are the properties that define it. A workload that needs any of them is telling you to choose a different service.

Please log in or register to report this question.

Loading…

Topics

    No topic!
Tags: Serverless Computing Questions and Answers || Serverless Computing MCQ Questions and Answers || Serverless Computing GK Questions and Answers || Serverless Computing GK MCQ Questions || Serverless Computing Multiple Choice Questions and Answers || Serverless Computing GK || GK on Serverless Computing || Cloud Computing Questions and Answers || Cloud Computing MCQ Questions and Answers || Cloud Computing GK Questions and Answers || GK on Cloud Computing