A function package contains compiled libraries. Which preparation approach best supports running it in the intended environment?
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.
Which sequence best describes the typical function development and deployment lifecycle, from initial planning through ongoing operation?
- A
Implement the handler, define the trigger, configure and deploy, build and package, observe and maintain, then invoke and scale.
- B
Define the trigger, build and package, observe and maintain, implement the handler, invoke and scale, then configure and deploy.
- C
Define the task and trigger, implement the handler, build and package, configure and deploy, invoke and scale, then observe and maintain.
- D
Configure and deploy, define the task and trigger, implement the handler, invoke and scale, build and package, then observe and maintain.
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?
- A
Store persistent application state in an external data store because execution-environment reuse is not guaranteed.
- B
Keep persistent application state only in process memory because the provider always reuses the same environment.
- C
Store persistent application state in the handler's local variables because they survive environment shutdown.
- D
Avoid external storage because every new invocation starts in the same initialized environment.
Which statement correctly describes how a runtime and a handler work together during a function invocation?
- A
The handler supplies the language environment, while the runtime interprets each event and performs the application's task.
- B
The runtime and handler are interchangeable names for the provider's execution infrastructure.
- C
The runtime defines one universal event format, so the handler does not need to interpret trigger-specific data.
- 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.
An asynchronous function's event may be retried after a failure. What property should its handler generally have to avoid unintended duplicate effects?
- A
Make the handler depend on each event being processed exactly once, since retries prevent duplicates.
- B
Make the handler idempotent so repeating the same operation does not create an unintended duplicate effect.
- C
Make retries create a new, distinct effect each time so duplicate processing is visible.
- D
Avoid handling failures because asynchronous events cannot be retried.
Which statement best explains the function-as-a-service model and what “serverless” means?
- A
Serverless means the function runs without any servers or execution infrastructure.
- B
FaaS requires developers to keep one application process running continuously on servers they manage.
- C
FaaS runs function code on demand while the provider manages the execution infrastructure; serverless does not mean servers are absent.
- D
FaaS means the provider writes the application's handler while developers manage its servers.
How do functions commonly fit into a larger application in the FaaS model?
- A
Functions can handle focused tasks within a larger application and communicate through events and managed services.
- B
Functions must contain the entire application and run its process continuously.
- C
Functions are primarily used to replace the provider's execution infrastructure.
- D
Functions can only operate independently and cannot communicate with managed services.
A handler may receive events from different triggers. Which approach accounts for provider-specific event formats?
- A
Assume every function invocation has the same event format and metadata.
- B
Use the runtime to convert every trigger's event into a universal format that never varies.
- C
Ignore event data and let the platform perform the handler's task.
- D
Interpret event data according to the trigger and provider rather than assuming every invocation has the same format.
A service needs a function to calculate a price and return the result immediately. Which invocation model best fits this need?
- A
The function is invoked at a set time by a timer, and the caller does not receive a response.
- B
The caller waits for the function's response, which is useful when an immediate result is needed.
- C
A queue or stream submits a batch of records, and the caller always waits for each result.
- D
The event source continues without waiting, and the function's result is immediately returned to it.
What does “cold start” refer to in the lifecycle of a function execution environment?
- A
The delay while a reused environment shuts down after its final invocation.
- B
The time required for the provider to retry an asynchronous event.
- C
Initialization latency when a newly created execution environment is set up.
- D
The delay caused when a handler writes persistent state to an external data store.
Related study packs and tools
AWS Cloud Concepts
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
12 study toolsAWS Cloud Practitioner Practice Test
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
15 study toolsAWS Cloud Technology and Services: Cloud Databases
Focused study of relational and nonrelational databases and service selection concepts.
12 study toolsAWS Cloud Technology and Services: Container Services
Focused study of containers, orchestration and container service use cases.
27 study toolsAWS Cloud Technology and Services: EC2 Compute
Focused study of instances, instance types, scaling and compute use cases.
12 study toolsAWS Cloud Technology and Services: S3 Storage
Focused study of objects, buckets, storage classes and storage use cases.
12 study tools