An image-processing Lambda function must preserve resized images after its invocation finishes. Which approach provides durable storage?
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.
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.
- A
True
- B
False
A team configures an Amazon SQS event source mapping for a Lambda function. How does this mapping typically deliver queued work to the function?
- A
The queue directly calls the function once for every message.
- B
The function waits for a service to invoke it synchronously.
- C
Lambda polls the queue and invokes the function with batches of records.
- D
The function must periodically upload its own messages to the queue.
For a Lambda function, use environment variables for and retrieve from a managed secret store rather than embedding them in code or logs.
A latency-sensitive Lambda workload needs execution environments ready before requests arrive. Which feature is designed to reduce initialization delay in this way?
- A
Provisioned concurrency prepares execution environments in advance to reduce initialization delay.
- B
Reserved concurrency ensures that every invocation starts without initialization delay.
- C
A resource-based policy prepares execution environments before a function is invoked.
- D
An event source mapping guarantees that the function's initialization delay is eliminated.
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.
- A
The SQS mapping needs source-reading permissions through the function's execution role.
- B
EventBridge generally needs permission in the target function's resource-based policy to invoke it directly.
- C
The execution role's SQS read permission automatically grants EventBridge permission to invoke the function.
- D
The function's resource-based policy replaces its execution role when it accesses AWS resources.
What is the name of the role that grants a Lambda function permission to access AWS resources such as a bucket or database?
For standard Lambda functions, charges are based primarily on requests and execution duration, and provisioned concurrency adds charges.
- A
True
- B
False
In a Lambda function, the is the code entry point, while is temporary storage and not a durable data store.
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?
- A
Increase Lambda concurrency without limit because Lambda scaling protects downstream systems.
- B
Coordinate concurrency limits with the database's or external API's capacity.
- C
Use only CloudWatch Logs to increase the database's throughput.
- D
Move the function into a VPC so its concurrency automatically matches the database's capacity.
A team wants to monitor a Lambda-based workflow for failures and accumulating work. Which practices are appropriate? Select all that apply.
- A
Use Lambda metrics such as invocations, errors, duration, and concurrency.
- B
Use CloudWatch Logs for application logs.
- C
Create alarms for signals such as throttles or a growing queue backlog.
- D
Include credentials in structured logs so an event can be traced more easily.
What processing property helps ensure that receiving the same event again does not create a second unintended charge or order?
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.
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?
- A
The function's execution-environment memory
- B
The function's /tmp directory
- C
A variable initialized by the handler
- D
Amazon S3
A team connects an Amazon SQS queue to a Lambda function using an event source mapping. Which description matches this invocation pattern?
- A
Amazon SQS directly pushes each message to the function, one at a time
- B
Lambda polls the queue and invokes the function with a batch of records
- C
The function polls the queue using its resource-based policy
- D
The queue invokes the function's execution role with a batch of records
A Lambda function must read uploaded files from one S3 bucket. Which permission mechanism should grant the running function that access?
- A
The function's resource-based policy
- B
The S3 bucket's event notification settings
- C
The function's execution role
- D
A Lambda alias
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?
- A
Provisioned concurrency, because it caps scaling and reserves capacity
- B
Reserved concurrency, because it sets a ceiling and reserves capacity
- C
An alias, because it limits the number of simultaneous invocations
- D
An event source mapping, because it reserves database connections
A team can publish an immutable Lambda version and move an alias to a different version to deploy or roll back.
- A
True
- B
False
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?
A service directly invokes a Lambda function. Which policy type generally needs to grant that service permission to invoke the function?
Related study packs and tools
- Quiz
1 Networking Fundamentals
A medium-difficulty quiz on networking fundamentals, including communication roles, protocol layers, data units, and network models.
CompTIA A+ NetworkingUpdated - Flashcards
2 Protocols and Ports
Review how TCP and UDP work, what common network ports indicate, and how to interpret port clues cautiously.
CompTIA A+ NetworkingUpdated - Quiz
2 Protocols and Ports
A medium-difficulty quiz on interpreting network protocols, ports, and common traffic patterns.
CompTIA A+ NetworkingUpdated - Quiz
3 Accessories and Peripheral Devices
A medium-difficulty quiz on selecting, connecting, configuring, and troubleshooting laptop accessories and peripheral devices.
CompTIA A+ Mobile DevicesUpdated - Quiz
4 Mobile Connectivity
A 14-question quiz on applying mobile connectivity concepts to common settings, usage, and troubleshooting situations.
CompTIA A+ Mobile DevicesUpdated - Quiz
4 Wi-Fi Networks
A 14-question quiz on Wi-Fi networks, moving from core concepts to applied troubleshooting and explanation.
CompTIA A+ NetworkingUpdated - Quiz
5 Network Operations and Reliability
A medium-difficulty quiz on network operations, monitoring, configuration management, resilience, and recovery planning.
- Quiz
6 Certificates and Public Key Infrastructure
A medium-difficulty quiz on certificates and public key infrastructure, focused on applying concepts to practical validation and issuance scenarios.
- Study guide
6 Security Operations and Incident Response
Learn how security teams monitor activity, manage vulnerabilities, respond to incidents, preserve digital evidence, and restore services safely.
- Quiz
6 SOHO Network Setup and Troubleshooting
A medium-difficulty quiz on setting up, securing, and troubleshooting a small-office/home-office network.
CompTIA A+ NetworkingUpdated - Study guide
8 Comprehensive Security+ Practice and Review
A scenario-focused guide to Security+ SY0-701 concepts, emphasizing evidence-based incident response, access control, cryptography, vulnerability handling, recovery objectives, and risk governance.
- Study guide
8 Security Operations and Incident Response
Learn how to recognize and assess security incidents, preserve evidence, contain and remove threats, restore trustworthy services, and improve security through lessons learned.