AWS Developer - Advanced Quiz
← Back to Quiz Home
This quiz tests your mastery of serverless best practices, idempotency, streaming patterns, and cost optimization.
How can you ensure "Idempotency" in a Lambda function handling payment requests?
Tools like AWS Lambda Powertools allow you to wrap your handler with an idempotency decorator that creates/checks a record in DynamoDB automatically.
A Kinesis Data Stream has 10 shards. You have a Lambda consumer. What is the maximum number of concurrent Lambda invocations processing this stream?
By default, Lambda polls each shard with one concurrent execution. You can increase this with "Parallelization Factor", but the base unit is per-shard.
What is the "Lambda Power Tuning" tool used for?
Sometimes allocating more memory (which provides more CPU) makes the function run so much faster that the total cost actually decreases.
How do you strictly preserve the order of messages processed by a standard Lambda SQS trigger?
Standard SQS queues provide "Best Effort" ordering. FIFO queues guarantee First-In-First-Out and exactly-once processing.
What is "Provisioned Concurrency" spillover?
You pay for the provisioned amount + any standard invocations that spill over.
You need to analyze 1 GB of data in S3 using a Lambda function. Downloading it all to memory causes OOM (Out Of Memory). What is the solution?
Streaming allows you to process files larger than the available RAM.
What is the effect of the Reserved Concurrency setting on a Lambda function?
Setting Reserved Concurrency to 0 acts as a "Kill Switch" for the function (it cannot be invoked).
How do you handle "Poison Pill" messages in a Kinesis stream processed by Lambda?
If a bad record causes the Lambda to crash, Kinesis will retry indefinitely (blocking the shard) unless you configure handling options.
What is "Step Functions Express Workflows" best used for?
Express Workflows are cheaper and faster for high-throughput scenarios compared to Standard Workflows.
What is the difference between @DynamoDBVersionAttribute (Optimistic Locking) and DynamoDB Transactions?
Use Transactions (TransactWriteItems) when you need "All-or-Nothing" operations across different items (e.g., Bank Transfer: Debit A, Credit B).
How can you reduce the latency of a Lambda function that connects to RDS?
Lambda can quickly exhaust database connection limits. RDS Proxy manages a warm pool of connections for the functions to reuse.
What is a Lambda "Extension"?
Extensions allow tools (like Datadog, HashiCorp Vault) to run alongside your function handler.
When using API Gateway with Lambda, what does the "Proxy Integration" do?
Proxy Integration is the simplest and most common way to build serverless APIs, giving the Lambda full control over the request/response.
How do you implement specific usage quotas (throttling) for different tiers of customers (Free vs Premium) in API Gateway?
Usage Plans allow you to monetize your API by enforcing limits based on the API Key presented.
Which service would you use to store configuration parameters and secrets, providing a hierarchical storage and versioning?
Parameter Store allows you to separate config from code. (e.g., /my-app/prod/db-url).
What is the "Fan-out" pattern implementation limit in SNS?
Enhanced Fan-out allows multiple Kinesis consumers to read the same stream in parallel without fighting for read throughput.
How do you secure environment variables in Lambda effectively?
While env vars are encrypted at rest by default using a default key, using a customer-managed KMS key provides audited control over who can decrypt them.
Which mechanism allows a Lambda function to process SQS messages in batches, but only delete the successful messages from the queue if some fail?
If you return the IDs of the failed messages in the response, SQS will only retry those specific messages, not the whole batch.
What is "Cognito User Pools" primarily used for?
Cognito handles the complexity of user management (Password reset, MFA, Social login).
How do you handle "Eventual Consistency" issues when reading from a DynamoDB secondary index (GSI)?
You cannot request strongly consistent reads from a Global Secondary Index (GSI).
Quiz Progress
0 / 0 questions answered
(0% )
0 correct
Quiz Complete!
0%
Reset quiz
📚 Study Guides
📬 Weekly DevOps, Cloud & Gen AI quizzes & guides