← Back to Quiz Home
This quiz covers deeper development topics like DynamoDB access patterns, serverless application modeling (SAM), and error handling strategies.
What is the difference between DynamoDB Query and Scan?
Always prefer Query. Scan should only be used for small tables or export jobs, as it consumes massive amounts of Read Capacity.
How can you securely allow a Lambda function to access a DynamoDB table in the same account?
Identity-based policies attached to the function's execution role are the standard way to grant permissions.
You receive a ProvisionedThroughputExceededException from DynamoDB. How should your application handle it?
This error means you are writing too fast. Backing off allows the bucket to refill (token bucket algorithm) and the request to succeed on retry.
What is sam local start-api used for?
SAM Local allows developers to test their functions and APIs locally before deploying to the cloud.
Which Boto3 method would you use to upload a file to S3?
upload_file is a high-level method that handles multipart uploads automatically for large files.
What is the purpose of a Lambda Layer?
Layers promote code reuse and keep your function code small and focused on business logic.
How does AWS X-Ray help you debug a serverless application?
X-Ray provides end-to-end tracing, allowing you to pinpoint exactly which downstream call is slowing down the response.
What is the "Item Size Limit" for a single item in DynamoDB?
This includes both the attribute names and values. For larger data, look to S3.
AppSync is the go-to service for building GraphQL APIs on AWS.
Which authorization method would you use for a public-facing API where you want to identify clients but not necessarily authenticate users?
API Keys are good for throttling and tracking usage by client app, but are not secure credentials (easy to steal).
What happens if you exceed the concurrence limit of your Lambda function (Throttling)?
Handling throttling behavior differs based on invocation type (Synchronous vs Asynchronous).
How do you enable "Optimistic Locking" in DynamoDB to prevent overwriting changes?
If the version on the server has changed since you read it, the write fails, preventing lost updates.
Which service can you use to test your API Gateway configuration (Mock integration) without writing a backend Lambda?
Mock integrations allow you to return hardcoded responses, useful for testing CORS or API contracts before implementation.
What is the maximum execution time (timeout) for an API Gateway request?
Unlike Lambda (15m), API Gateway has a hard 29s limit. Long running jobs must be asynchronous.
Which AWS service allows you to run containerized microservices without managing EC2 instances?
Fargate abstracts the host management, letting you focus on the task definition.
How can you efficiently debug a Lambda function that is failing in production?
Logs and Traces are the primary observability tools for serverless. You cannot SSH into a Lambda function.
What is "Alias" in AWS Lambda?
Aliases allow you to promote code from Dev to Prod without changing the Amazon Resource Name (ARN) invoked by the client.
How do you implement a "DLQ Redrive" for SQS?
Native redrive support simplifies the process of re-processing failed messages.
What defines the resources in a SAM template?
SAM templates are supersets of CloudFormation templates.
Why would you use "Lazy Loading" (initializing variables outside the handler) in Lambda?
Lazy loading heavy SDK clients or DB connections is a best practice for high-performance Lambda functions.
Quiz Progress
0 / 0 questions answered
(0%)
0 correct
Quiz Complete!
0%
📚 Study Guides
📬 Weekly DevOps, Cloud & Gen AI quizzes & guides