AWS Serverless Computing 2 — Questions and Answers
Question 1: Which Amazon API Gateway endpoint type routes requests through CloudFront edge locations to minimize latency for global clients?
- Regional endpoint
- Private endpoint
- Edge-optimized endpoint (Correct answer)
- Multi-region endpoint
Correct answer: Edge-optimized endpoint
Edge-optimized API Gateway endpoints route requests through the nearest CloudFront point of presence, reducing latency for geographically distributed clients.
Question 2: What language does AWS Step Functions use to define state machines and workflow logic?
- AWS CloudFormation YAML
- Amazon States Language (ASL) (Correct answer)
- AWS SAM JSON
- AWS CDK TypeScript
Correct answer: Amazon States Language (ASL)
AWS Step Functions uses Amazon States Language (ASL), a JSON-based language, to define states, transitions, and the overall workflow logic.
Question 3: Which AWS Step Functions workflow type supports durations up to one year and is designed for long-running workflows that wait for human approvals?
- Express Workflows
- Standard Workflows (Correct answer)
- Async Workflows
- Callback Workflows
Correct answer: Standard Workflows
Standard Workflows support durations up to one year and can pause via task tokens to wait for human approval or external callbacks; Express Workflows max out at 5 minutes.
Question 4: When configuring an SQS event source mapping for Lambda, which parameter determines how many messages are delivered to a single function invocation?
- MaximumConcurrency
- BatchSize (Correct answer)
- MessageRetentionPeriod
- VisibilityTimeout
Correct answer: BatchSize
BatchSize controls how many SQS messages are retrieved and included in a single Lambda event, up to 10,000 for standard queues.
Question 5: What is the purpose of an API Gateway usage plan?
- To define IAM permissions for API callers
- To throttle requests and enforce quotas per API key (Correct answer)
- To cache API responses at CloudFront edges
- To configure VPC endpoint access
Correct answer: To throttle requests and enforce quotas per API key
Usage plans define per-API-key throttling limits (requests per second) and quotas (requests per day/week/month), enabling fine-grained access control for API consumers.
Question 6: Which AWS service enables a fan-out pattern where a single event simultaneously triggers multiple subscribed Lambda functions?
- AWS Batch
- Amazon SNS (Correct answer)
- AWS Glue
- Amazon Kinesis Data Firehose
Correct answer: Amazon SNS
Amazon SNS supports fan-out by delivering one published message to all subscribed endpoints, including multiple Lambda functions, simultaneously.
Question 7: In API Gateway, what integration type passes the raw request directly to a Lambda function without any transformation by the service?
- AWS integration
- HTTP_PROXY integration
- AWS_PROXY (Lambda Proxy) integration (Correct answer)
- MOCK integration
Correct answer: AWS_PROXY (Lambda Proxy) integration
The AWS_PROXY (Lambda Proxy) integration passes the entire HTTP request—headers, path, query params, and body—directly to Lambda as a structured event without API Gateway transformation.
Which Amazon API Gateway endpoint type routes requests through CloudFront edge locations to minimize latency for global clients?