Timedora
Free Practice Quiz Question List

3 AWS Lambda and Event-Driven Compute Online Quiz Questions

Use this free practice quiz with 20 questions to review 3 AWS Lambda and Event-Driven Compute, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

An image-processing Lambda function must preserve resized images after its invocation finishes. Which approach provides durable storage?

  1. A

    Keep the output only in the function's memory.

  2. B

    Write the output to Amazon S3.

  3. C

    Store the output in /tmp for later invocations.

  4. D

    Assume a reused execution environment will preserve the output.

02
True or false
1 point

A team publishes a Lambda function version and points the prod alias to it. The alias can later be moved to another version for deployment or rollback.

  1. A

    True

  2. B

    False

03
Choose one
1 point

A team configures an Amazon SQS event source mapping for a Lambda function. How does this mapping typically deliver queued work to the function?

  1. A

    The queue directly calls the function once for every message.

  2. B

    The function waits for a service to invoke it synchronously.

  3. C

    Lambda polls the queue and invokes the function with batches of records.

  4. D

    The function must periodically upload its own messages to the queue.

04
Fill in the blank
1 point

For a Lambda function, use environment variables for and retrieve from a managed secret store rather than embedding them in code or logs.

05
Choose one
1 point

A latency-sensitive Lambda workload needs execution environments ready before requests arrive. Which feature is designed to reduce initialization delay in this way?

  1. A

    Provisioned concurrency prepares execution environments in advance to reduce initialization delay.

  2. B

    Reserved concurrency ensures that every invocation starts without initialization delay.

  3. C

    A resource-based policy prepares execution environments before a function is invoked.

  4. D

    An event source mapping guarantees that the function's initialization delay is eliminated.

06
Choose all
1 point

A system uses an SQS event source mapping for one Lambda function and has EventBridge directly invoke another. Which permission statements are correct? Select all that apply.

  1. A

    The SQS mapping needs source-reading permissions through the function's execution role.

  2. B

    EventBridge generally needs permission in the target function's resource-based policy to invoke it directly.

  3. C

    The execution role's SQS read permission automatically grants EventBridge permission to invoke the function.

  4. D

    The function's resource-based policy replaces its execution role when it accesses AWS resources.

07
Written response
1 point

What is the name of the role that grants a Lambda function permission to access AWS resources such as a bucket or database?

08
True or false
1 point

For standard Lambda functions, charges are based primarily on requests and execution duration, and provisioned concurrency adds charges.

  1. A

    True

  2. B

    False

09
Fill in the blank
1 point

In a Lambda function, the is the code entry point, while is temporary storage and not a durable data store.

10
Choose one
1 point

A Lambda function calls a database that cannot handle the function's possible peak traffic. Which response best addresses the risk of the function overloading the database?

  1. A

    Increase Lambda concurrency without limit because Lambda scaling protects downstream systems.

  2. B

    Coordinate concurrency limits with the database's or external API's capacity.

  3. C

    Use only CloudWatch Logs to increase the database's throughput.

  4. D

    Move the function into a VPC so its concurrency automatically matches the database's capacity.

11
Choose all
1 point

A team wants to monitor a Lambda-based workflow for failures and accumulating work. Which practices are appropriate? Select all that apply.

  1. A

    Use Lambda metrics such as invocations, errors, duration, and concurrency.

  2. B

    Use CloudWatch Logs for application logs.

  3. C

    Create alarms for signals such as throttles or a growing queue backlog.

  4. D

    Include credentials in structured logs so an event can be traced more easily.

12
Written response
1 point

What processing property helps ensure that receiving the same event again does not create a second unintended charge or order?

13
Open ended
1 point

A team is choosing compute for a workload that may run for long periods, requires specific runtime and operating-system behavior, and has a known traffic pattern. Explain how to decide whether to use Lambda, Amazon EC2, or a container service. Address workload duration, runtime and operating-system needs, control requirements, and traffic pattern.

14
Choose one
1 point

An image-processing function needs to retain resized images after its invocation ends and its execution environment is discarded. Where should it store those images?

  1. A

    The function's execution-environment memory

  2. B

    The function's /tmp directory

  3. C

    A variable initialized by the handler

  4. D

    Amazon S3

15
Choose one
1 point

A team connects an Amazon SQS queue to a Lambda function using an event source mapping. Which description matches this invocation pattern?

  1. A

    Amazon SQS directly pushes each message to the function, one at a time

  2. B

    Lambda polls the queue and invokes the function with a batch of records

  3. C

    The function polls the queue using its resource-based policy

  4. D

    The queue invokes the function's execution role with a batch of records

16
Choose one
1 point

A Lambda function must read uploaded files from one S3 bucket. Which permission mechanism should grant the running function that access?

  1. A

    The function's resource-based policy

  2. B

    The S3 bucket's event notification settings

  3. C

    The function's execution role

  4. D

    A Lambda alias

17
Choose one
1 point

A function's traffic could overwhelm a shared downstream service. The team wants to cap the function's concurrency while reserving that capacity for the function. Which setting best fits?

  1. A

    Provisioned concurrency, because it caps scaling and reserves capacity

  2. B

    Reserved concurrency, because it sets a ceiling and reserves capacity

  3. C

    An alias, because it limits the number of simultaneous invocations

  4. D

    An event source mapping, because it reserves database connections

18
True or false
1 point

A team can publish an immutable Lambda version and move an alias to a different version to deploy or roll back.

  1. A

    True

  2. B

    False

19
Written response
1 point

A Lambda function may receive the same event more than once. What property should its processing have so that reprocessing does not create a second charge or order?

20
Written response
1 point

A service directly invokes a Lambda function. Which policy type generally needs to grant that service permission to invoke the function?