AWS AWS Application Integration and Messaging 5 — Questions and Answers
Question 1: Which Amazon API Gateway integration type passes the request body directly to the backend without any transformation?
- AWS
- HTTP
- AWS_PROXY (Correct answer)
- MOCK
Correct answer: AWS_PROXY
The AWS_PROXY (Lambda proxy) integration passes the entire request as-is to Lambda, with API Gateway not transforming the request or response.
Question 2: A company migrates from RabbitMQ to AWS and needs to maintain compatibility with AMQP protocols. Which AWS service is the best fit?
- Amazon SQS
- Amazon SNS
- Amazon MQ (Correct answer)
- Amazon Kinesis
Correct answer: Amazon MQ
Amazon MQ is a managed message broker supporting ActiveMQ and RabbitMQ, providing compatibility with industry-standard protocols like AMQP, MQTT, and STOMP.
Question 3: What does the SQS visibility timeout control?
- How long a message is stored in the queue
- How long a message is hidden from other consumers after being received (Correct answer)
- How long delivery is delayed after a message is sent
- How long before a message is moved to a DLQ
Correct answer: How long a message is hidden from other consumers after being received
The visibility timeout temporarily hides a message from other consumers while it is being processed, preventing duplicate processing.
Question 4: In AWS Step Functions, which state type is used to introduce a wait period before transitioning to the next state?
- Pass
- Wait (Correct answer)
- Task
- Choice
Correct answer: Wait
The Wait state in Step Functions pauses execution for a specified duration or until a specific timestamp before proceeding.
Question 5: Which Kinesis Data Streams feature allows multiple consumers to read from a stream simultaneously with enhanced throughput per consumer?
- Shared Throughput
- Enhanced Fan-Out (Correct answer)
- Parallel Processing
- Consumer Groups
Correct answer: Enhanced Fan-Out
Kinesis Enhanced Fan-Out gives each registered consumer a dedicated 2 MB/s throughput per shard using HTTP/2 push, instead of sharing the 2 MB/s read limit.
Question 6: An SNS topic needs to filter messages so that an SQS queue only receives orders with 'status': 'URGENT'. Which SNS feature handles this?
- Message Filtering
- Subscription Filter Policy (Correct answer)
- Topic Policy
- Access Control List
Correct answer: Subscription Filter Policy
SNS Subscription Filter Policies allow you to define JSON attribute filters on a per-subscription basis so subscribers only receive matching messages.
Question 7: Which AWS AppSync feature enables clients to receive real-time updates when data changes in a GraphQL API?
- Queries
- Mutations
- Subscriptions (Correct answer)
- Resolvers
Correct answer: Subscriptions
AppSync Subscriptions use WebSockets to push real-time data updates to connected clients when mutations occur that match the subscription.
Which Amazon API Gateway integration type passes the request body directly to the backend without any transformation?