Timedora
Free Online Flashcard Deck

3 AWS Lambda and Event-Driven Compute Free Online FlashCards

Study 3 AWS Lambda and Event-Driven Compute with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What does AWS Lambda provide?

Back

AWS Lambda runs code in response to events without requiring you to manage the underlying servers.

02
Front

What are the main parts of a Lambda function?

Back

A Lambda function includes code, a runtime, a handler (entry point), and configuration.

03
Front

Can Lambda execution-environment memory serve as durable storage?

Back

Execution environments may be reused, but their memory and temporary files are not durable. Store persistent data in services such as Amazon S3 or DynamoDB.

04
Front

What happens in a direct Lambda invocation?

Back

With direct invocation, a service such as API Gateway, EventBridge, or S3 invokes the function.

05
Front

How does a Lambda event source mapping work?

Back

An event source mapping polls a queue or stream, such as Amazon SQS or DynamoDB Streams, then invokes the function with a batch of records.

06
Front

Why should event processing be idempotent?

Back

Idempotent processing ensures that reprocessing the same event does not create another unintended result, such as a duplicate charge or order.

07
Front

What does a Lambda execution role control?

Back

The execution role grants a function permission to access AWS resources. Apply least privilege by granting only the permissions needed for its task.

08
Front

Where is permission for a service to directly invoke a function generally granted?

Back

A direct invoker generally needs permission in the function’s resource-based policy. This is separate from the execution role’s resource-access permissions.

09
Front

What factors guide the choice between Lambda and other compute services?

Back

Choose compute based on workload duration, runtime and operating-system needs, control requirements, and traffic pattern; Lambda is not a general replacement for EC2 or containers.

10
Front

How can Lambda aliases support safer deployments and rollbacks?

Back

Publish an immutable version and point an alias, such as prod, to it. Moving the alias to another version supports deployment or rollback.

11
Front

What does reserved concurrency do?

Back

Reserved concurrency sets a function’s concurrency ceiling and reserves that capacity for it. The ceiling can protect other workloads but may cause throttling.

12
Front

When is provisioned concurrency useful?

Back

Provisioned concurrency prepares execution environments in advance to reduce initialization delay for latency-sensitive workloads; it adds charges.