Timedora
Free Practice Quiz Question List

Function-as-a-Service Fundamentals Online Quiz Questions

Use this free practice quiz with 10 questions to review Function-as-a-Service Fundamentals, test your knowledge, and prepare for your next test or exam.

10 questions
01
Choose one
1 point

A function package contains compiled libraries. Which preparation approach best supports running it in the intended environment?

  1. A

    Build the package for any available runtime; compiled libraries are independent of operating system and processor architecture.

  2. B

    Build the package for the target runtime and operating environment, accounting for compiled-library dependencies.

  3. C

    Choose a package format based only on the function's event trigger; the runtime and operating environment do not matter.

  4. D

    Include extra files and dependencies to ensure the package will work in every environment.

02
Choose one
1 point

Which sequence best describes the typical function development and deployment lifecycle, from initial planning through ongoing operation?

  1. A

    Implement the handler, define the trigger, configure and deploy, build and package, observe and maintain, then invoke and scale.

  2. B

    Define the trigger, build and package, observe and maintain, implement the handler, invoke and scale, then configure and deploy.

  3. C

    Define the task and trigger, implement the handler, build and package, configure and deploy, invoke and scale, then observe and maintain.

  4. D

    Configure and deploy, define the task and trigger, implement the handler, invoke and scale, build and package, then observe and maintain.

03
Choose one
1 point

A function needs to retain application state across invocations. Which design follows from the fact that an execution environment may be reused but may also be replaced?

  1. A

    Store persistent application state in an external data store because execution-environment reuse is not guaranteed.

  2. B

    Keep persistent application state only in process memory because the provider always reuses the same environment.

  3. C

    Store persistent application state in the handler's local variables because they survive environment shutdown.

  4. D

    Avoid external storage because every new invocation starts in the same initialized environment.

04
Choose one
1 point

Which statement correctly describes how a runtime and a handler work together during a function invocation?

  1. A

    The handler supplies the language environment, while the runtime interprets each event and performs the application's task.

  2. B

    The runtime and handler are interchangeable names for the provider's execution infrastructure.

  3. C

    The runtime defines one universal event format, so the handler does not need to interpret trigger-specific data.

  4. D

    The runtime makes invocation data available to the handler and communicates outcomes to the platform; the handler interprets the event and performs the task.

05
Choose one
1 point

An asynchronous function's event may be retried after a failure. What property should its handler generally have to avoid unintended duplicate effects?

  1. A

    Make the handler depend on each event being processed exactly once, since retries prevent duplicates.

  2. B

    Make the handler idempotent so repeating the same operation does not create an unintended duplicate effect.

  3. C

    Make retries create a new, distinct effect each time so duplicate processing is visible.

  4. D

    Avoid handling failures because asynchronous events cannot be retried.

06
Choose one
1 point

Which statement best explains the function-as-a-service model and what “serverless” means?

  1. A

    Serverless means the function runs without any servers or execution infrastructure.

  2. B

    FaaS requires developers to keep one application process running continuously on servers they manage.

  3. C

    FaaS runs function code on demand while the provider manages the execution infrastructure; serverless does not mean servers are absent.

  4. D

    FaaS means the provider writes the application's handler while developers manage its servers.

07
Choose one
1 point

How do functions commonly fit into a larger application in the FaaS model?

  1. A

    Functions can handle focused tasks within a larger application and communicate through events and managed services.

  2. B

    Functions must contain the entire application and run its process continuously.

  3. C

    Functions are primarily used to replace the provider's execution infrastructure.

  4. D

    Functions can only operate independently and cannot communicate with managed services.

08
Choose one
1 point

A handler may receive events from different triggers. Which approach accounts for provider-specific event formats?

  1. A

    Assume every function invocation has the same event format and metadata.

  2. B

    Use the runtime to convert every trigger's event into a universal format that never varies.

  3. C

    Ignore event data and let the platform perform the handler's task.

  4. D

    Interpret event data according to the trigger and provider rather than assuming every invocation has the same format.

09
Choose one
1 point

A service needs a function to calculate a price and return the result immediately. Which invocation model best fits this need?

  1. A

    The function is invoked at a set time by a timer, and the caller does not receive a response.

  2. B

    The caller waits for the function's response, which is useful when an immediate result is needed.

  3. C

    A queue or stream submits a batch of records, and the caller always waits for each result.

  4. D

    The event source continues without waiting, and the function's result is immediately returned to it.

10
Choose one
1 point

What does “cold start” refer to in the lifecycle of a function execution environment?

  1. A

    The delay while a reused environment shuts down after its final invocation.

  2. B

    The time required for the provider to retry an asynchronous event.

  3. C

    Initialization latency when a newly created execution environment is set up.

  4. D

    The delay caused when a handler writes persistent state to an external data store.