0 / 60 answered
Pick an answer to see the explanation. Fundamental questions refresh the basics; Advanced questions are short SAP-style scenarios.
Q1.A team wants to orchestrate several Lambda functions as a visual workflow with branches, retries and timeouts, without writing glue code. Which service fits?
✓ Correct: D. AWS Step Functions
How to think about it: Serverless orchestration as a JSON state machine = Step Functions.
Why D is correct: Step Functions models the workflow as a state machine in Amazon States Language, with built-in branching, retries and timeouts.
Why the others are wrong:
A) Amazon SQS — A queue decouples two parts but does not model a multi-step workflow.
B) Amazon SNS — SNS pushes messages to subscribers; it keeps no workflow state.
C) Amazon EventBridge Scheduler — Scheduler starts targets on a schedule but does not orchestrate the steps.
How to think about it: Serverless orchestration as a JSON state machine = Step Functions.
Why D is correct: Step Functions models the workflow as a state machine in Amazon States Language, with built-in branching, retries and timeouts.
Why the others are wrong:
A) Amazon SQS — A queue decouples two parts but does not model a multi-step workflow.
B) Amazon SNS — SNS pushes messages to subscribers; it keeps no workflow state.
C) Amazon EventBridge Scheduler — Scheduler starts targets on a schedule but does not orchestrate the steps.
Q2.A workflow must pause until a manager approves a request by clicking a link in an email, which may take days. Which Step Functions pattern supports this?
✓ Correct: C. A task using .waitForTaskToken, resumed by SendTaskSuccess
How to think about it: Human approval = callback with a task token (.waitForTaskToken).
Why C is correct: The workflow waits on a token, and the approval link calls back with that token to continue.
Why the others are wrong:
A) A Wait state set to a fixed number of days — A fixed wait cannot react to when the manager actually approves.
B) A Parallel state with a timeout branch — Parallel runs branches together; it does not wait for an outside signal.
D) A Lambda function that sleeps until approval — Lambda runs for at most 15 minutes, so it cannot wait for days.
How to think about it: Human approval = callback with a task token (.waitForTaskToken).
Why C is correct: The workflow waits on a token, and the approval link calls back with that token to continue.
Why the others are wrong:
A) A Wait state set to a fixed number of days — A fixed wait cannot react to when the manager actually approves.
B) A Parallel state with a timeout branch — Parallel runs branches together; it does not wait for an outside signal.
D) A Lambda function that sleeps until approval — Lambda runs for at most 15 minutes, so it cannot wait for days.
Q3.A state must run an ECS task and move on only after the container finishes. What does Step Functions offer for this?
✓ Correct: A. The optimized ECS integration with .sync
How to think about it: Optimized integration with .sync = run the job and wait for it to complete.
Why A is correct: Step Functions starts the task and waits for it to stop before the next state.
Why the others are wrong:
B) An SNS topic that the task publishes to — SNS cannot pause a workflow until a reply arrives.
C) A Lambda function that polls ECS every minute — This is custom code and pays for idle Lambda time.
D) An activity task polled by the ECS container — Activities need a custom worker loop the native integration already provides.
How to think about it: Optimized integration with .sync = run the job and wait for it to complete.
Why A is correct: Step Functions starts the task and waits for it to stop before the next state.
Why the others are wrong:
B) An SNS topic that the task publishes to — SNS cannot pause a workflow until a reply arrives.
C) A Lambda function that polls ECS every minute — This is custom code and pays for idle Lambda time.
D) An activity task polled by the ECS container — Activities need a custom worker loop the native integration already provides.
Q4.A state machine must call an AWS service API that has no optimized Step Functions integration. What is the simplest option?
✓ Correct: D. An AWS SDK service integration task
How to think about it: Not in the optimized list = AWS SDK service integration (200+ services, called like an SDK API).
Why D is correct: SDK integrations let a Task state call almost any AWS API directly, like a normal SDK call.
Why the others are wrong:
A) A Lambda function that wraps the API call — This works but adds code and cost the SDK integration avoids.
B) An activity worker on EC2 that calls the API — Running a worker fleet for one API call is unnecessary.
C) An HTTP task pointed at the service endpoint — HTTP tasks target third-party APIs, and AWS calls would need manual signing.
How to think about it: Not in the optimized list = AWS SDK service integration (200+ services, called like an SDK API).
Why D is correct: SDK integrations let a Task state call almost any AWS API directly, like a normal SDK call.
Why the others are wrong:
A) A Lambda function that wraps the API call — This works but adds code and cost the SDK integration avoids.
B) An activity worker on EC2 that calls the API — Running a worker fleet for one API call is unnecessary.
C) An HTTP task pointed at the service endpoint — HTTP tasks target third-party APIs, and AWS calls would need manual signing.
Q5.A workflow step must be done by a program running on a server in the company's data center. How does that server get work from Step Functions?
✓ Correct: D. It runs an activity worker that polls Step Functions for tasks
How to think about it: On-premises or custom worker = activity task; the worker polls Step Functions.
Why D is correct: Activity workers call GetActivityTask, do the work and report the result back.
Why the others are wrong:
A) It subscribes the server's email address to the workflow — Email is not a way to receive and complete workflow tasks.
B) Step Functions pushes the task to the server over SSH — Step Functions never opens connections into your servers.
C) It reads the task from the workflow's CloudWatch Logs — Logs are for history and debugging, not task delivery.
How to think about it: On-premises or custom worker = activity task; the worker polls Step Functions.
Why D is correct: Activity workers call GetActivityTask, do the work and report the result back.
Why the others are wrong:
A) It subscribes the server's email address to the workflow — Email is not a way to receive and complete workflow tasks.
B) Step Functions pushes the task to the server over SSH — Step Functions never opens connections into your servers.
C) It reads the task from the workflow's CloudWatch Logs — Logs are for history and debugging, not task delivery.
Q6.A workflow must pause until 09:00 on a given date before sending a reminder. Which state type fits?
✓ Correct: B. A Wait state with a timestamp
How to think about it: Pause for a duration or until a timestamp = Wait state.
Why B is correct: A Wait state can pause for seconds or until a specific timestamp, at no compute cost.
Why the others are wrong:
A) A Pass state with a delay field — A Pass state just forwards or reshapes input.
C) A Choice state comparing the clock — Choice branches on input values; it does not pause.
D) A Map state over the remaining hours — Map iterates over items; it is not a timer.
How to think about it: Pause for a duration or until a timestamp = Wait state.
Why B is correct: A Wait state can pause for seconds or until a specific timestamp, at no compute cost.
Why the others are wrong:
A) A Pass state with a delay field — A Pass state just forwards or reshapes input.
C) A Choice state comparing the clock — Choice branches on input values; it does not pause.
D) A Map state over the remaining hours — Map iterates over items; it is not a timer.
Q7.A state machine should start each time a specific event happens in the AWS account, such as an object upload notification. What is the usual trigger?
✓ Correct: C. An EventBridge rule targeting the state machine
How to think about it: Event-driven start = EventBridge rule with the state machine as target.
Why C is correct: EventBridge matches the event and calls StartExecution, passing the event as input.
Why the others are wrong:
A) An SQS queue that Step Functions polls — Step Functions has no built-in poller for SQS to start executions.
B) A CloudWatch metric alarm on the bucket — Alarms react to metric thresholds, not individual events.
D) A CodePipeline stage watching the bucket — CodePipeline can invoke Step Functions, but it is a CI/CD tool, not an event router.
How to think about it: Event-driven start = EventBridge rule with the state machine as target.
Why C is correct: EventBridge matches the event and calls StartExecution, passing the event as input.
Why the others are wrong:
A) An SQS queue that Step Functions polls — Step Functions has no built-in poller for SQS to start executions.
B) A CloudWatch metric alarm on the bucket — Alarms react to metric thresholds, not individual events.
D) A CodePipeline stage watching the bucket — CodePipeline can invoke Step Functions, but it is a CI/CD tool, not an event router.
Q8.A REST API must start a Step Functions workflow without any Lambda function in between. How can this be done?
✓ Correct: B. A service integration calling StartExecution
How to think about it: API Gateway can call StartExecution directly as an AWS service integration.
Why B is correct: API Gateway signs and sends the StartExecution call itself, with no Lambda needed.
Why the others are wrong:
A) A Lambda authorizer that starts the workflow — Authorizers decide access; they are not meant to start backends.
C) An API Gateway mock integration — Mock integrations return fixed responses and call nothing.
D) A VPC link to the Step Functions endpoint — VPC links reach private load balancers, not Step Functions APIs.
How to think about it: API Gateway can call StartExecution directly as an AWS service integration.
Why B is correct: API Gateway signs and sends the StartExecution call itself, with no Lambda needed.
Why the others are wrong:
A) A Lambda authorizer that starts the workflow — Authorizers decide access; they are not meant to start backends.
C) An API Gateway mock integration — Mock integrations return fixed responses and call nothing.
D) A VPC link to the Step Functions endpoint — VPC links reach private load balancers, not Step Functions APIs.
Q9.A Lambda step sometimes fails with a throttling error. Where do you define automatic retries with backoff and a fallback path?
✓ Correct: D. In the state's Retry and Catch fields
How to think about it: Errors in a state machine = Retry and Catch fields on the state.
Why D is correct: Retry sets attempts and backoff per error type, and Catch routes to a fallback state when retries run out.
Why the others are wrong:
A) In a dead-letter queue on the Lambda function — A Lambda DLQ applies to async invokes and does not drive workflow retries.
B) In the state machine's IAM role — The role grants permissions; it has no retry settings.
C) In a CloudWatch alarm on Lambda errors — Alarms notify people; they do not retry a step.
How to think about it: Errors in a state machine = Retry and Catch fields on the state.
Why D is correct: Retry sets attempts and backoff per error type, and Catch routes to a fallback state when retries run out.
Why the others are wrong:
A) In a dead-letter queue on the Lambda function — A Lambda DLQ applies to async invokes and does not drive workflow retries.
B) In the state machine's IAM role — The role grants permissions; it has no retry settings.
C) In a CloudWatch alarm on Lambda errors — Alarms notify people; they do not retry a step.
Q10.Three independent Lambda checks must run at the same time, and the workflow continues only when all finish. Which state fits?
✓ Correct: C. A Parallel state with three branches
How to think about it: Fixed branches at once = Parallel; same steps over each item of an array = Map.
Why C is correct: Parallel runs its branches at the same time and waits for every branch before moving on.
Why the others are wrong:
A) Three Task states in sequence — This runs the checks one after another, not together.
B) A Choice state with three rules — Choice selects one branch; it does not run all of them.
D) A Wait state followed by three tasks — A Wait adds a delay but does not run work at the same time.
How to think about it: Fixed branches at once = Parallel; same steps over each item of an array = Map.
Why C is correct: Parallel runs its branches at the same time and waits for every branch before moving on.
Why the others are wrong:
A) Three Task states in sequence — This runs the checks one after another, not together.
B) A Choice state with three rules — Choice selects one branch; it does not run all of them.
D) A Wait state followed by three tasks — A Wait adds a delay but does not run work at the same time.
Q11.Operations want an email whenever any execution of a state machine fails. What is the simplest setup?
✓ Correct: C. An EventBridge rule on FAILED status sending to SNS
How to think about it: Failure alerts = EventBridge rule on execution status FAILED to an SNS topic.
Why C is correct: Step Functions emits status-change events, and the rule sends failures to email subscribers.
Why the others are wrong:
A) A daily Lambda that lists executions and emails failures — This is delayed and custom when events already exist.
B) A Catch block in every state that sends an email — This adds logic to each state and misses failures outside them.
D) Enabling X-Ray tracing on the state machine — X-Ray shows traces but sends no notifications.
How to think about it: Failure alerts = EventBridge rule on execution status FAILED to an SNS topic.
Why C is correct: Step Functions emits status-change events, and the rule sends failures to email subscribers.
Why the others are wrong:
A) A daily Lambda that lists executions and emails failures — This is delayed and custom when events already exist.
B) A Catch block in every state that sends an email — This adds logic to each state and misses failures outside them.
D) Enabling X-Ray tracing on the state machine — X-Ray shows traces but sends no notifications.
Q12.A large order workflow should hand off a self-contained sub-process to another state machine and wait for it to finish. How?
✓ Correct: B. Start the child state machine with the .sync integration
How to think about it: Nested workflow = StartExecution .sync of a child state machine.
Why B is correct: The parent calls StartExecution on the child and waits for its result.
Why the others are wrong:
A) Copy the child's states into the parent — This works but loses reuse and separate ownership of the sub-process.
C) Publish to an SNS topic that the child subscribes to — A state machine cannot subscribe to SNS, and the parent would not wait.
D) Send a message to an SQS queue the child polls — State machines do not poll queues to start, and the parent would not wait.
How to think about it: Nested workflow = StartExecution .sync of a child state machine.
Why B is correct: The parent calls StartExecution on the child and waits for its result.
Why the others are wrong:
A) Copy the child's states into the parent — This works but loses reuse and separate ownership of the sub-process.
C) Publish to an SNS topic that the child subscribes to — A state machine cannot subscribe to SNS, and the parent would not wait.
D) Send a message to an SQS queue the child polls — State machines do not poll queues to start, and the parent would not wait.
Q13.What is the maximum duration of a Step Functions Standard workflow execution?
✓ Correct: B. 1 year
How to think about it: Standard = up to 1 year; Express = up to 5 minutes.
Why B is correct: Standard workflows can run for up to a year, which suits long processes and human approvals.
Why the others are wrong:
A) 15 minutes — Fifteen minutes is the Lambda timeout, not a workflow limit.
C) 30 days — Thirty days is not a Step Functions limit.
D) 5 minutes — Five minutes is the Express workflow limit.
How to think about it: Standard = up to 1 year; Express = up to 5 minutes.
Why B is correct: Standard workflows can run for up to a year, which suits long processes and human approvals.
Why the others are wrong:
A) 15 minutes — Fifteen minutes is the Lambda timeout, not a workflow limit.
C) 30 days — Thirty days is not a Step Functions limit.
D) 5 minutes — Five minutes is the Express workflow limit.
Q14.What is the maximum duration of a Step Functions Express workflow execution?
✓ Correct: B. 5 minutes
How to think about it: Express = 5 minutes, high volume, short-lived.
Why B is correct: Express workflows are built for short, high-rate event processing and stop after five minutes.
Why the others are wrong:
A) 1 hour — One hour is not an Express limit.
C) 1 year — One year applies to Standard workflows.
D) 24 hours — Twenty-four hours is not an Express limit.
How to think about it: Express = 5 minutes, high volume, short-lived.
Why B is correct: Express workflows are built for short, high-rate event processing and stop after five minutes.
Why the others are wrong:
A) 1 hour — One hour is not an Express limit.
C) 1 year — One year applies to Standard workflows.
D) 24 hours — Twenty-four hours is not an Express limit.
Q15.A payment workflow must never run a step twice, even after an internal retry. Which workflow type gives that guarantee?
✓ Correct: D. Standard workflow
How to think about it: Standard = exactly-once execution; asynchronous Express = at-least-once.
Why D is correct: Standard workflows run each step exactly once unless you set retries yourself.
Why the others are wrong:
A) Synchronous Express workflow — Sync Express is at-most-once and caps runs at five minutes.
B) Any type, if logging is enabled — Logging records history; it does not change execution guarantees.
C) Asynchronous Express workflow — Async Express gives at-least-once execution, so a step may run twice.
How to think about it: Standard = exactly-once execution; asynchronous Express = at-least-once.
Why D is correct: Standard workflows run each step exactly once unless you set retries yourself.
Why the others are wrong:
A) Synchronous Express workflow — Sync Express is at-most-once and caps runs at five minutes.
B) Any type, if logging is enabled — Logging records history; it does not change execution guarantees.
C) Asynchronous Express workflow — Async Express gives at-least-once execution, so a step may run twice.
Q16.An IoT backend must process about 50,000 short events per second, each finishing in under a second, at the lowest cost. Which option fits?
✓ Correct: A. Express workflows
How to think about it: Very high rate, short runs, cost focus = Express (billed by executions, duration, memory).
Why A is correct: Express handles very high start rates and is billed by run count, duration and memory, which is cheap for short runs.
Why the others are wrong:
B) Standard workflows with activity workers — Activity workers add polling servers and do not fix Standard pricing.
C) A Standard workflow per device per day — Long runs per device misuse the service and still pay per transition.
D) Standard workflows — Standard is billed per state transition and is slower to start at this volume.
How to think about it: Very high rate, short runs, cost focus = Express (billed by executions, duration, memory).
Why A is correct: Express handles very high start rates and is billed by run count, duration and memory, which is cheap for short runs.
Why the others are wrong:
B) Standard workflows with activity workers — Activity workers add polling servers and do not fix Standard pricing.
C) A Standard workflow per device per day — Long runs per device misuse the service and still pay per transition.
D) Standard workflows — Standard is billed per state transition and is slower to start at this volume.
Q17.How is a Step Functions Standard workflow priced?
✓ Correct: A. Per state transition
How to think about it: Standard = per state transition; Express = executions + duration + memory.
Why A is correct: Each completed step counts as a transition, which makes Standard costlier at high volume.
Why the others are wrong:
B) Per Lambda invocation only — Lambda is billed separately; Step Functions has its own charge.
C) Per hour that the state machine exists — There is no hourly charge for defining a state machine.
D) Per execution, duration and memory used — That is the Express pricing model.
How to think about it: Standard = per state transition; Express = executions + duration + memory.
Why A is correct: Each completed step counts as a transition, which makes Standard costlier at high volume.
Why the others are wrong:
B) Per Lambda invocation only — Lambda is billed separately; Step Functions has its own charge.
C) Per hour that the state machine exists — There is no hourly charge for defining a state machine.
D) Per execution, duration and memory used — That is the Express pricing model.
Q18.An API Gateway endpoint should run a short multi-step workflow and return the workflow's output to the caller in the same HTTP response. Which option fits?
✓ Correct: B. A synchronous Express workflow
How to think about it: Need the result in the response = synchronous Express (StartSyncExecution).
Why B is correct: Sync Express waits for the workflow to finish and returns its output to API Gateway.
Why the others are wrong:
A) A Standard workflow started with StartExecution — StartExecution returns an execution ARN immediately, not the result.
C) A Standard workflow behind an SQS queue — Queuing makes the call asynchronous, so no result comes back.
D) An asynchronous Express workflow — Async Express only confirms the start and does not return the output.
How to think about it: Need the result in the response = synchronous Express (StartSyncExecution).
Why B is correct: Sync Express waits for the workflow to finish and returns its output to API Gateway.
Why the others are wrong:
A) A Standard workflow started with StartExecution — StartExecution returns an execution ARN immediately, not the result.
C) A Standard workflow behind an SQS queue — Queuing makes the call asynchronous, so no result comes back.
D) An asynchronous Express workflow — Async Express only confirms the start and does not return the output.
Q19.An order front end must keep accepting requests even when the slower processing tier is down or overloaded. What should sit between them?
✓ Correct: C. An Amazon SQS queue
How to think about it: Decouple and buffer = SQS queue.
Why C is correct: The queue stores messages durably until consumers are ready, so producers are not blocked.
Why the others are wrong:
A) A Route 53 failover record — DNS failover changes targets but does not buffer work.
B) An Amazon SNS topic — SNS pushes immediately and does not hold work for a consumer that is down.
D) An Application Load Balancer — An ALB forwards requests live and fails when targets are down.
How to think about it: Decouple and buffer = SQS queue.
Why C is correct: The queue stores messages durably until consumers are ready, so producers are not blocked.
Why the others are wrong:
A) A Route 53 failover record — DNS failover changes targets but does not buffer work.
B) An Amazon SNS topic — SNS pushes immediately and does not hold work for a consumer that is down.
D) An Application Load Balancer — An ALB forwards requests live and fails when targets are down.
Q20.Some messages a producer sends are larger than the SQS message size limit. What is the standard pattern?
✓ Correct: A. Store the payload in S3 and send its location in the message
How to think about it: Too big for SQS = put the payload in S3, send a pointer (Extended Client Library).
Why A is correct: The SQS Extended Client Library does this, keeping the queue message small.
Why the others are wrong:
B) Compress and split it across several FIFO messages — Reassembly logic is fragile and is what the S3 pointer pattern avoids.
C) Switch the queue to a FIFO queue — FIFO queues have the same message size limit.
D) Send it through SNS instead — SNS also has a payload limit and uses the same S3 pointer approach.
How to think about it: Too big for SQS = put the payload in S3, send a pointer (Extended Client Library).
Why A is correct: The SQS Extended Client Library does this, keeping the queue message small.
Why the others are wrong:
B) Compress and split it across several FIFO messages — Reassembly logic is fragile and is what the S3 pointer pattern avoids.
C) Switch the queue to a FIFO queue — FIFO queues have the same message size limit.
D) Send it through SNS instead — SNS also has a payload limit and uses the same S3 pointer approach.
Q21.Messages for each customer account must be processed in the order they were sent, without duplicates. Which queue setup fits?
✓ Correct: D. A FIFO queue grouped by account ID
How to think about it: Ordering + deduplication = FIFO queue, ordered per message group ID.
Why D is correct: FIFO keeps strict order within each group and removes duplicates using a deduplication ID.
Why the others are wrong:
A) A standard queue with long polling — Long polling cuts empty receives but does not order messages.
B) A standard queue with a delay of zero — Standard queues give best-effort order and can deliver duplicates.
C) An SNS standard topic — Standard SNS topics do not guarantee order or deduplication.
How to think about it: Ordering + deduplication = FIFO queue, ordered per message group ID.
Why D is correct: FIFO keeps strict order within each group and removes duplicates using a deduplication ID.
Why the others are wrong:
A) A standard queue with long polling — Long polling cuts empty receives but does not order messages.
B) A standard queue with a delay of zero — Standard queues give best-effort order and can deliver duplicates.
C) An SNS standard topic — Standard SNS topics do not guarantee order or deduplication.
Q22.After a consumer receives an SQS message, what keeps other consumers from receiving it while it is being processed?
✓ Correct: D. The visibility timeout
How to think about it: Hidden while in progress = visibility timeout; delete when done or it reappears.
Why D is correct: The message is hidden for that period, and it reappears if the consumer does not delete it in time.
Why the others are wrong:
A) The delivery delay — Delivery delay hides new messages before first receipt, not during processing.
B) The message retention period — Retention sets how long a message lives in the queue overall.
C) The receive wait time — Wait time sets long polling; it does not hide received messages.
How to think about it: Hidden while in progress = visibility timeout; delete when done or it reappears.
Why D is correct: The message is hidden for that period, and it reappears if the consumer does not delete it in time.
Why the others are wrong:
A) The delivery delay — Delivery delay hides new messages before first receipt, not during processing.
B) The message retention period — Retention sets how long a message lives in the queue overall.
C) The receive wait time — Wait time sets long polling; it does not hide received messages.
Q23.Consumers make many ReceiveMessage calls that return nothing, which wastes money. What reduces this?
✓ Correct: B. Enable long polling with a receive wait time
How to think about it: Fewer empty receives = long polling (receive wait time up to 20 seconds).
Why B is correct: The call waits for messages to arrive before returning, cutting empty responses.
Why the others are wrong:
A) Lower the message retention period — Retention does not change how often polls come back empty.
C) Switch to a FIFO queue — FIFO changes ordering, not the polling behaviour.
D) Raise the visibility timeout — Visibility timeout affects received messages, not empty polls.
How to think about it: Fewer empty receives = long polling (receive wait time up to 20 seconds).
Why B is correct: The call waits for messages to arrive before returning, cutting empty responses.
Why the others are wrong:
A) Lower the message retention period — Retention does not change how often polls come back empty.
C) Switch to a FIFO queue — FIFO changes ordering, not the polling behaviour.
D) Raise the visibility timeout — Visibility timeout affects received messages, not empty polls.
Q24.An SQS consumer occasionally processes the same message twice after a timeout, creating duplicate rows in DynamoDB. What is the right fix?
✓ Correct: B. Make the write idempotent, such as a PutItem keyed on the order ID
How to think about it: At-least-once delivery means make the consumer idempotent, e.g. upsert by a unique key.
Why B is correct: Repeating the same write with the same key leaves one row, so duplicates do no harm.
Why the others are wrong:
A) Add more consumers to finish work faster — More consumers do not stop a message being delivered twice.
C) Switch from long polling to short polling — Polling mode does not affect redelivery.
D) Lower the visibility timeout so retries happen sooner — Shorter timeouts cause more duplicate receives, not fewer.
How to think about it: At-least-once delivery means make the consumer idempotent, e.g. upsert by a unique key.
Why B is correct: Repeating the same write with the same key leaves one row, so duplicates do no harm.
Why the others are wrong:
A) Add more consumers to finish work faster — More consumers do not stop a message being delivered twice.
C) Switch from long polling to short polling — Polling mode does not affect redelivery.
D) Lower the visibility timeout so retries happen sooner — Shorter timeouts cause more duplicate receives, not fewer.
Q25.Traffic spikes send writes to DynamoDB faster than its provisioned capacity allows, causing throttling and lost requests. Which pattern smooths this?
✓ Correct: A. Buffer the writes in SQS, drain steadily
How to think about it: Absorb write spikes = SQS as a write buffer in front of the database.
Why A is correct: The queue absorbs bursts, and consumers write at a rate the table can accept.
Why the others are wrong:
B) Add a global secondary index — A GSI consumes extra write capacity rather than saving it.
C) Put DAX in front of the table for writes — DAX is a read cache; writes still hit the table at the same rate.
D) Send the writes to an SNS topic — SNS pushes immediately and does not smooth the rate.
How to think about it: Absorb write spikes = SQS as a write buffer in front of the database.
Why A is correct: The queue absorbs bursts, and consumers write at a rate the table can accept.
Why the others are wrong:
B) Add a global secondary index — A GSI consumes extra write capacity rather than saving it.
C) Put DAX in front of the table for writes — DAX is a read cache; writes still hit the table at the same rate.
D) Send the writes to an SNS topic — SNS pushes immediately and does not smooth the rate.
Q26.Lambda consumes an SQS queue through an event source mapping. What is the recommended queue visibility timeout?
✓ Correct: D. At least six times the Lambda function timeout
How to think about it: SQS + Lambda: visibility timeout at least 6x the function timeout.
Why D is correct: This leaves room for retries and throttling before the message becomes visible again.
Why the others are wrong:
A) Exactly equal to the Lambda timeout — Any delay or retry would let the message reappear while still being processed.
B) Half the Lambda timeout — Messages would reappear before the function could finish.
C) Zero, so failed messages return at once — Messages would be picked up again immediately by other invocations.
How to think about it: SQS + Lambda: visibility timeout at least 6x the function timeout.
Why D is correct: This leaves room for retries and throttling before the message becomes visible again.
Why the others are wrong:
A) Exactly equal to the Lambda timeout — Any delay or retry would let the message reappear while still being processed.
B) Half the Lambda timeout — Messages would reappear before the function could finish.
C) Zero, so failed messages return at once — Messages would be picked up again immediately by other invocations.
Q27.Clients send jobs to workers through SQS and need each answer routed back to the right client asynchronously. What is the usual design?
✓ Correct: A. Request and response queues with a correlation ID
How to think about it: Request/response over queues = request queue + response queue + correlation ID.
Why A is correct: Workers reply to the response queue, and clients match replies using the correlation ID.
Why the others are wrong:
B) A DynamoDB stream between client and worker — Streams record table changes, not a request/reply channel.
C) One FIFO queue shared for requests and replies — Mixing both directions on one queue makes consumers read each other's messages.
D) A single SNS topic for requests and replies — Every subscriber would get every reply, with no routing.
How to think about it: Request/response over queues = request queue + response queue + correlation ID.
Why A is correct: Workers reply to the response queue, and clients match replies using the correlation ID.
Why the others are wrong:
B) A DynamoDB stream between client and worker — Streams record table changes, not a request/reply channel.
C) One FIFO queue shared for requests and replies — Mixing both directions on one queue makes consumers read each other's messages.
D) A single SNS topic for requests and replies — Every subscriber would get every reply, with no routing.
Q28.When does SQS move a message to a dead-letter queue?
✓ Correct: A. After more receives than maxReceiveCount allows
How to think about it: DLQ = message received more than maxReceiveCount times (redrive policy).
Why A is correct: Each failed attempt returns the message to the queue, and past the threshold it moves to the DLQ.
Why the others are wrong:
B) When the message is older than one hour — Age alone does not move messages; expiry deletes them.
C) As soon as the consumer throws an exception — SQS does not see consumer errors; it only counts receives.
D) When the visibility timeout is set to zero — This changes timing but does not trigger the DLQ.
How to think about it: DLQ = message received more than maxReceiveCount times (redrive policy).
Why A is correct: Each failed attempt returns the message to the queue, and past the threshold it moves to the DLQ.
Why the others are wrong:
B) When the message is older than one hour — Age alone does not move messages; expiry deletes them.
C) As soon as the consumer throws an exception — SQS does not see consumer errors; it only counts receives.
D) When the visibility timeout is set to zero — This changes timing but does not trigger the DLQ.
Q29.Which dead-letter queue can be attached to a FIFO source queue?
✓ Correct: D. A FIFO queue
How to think about it: DLQ type must match: FIFO to FIFO, standard to standard.
Why D is correct: A FIFO queue's dead-letter queue must also be a FIFO queue.
Why the others are wrong:
A) Either queue type — SQS requires the DLQ to match the source queue type.
B) An SNS FIFO topic — SQS dead-letter targets are SQS queues, not topics.
C) A standard queue — Standard queues can only be DLQs for standard source queues.
How to think about it: DLQ type must match: FIFO to FIFO, standard to standard.
Why D is correct: A FIFO queue's dead-letter queue must also be a FIFO queue.
Why the others are wrong:
A) Either queue type — SQS requires the DLQ to match the source queue type.
B) An SNS FIFO topic — SQS dead-letter targets are SQS queues, not topics.
C) A standard queue — Standard queues can only be DLQs for standard source queues.
Q30.Why is it good practice to give an SQS dead-letter queue a long retention period, such as 14 days?
✓ Correct: A. So failed messages stay long enough to inspect and reprocess
How to think about it: DLQ messages can expire before you debug them, so set long retention on the DLQ.
Why A is correct: Messages in the DLQ still expire, so a long retention gives time to debug and redrive.
Why the others are wrong:
B) So SQS can automatically retry failed messages — SQS does not automatically retry messages in a DLQ.
C) Because the DLQ must match the source's visibility timeout — Retention and visibility timeout are unrelated settings.
D) So the DLQ delivers failed messages faster — Retention does not affect delivery speed.
How to think about it: DLQ messages can expire before you debug them, so set long retention on the DLQ.
Why A is correct: Messages in the DLQ still expire, so a long retention gives time to debug and redrive.
Why the others are wrong:
B) So SQS can automatically retry failed messages — SQS does not automatically retry messages in a DLQ.
C) Because the DLQ must match the source's visibility timeout — Retention and visibility timeout are unrelated settings.
D) So the DLQ delivers failed messages faster — Retention does not affect delivery speed.
Q31.A bug has been fixed, and thousands of messages waiting in the DLQ should be processed again by the normal consumer. What is the easiest way?
✓ Correct: A. Run a DLQ redrive to the source queue
How to think about it: Return DLQ messages to the source = DLQ redrive, no custom code.
Why A is correct: SQS redrive moves the messages back in batches without custom code.
Why the others are wrong:
B) Raise maxReceiveCount on the source queue — That affects future messages, not those already in the DLQ.
C) Delete and recreate the source queue — This would lose the queue's messages and settings.
D) Point the consumer at the DLQ permanently — The DLQ should stay a quarantine, not a production queue.
How to think about it: Return DLQ messages to the source = DLQ redrive, no custom code.
Why A is correct: SQS redrive moves the messages back in batches without custom code.
Why the others are wrong:
B) Raise maxReceiveCount on the source queue — That affects future messages, not those already in the DLQ.
C) Delete and recreate the source queue — This would lose the queue's messages and settings.
D) Point the consumer at the DLQ permanently — The DLQ should stay a quarantine, not a production queue.
Q32.Lambda reads from an SQS queue through an event source mapping, and failing messages must be kept for investigation. Where should the DLQ go?
✓ Correct: A. On the source SQS queue, through its redrive policy
How to think about it: SQS-triggered Lambda: put the DLQ on the SQS queue (Lambda's own DLQ is for async invokes).
Why A is correct: With polling, messages return to the queue, so the queue's own redrive policy sends failures to the DLQ.
Why the others are wrong:
B) On an SNS topic subscribed to the function — Functions are not SNS publishers of their own failures.
C) On the Lambda function's asynchronous invoke settings — The function's DLQ applies only to asynchronous invokes, not SQS polling.
D) On the event source mapping as a second queue trigger — A second trigger would just process messages again.
How to think about it: SQS-triggered Lambda: put the DLQ on the SQS queue (Lambda's own DLQ is for async invokes).
Why A is correct: With polling, messages return to the queue, so the queue's own redrive policy sends failures to the DLQ.
Why the others are wrong:
B) On an SNS topic subscribed to the function — Functions are not SNS publishers of their own failures.
C) On the Lambda function's asynchronous invoke settings — The function's DLQ applies only to asynchronous invokes, not SQS polling.
D) On the event source mapping as a second queue trigger — A second trigger would just process messages again.
Q33.In a FIFO queue, one malformed message keeps failing and blocks all later messages in its message group. What should you set up?
✓ Correct: D. A FIFO dead-letter queue with a suitable maxReceiveCount
How to think about it: Poison message blocking a FIFO group = DLQ with maxReceiveCount to remove it.
Why D is correct: After the set retries the bad message moves to the DLQ, unblocking the rest of the group.
Why the others are wrong:
A) Switch the queue to a standard queue — This removes ordering, which the workload needs.
B) Add more consumers for the queue — Only one message per group is in flight, so more consumers cannot pass it.
C) Increase the visibility timeout to 12 hours — The message still fails, and the group stays blocked longer.
How to think about it: Poison message blocking a FIFO group = DLQ with maxReceiveCount to remove it.
Why D is correct: After the set retries the bad message moves to the DLQ, unblocking the rest of the group.
Why the others are wrong:
A) Switch the queue to a standard queue — This removes ordering, which the workload needs.
B) Add more consumers for the queue — Only one message per group is in flight, so more consumers cannot pass it.
C) Increase the visibility timeout to 12 hours — The message still fails, and the group stays blocked longer.
Q34.An on-premises app uses AMQP and MQTT with a message broker, and the team wants to move it to AWS without rewriting it for SQS and SNS. Which service fits?
✓ Correct: A. Amazon MQ
How to think about it: Open protocols (AMQP, MQTT, STOMP, OpenWire, WSS) without a rewrite = Amazon MQ.
Why A is correct: Amazon MQ is a managed broker that speaks the same open protocols, so apps move with little change.
Why the others are wrong:
B) Amazon Kinesis Data Streams — Kinesis is a streaming service with its own API, not a protocol-compatible broker.
C) Amazon SNS — SNS has its own API and does not speak these broker protocols.
D) Amazon SQS — SQS uses an AWS-specific API, so the app would need rewriting.
How to think about it: Open protocols (AMQP, MQTT, STOMP, OpenWire, WSS) without a rewrite = Amazon MQ.
Why A is correct: Amazon MQ is a managed broker that speaks the same open protocols, so apps move with little change.
Why the others are wrong:
B) Amazon Kinesis Data Streams — Kinesis is a streaming service with its own API, not a protocol-compatible broker.
C) Amazon SNS — SNS has its own API and does not speak these broker protocols.
D) Amazon SQS — SQS uses an AWS-specific API, so the app would need rewriting.
Q35.Which broker engines does Amazon MQ offer?
✓ Correct: B. Apache ActiveMQ and RabbitMQ
How to think about it: Amazon MQ = managed Apache ActiveMQ or RabbitMQ.
Why B is correct: These are the two managed broker engines Amazon MQ provides.
Why the others are wrong:
A) Apache Kafka and RabbitMQ — Kafka runs on Amazon MSK, not Amazon MQ.
C) IBM MQ and TIBCO EMS — These can be migrated to Amazon MQ but are not engines it runs.
D) Apache ActiveMQ and Apache Pulsar — Pulsar is not an Amazon MQ engine.
How to think about it: Amazon MQ = managed Apache ActiveMQ or RabbitMQ.
Why B is correct: These are the two managed broker engines Amazon MQ provides.
Why the others are wrong:
A) Apache Kafka and RabbitMQ — Kafka runs on Amazon MSK, not Amazon MQ.
C) IBM MQ and TIBCO EMS — These can be migrated to Amazon MQ but are not engines it runs.
D) Apache ActiveMQ and Apache Pulsar — Pulsar is not an Amazon MQ engine.
Q36.How does Amazon MQ for ActiveMQ achieve high availability?
✓ Correct: A. An active/standby broker pair across two AZs with failover
How to think about it: Amazon MQ runs on brokers; HA = active/standby across AZs with failover.
Why A is correct: If the active broker fails, the standby in the other AZ takes over.
Why the others are wrong:
B) A read replica that serves consumers — Brokers do not use database-style read replicas.
C) Automatic replication to a second Region — Standard HA is within one Region across AZs.
D) Serverless partitions that scale without brokers — Amazon MQ runs on brokers you size.
How to think about it: Amazon MQ runs on brokers; HA = active/standby across AZs with failover.
Why A is correct: If the active broker fails, the standby in the other AZ takes over.
Why the others are wrong:
B) A read replica that serves consumers — Brokers do not use database-style read replicas.
C) Automatic replication to a second Region — Standard HA is within one Region across AZs.
D) Serverless partitions that scale without brokers — Amazon MQ runs on brokers you size.
Q37.A new cloud-native app will send millions of messages with highly variable load, and no legacy broker protocol is involved. What should the architect pick?
✓ Correct: A. Amazon SQS and SNS
How to think about it: No legacy protocol, massive scale = SQS/SNS; Amazon MQ does not scale as far.
Why A is correct: These serverless services scale almost without limit and need no broker sizing.
Why the others are wrong:
B) RabbitMQ on self-managed EC2 — This adds operations work with no need for the protocol.
C) Amazon MQ with a larger broker instance — Amazon MQ suits protocol compatibility, but its brokers do not scale like SQS and SNS.
D) Amazon MQ with a network of brokers — This still requires sizing and managing brokers.
How to think about it: No legacy protocol, massive scale = SQS/SNS; Amazon MQ does not scale as far.
Why A is correct: These serverless services scale almost without limit and need no broker sizing.
Why the others are wrong:
B) RabbitMQ on self-managed EC2 — This adds operations work with no need for the protocol.
C) Amazon MQ with a larger broker instance — Amazon MQ suits protocol compatibility, but its brokers do not scale like SQS and SNS.
D) Amazon MQ with a network of brokers — This still requires sizing and managing brokers.
Q38.A company runs Java apps that use JMS with an on-premises IBM MQ broker and wants a managed broker on AWS with minimal code changes. Which target fits?
✓ Correct: C. Amazon MQ for ActiveMQ
How to think about it: JMS / IBM MQ / TIBCO re-platform = Amazon MQ for ActiveMQ.
Why C is correct: ActiveMQ supports JMS, so apps can switch brokers with limited changes, often in phases.
Why the others are wrong:
A) Amazon SQS FIFO queues — SQS has JMS client support but different semantics, so it is more of a rewrite.
B) Amazon MSK — Kafka has its own client model, not JMS queues and topics.
D) Amazon EventBridge — EventBridge is an event bus with its own API, not a JMS broker.
How to think about it: JMS / IBM MQ / TIBCO re-platform = Amazon MQ for ActiveMQ.
Why C is correct: ActiveMQ supports JMS, so apps can switch brokers with limited changes, often in phases.
Why the others are wrong:
A) Amazon SQS FIFO queues — SQS has JMS client support but different semantics, so it is more of a rewrite.
B) Amazon MSK — Kafka has its own client model, not JMS queues and topics.
D) Amazon EventBridge — EventBridge is an event bus with its own API, not a JMS broker.
Q39.A buying service must send each new order to email, fraud and shipping services without calling each one directly. Which service fits?
✓ Correct: B. Amazon SNS
How to think about it: One message to many receivers = SNS pub/sub topic.
Why B is correct: The producer publishes once to a topic, and every subscription gets a copy.
Why the others are wrong:
A) AWS Step Functions — Step Functions orchestrates steps, not broadcast notifications.
C) A single Amazon SQS queue — Each queue message goes to only one consumer.
D) Amazon MQ — A broker could do it, but SNS is the serverless, native fit.
How to think about it: One message to many receivers = SNS pub/sub topic.
Why B is correct: The producer publishes once to a topic, and every subscription gets a copy.
Why the others are wrong:
A) AWS Step Functions — Step Functions orchestrates steps, not broadcast notifications.
C) A single Amazon SQS queue — Each queue message goes to only one consumer.
D) Amazon MQ — A broker could do it, but SNS is the serverless, native fit.
Q40.Which of these is NOT a supported subscription type for a standard SNS topic?
✓ Correct: C. Amazon Kinesis Data Streams
How to think about it: SNS delivers to SQS, Lambda, Firehose, HTTP(S), email, SMS, mobile push; not Kinesis Data Streams directly.
Why C is correct: SNS cannot deliver straight to a Kinesis data stream; it uses Firehose instead.
Why the others are wrong:
A) HTTPS endpoint — HTTP and HTTPS endpoints are supported subscription types.
B) AWS Lambda — Lambda is a common SNS subscriber.
D) Amazon Data Firehose — Firehose is a supported subscriber, used to land messages in S3 and more.
How to think about it: SNS delivers to SQS, Lambda, Firehose, HTTP(S), email, SMS, mobile push; not Kinesis Data Streams directly.
Why C is correct: SNS cannot deliver straight to a Kinesis data stream; it uses Firehose instead.
Why the others are wrong:
A) HTTPS endpoint — HTTP and HTTPS endpoints are supported subscription types.
B) AWS Lambda — Lambda is a common SNS subscriber.
D) Amazon Data Firehose — Firehose is a supported subscriber, used to land messages in S3 and more.
Q41.An SQS subscription should receive only order messages whose state attribute is Cancelled. What should you configure?
✓ Correct: D. A filter policy on that subscription
How to think about it: Subscriber gets a subset = filter policy on the subscription.
Why D is correct: A JSON filter policy lets SNS deliver only matching messages to that subscriber.
Why the others are wrong:
A) A delivery policy on the topic — Delivery policies control retries, not which messages are sent.
B) A separate topic per state value — This forces the publisher to choose topics, which filtering avoids.
C) A Lambda function that drops unwanted messages — This adds code and cost that a filter policy removes.
How to think about it: Subscriber gets a subset = filter policy on the subscription.
Why D is correct: A JSON filter policy lets SNS deliver only matching messages to that subscriber.
Why the others are wrong:
A) A delivery policy on the topic — Delivery policies control retries, not which messages are sent.
B) A separate topic per state value — This forces the publisher to choose topics, which filtering avoids.
C) A Lambda function that drops unwanted messages — This adds code and cost that a filter policy removes.
Q42.An SNS topic has several subscriptions with filter policies and one subscription without any. What does the unfiltered subscription receive?
✓ Correct: C. Every message published to the topic
How to think about it: No filter policy = every message.
Why C is correct: Without a filter policy, a subscription gets all messages.
Why the others are wrong:
A) Only messages that match no other policy — SNS does not route leftovers to unfiltered subscribers.
B) No messages until a policy is added — A missing policy means no filtering, not blocking.
D) Only messages with no attributes — Attributes do not matter when no policy exists.
How to think about it: No filter policy = every message.
Why C is correct: Without a filter policy, a subscription gets all messages.
Why the others are wrong:
A) Only messages that match no other policy — SNS does not route leftovers to unfiltered subscribers.
B) No messages until a policy is added — A missing policy means no filtering, not blocking.
D) Only messages with no attributes — Attributes do not matter when no policy exists.
Q43.A mobile app needs push notifications on iOS and Android devices through SNS. What must be created?
✓ Correct: B. A platform application plus device endpoints
How to think about it: Mobile push = platform application + platform endpoint per device (APNs, FCM).
Why B is correct: SNS registers the push service credentials and each device token, then publishes to the endpoints.
Why the others are wrong:
A) A Firehose stream per device — Firehose loads data into stores, not phones.
C) An email-JSON subscription per user — Email-JSON sends to inboxes, not devices.
D) An SMS subscription per phone number — SMS sends texts, not native app push notifications.
How to think about it: Mobile push = platform application + platform endpoint per device (APNs, FCM).
Why B is correct: SNS registers the push service credentials and each device token, then publishes to the endpoints.
Why the others are wrong:
A) A Firehose stream per device — Firehose loads data into stores, not phones.
C) An email-JSON subscription per user — Email-JSON sends to inboxes, not devices.
D) An SMS subscription per phone number — SMS sends texts, not native app push notifications.
Q44.Security requires SNS messages to be encrypted at rest. What should be enabled?
✓ Correct: C. Server-side encryption with an AWS KMS key on the topic
How to think about it: SNS at rest = server-side encryption with KMS; in flight = HTTPS.
Why C is correct: SNS encrypts stored messages using the chosen KMS key.
Why the others are wrong:
A) A topic access policy denying public access — Access policies control who can act, not encryption.
B) Message filtering on each subscription — Filtering selects messages and has nothing to do with encryption.
D) HTTPS-only subscriptions — HTTPS protects messages in transit, not at rest.
How to think about it: SNS at rest = server-side encryption with KMS; in flight = HTTPS.
Why C is correct: SNS encrypts stored messages using the chosen KMS key.
Why the others are wrong:
A) A topic access policy denying public access — Access policies control who can act, not encryption.
B) Message filtering on each subscription — Filtering selects messages and has nothing to do with encryption.
D) HTTPS-only subscriptions — HTTPS protects messages in transit, not at rest.
Q45.An application in account A must publish to an SNS topic in account B. What is the cleanest way to allow it?
✓ Correct: D. A topic access policy allowing account A
How to think about it: Cross-account SNS = topic access policy (resource policy, like an S3 bucket policy).
Why D is correct: The resource policy grants sns:Publish to the other account's principals.
Why the others are wrong:
A) Create IAM users in account B for the app — Long-lived users in another account are less secure than a resource policy.
B) Peer the two VPCs — SNS is a regional API; VPC peering does not grant permission.
C) Share the topic through AWS RAM — SNS topics are not shared through AWS RAM.
How to think about it: Cross-account SNS = topic access policy (resource policy, like an S3 bucket policy).
Why D is correct: The resource policy grants sns:Publish to the other account's principals.
Why the others are wrong:
A) Create IAM users in account B for the app — Long-lived users in another account are less secure than a resource policy.
B) Peer the two VPCs — SNS is a regional API; VPC peering does not grant permission.
C) Share the topic through AWS RAM — SNS topics are not shared through AWS RAM.
Q46.An S3 bucket's event notifications fail to publish to an SNS topic. What is the usual missing piece?
✓ Correct: B. A topic policy allowing S3 to publish
How to think about it: Let a service publish to SNS = allow its service principal in the topic access policy.
Why B is correct: S3 needs permission in the topic policy, usually scoped by the bucket ARN.
Why the others are wrong:
A) A VPC endpoint for SNS — S3 notifications do not travel through your VPC.
C) A filter policy on the topic — Filter policies apply to subscriptions, not publishers.
D) An IAM role attached to the bucket — Buckets do not assume roles to send notifications.
How to think about it: Let a service publish to SNS = allow its service principal in the topic access policy.
Why B is correct: S3 needs permission in the topic policy, usually scoped by the bucket ARN.
Why the others are wrong:
A) A VPC endpoint for SNS — S3 notifications do not travel through your VPC.
C) A filter policy on the topic — Filter policies apply to subscriptions, not publishers.
D) An IAM role attached to the bucket — Buckets do not assume roles to send notifications.
Q47.Subscribers to a topic must receive messages in the order they were published, grouped by customer. Which SNS feature fits?
✓ Correct: C. An SNS FIFO topic using a message group ID per customer
How to think about it: Ordering in pub/sub = SNS FIFO topic, ordered per message group ID.
Why C is correct: FIFO topics keep order within each message group for their subscribers.
Why the others are wrong:
A) A standard topic with a custom delivery policy — Delivery policies control retries, not order.
B) A standard topic with raw message delivery — Raw delivery changes the message format, not ordering.
D) A standard topic with message filtering — Filtering selects messages but gives no ordering.
How to think about it: Ordering in pub/sub = SNS FIFO topic, ordered per message group ID.
Why C is correct: FIFO topics keep order within each message group for their subscribers.
Why the others are wrong:
A) A standard topic with a custom delivery policy — Delivery policies control retries, not order.
B) A standard topic with raw message delivery — Raw delivery changes the message format, not ordering.
D) A standard topic with message filtering — Filtering selects messages but gives no ordering.
Q48.A producer may publish the same event to an SNS FIFO topic twice within a few minutes. How can SNS drop the duplicate?
✓ Correct: D. A deduplication ID or content-based dedup
How to think about it: SNS FIFO dedup = deduplication ID or content-based deduplication.
Why D is correct: SNS FIFO treats messages with the same deduplication ID, or same body hash, as duplicates within its window.
Why the others are wrong:
A) Add a filter policy on each subscription — Filters choose which subscribers get messages, not which are duplicates.
B) Enable raw message delivery — Raw delivery only strips the SNS envelope.
C) Set a dead-letter queue on the topic — DLQs catch undeliverable messages, not duplicates.
How to think about it: SNS FIFO dedup = deduplication ID or content-based deduplication.
Why D is correct: SNS FIFO treats messages with the same deduplication ID, or same body hash, as duplicates within its window.
Why the others are wrong:
A) Add a filter policy on each subscription — Filters choose which subscribers get messages, not which are duplicates.
B) Enable raw message delivery — Raw delivery only strips the SNS envelope.
C) Set a dead-letter queue on the topic — DLQs catch undeliverable messages, not duplicates.
Q49.A CloudWatch alarm should notify an on-call team by email and SMS. How is this usually done?
✓ Correct: C. Make an SNS topic the alarm action
How to think about it: Many AWS services publish natively to SNS: alarms, Budgets, RDS events, S3 events and more.
Why C is correct: CloudWatch alarms publish straight to SNS, which fans out to each channel.
Why the others are wrong:
A) Trigger a Step Functions workflow per alarm — This adds orchestration that a topic already covers.
B) Write the alarm to CloudWatch Logs with a subscription — Alarms do not log themselves to trigger notifications.
D) Send the alarm to an SQS queue the team reads — A queue needs someone polling it and sends no texts.
How to think about it: Many AWS services publish natively to SNS: alarms, Budgets, RDS events, S3 events and more.
Why C is correct: CloudWatch alarms publish straight to SNS, which fans out to each channel.
Why the others are wrong:
A) Trigger a Step Functions workflow per alarm — This adds orchestration that a topic already covers.
B) Write the alarm to CloudWatch Logs with a subscription — Alarms do not log themselves to trigger notifications.
D) Send the alarm to an SQS queue the team reads — A queue needs someone polling it and sends no texts.
Q50.SNS has exhausted its delivery policy for a subscriber and the message was never delivered. With no DLQ configured, what happens?
✓ Correct: C. The message is discarded
How to think about it: Retries exhausted and no DLQ = message discarded.
Why C is correct: Without a dead-letter queue, undeliverable messages are dropped after the last retry.
Why the others are wrong:
A) It is returned to the publisher — SNS does not send failures back to the publisher.
B) It is sent to the other subscribers again — Other subscribers already got their own copy.
D) It is stored in the topic for 14 days — SNS topics do not store messages for later.
How to think about it: Retries exhausted and no DLQ = message discarded.
Why C is correct: Without a dead-letter queue, undeliverable messages are dropped after the last retry.
Why the others are wrong:
A) It is returned to the publisher — SNS does not send failures back to the publisher.
B) It is sent to the other subscribers again — Other subscribers already got their own copy.
D) It is stored in the topic for 14 days — SNS topics do not store messages for later.
Q51.Where is an SNS dead-letter queue attached, and what kind of resource is it?
✓ Correct: B. To a subscription, as an SQS queue
How to think about it: SNS DLQ = an SQS queue attached to a subscription, not the topic.
Why B is correct: Each subscription can have its own SQS dead-letter queue via a redrive policy.
Why the others are wrong:
A) To the topic, as another SNS topic — DLQs are set per subscription and must be SQS queues.
C) To the publisher's IAM role — IAM roles have no dead-letter settings.
D) To the topic, as an S3 bucket — S3 is not an SNS dead-letter target.
How to think about it: SNS DLQ = an SQS queue attached to a subscription, not the topic.
Why B is correct: Each subscription can have its own SQS dead-letter queue via a redrive policy.
Why the others are wrong:
A) To the topic, as another SNS topic — DLQs are set per subscription and must be SQS queues.
C) To the publisher's IAM role — IAM roles have no dead-letter settings.
D) To the topic, as an S3 bucket — S3 is not an SNS dead-letter target.
Q52.Which SNS subscription type lets you define a custom delivery retry policy?
✓ Correct: A. HTTP and HTTPS endpoints
How to think about it: Custom delivery policy = HTTP/S only.
Why A is correct: Only HTTP/S subscriptions accept custom retry and throttling settings.
Why the others are wrong:
B) Email subscriptions — Email deliveries cannot be given a custom retry policy.
C) AWS Lambda functions — Lambda deliveries use the fixed AWS-managed endpoint policy.
D) Amazon SQS queues — SQS deliveries use the fixed policy for AWS-managed endpoints.
How to think about it: Custom delivery policy = HTTP/S only.
Why A is correct: Only HTTP/S subscriptions accept custom retry and throttling settings.
Why the others are wrong:
B) Email subscriptions — Email deliveries cannot be given a custom retry policy.
C) AWS Lambda functions — Lambda deliveries use the fixed AWS-managed endpoint policy.
D) Amazon SQS queues — SQS deliveries use the fixed policy for AWS-managed endpoints.
Q53.A partner's HTTPS endpoint subscribed to SNS will be down for about 12 hours of maintenance. With the default delivery policy and no DLQ, what is the risk?
✓ Correct: C. Messages may be dropped because default retries end after about six hours
How to think about it: Customer endpoints: default retries cover about 6 hours; AWS endpoints (SQS, Lambda) retry for days.
Why C is correct: The default HTTP/S policy stops after roughly 50 attempts over 6 hours, so add a DLQ or longer policy.
Why the others are wrong:
A) No risk, since SNS retries HTTPS for about 23 days — The multi-day retry schedule applies to AWS-managed endpoints like SQS and Lambda.
B) No risk, since SNS holds messages until the endpoint returns — SNS does not store messages indefinitely for subscribers.
D) SNS stops the subscription after the first failure — SNS retries many times before giving up.
How to think about it: Customer endpoints: default retries cover about 6 hours; AWS endpoints (SQS, Lambda) retry for days.
Why C is correct: The default HTTP/S policy stops after roughly 50 attempts over 6 hours, so add a DLQ or longer policy.
Why the others are wrong:
A) No risk, since SNS retries HTTPS for about 23 days — The multi-day retry schedule applies to AWS-managed endpoints like SQS and Lambda.
B) No risk, since SNS holds messages until the endpoint returns — SNS does not store messages indefinitely for subscribers.
D) SNS stops the subscription after the first failure — SNS retries many times before giving up.
Q54.A subscription on an SNS FIFO topic needs a dead-letter queue. What type must it be?
✓ Correct: B. An SQS FIFO queue
How to think about it: SNS FIFO subscription DLQ = SQS FIFO queue.
Why B is correct: Dead-letter queues for FIFO topic subscriptions must be FIFO queues to keep order.
Why the others are wrong:
A) Another SNS FIFO topic — SNS DLQs must be SQS queues.
C) An SQS standard queue — Standard DLQs are for standard topic subscriptions.
D) A Kinesis data stream — Kinesis streams are not SNS dead-letter targets.
How to think about it: SNS FIFO subscription DLQ = SQS FIFO queue.
Why B is correct: Dead-letter queues for FIFO topic subscriptions must be FIFO queues to keep order.
Why the others are wrong:
A) Another SNS FIFO topic — SNS DLQs must be SQS queues.
C) An SQS standard queue — Standard DLQs are for standard topic subscriptions.
D) A Kinesis data stream — Kinesis streams are not SNS dead-letter targets.
Q55.Why subscribe SQS queues to an SNS topic instead of having SNS call each service directly?
✓ Correct: B. Each queue durably buffers its own copy
How to think about it: SNS + SQS fan-out = push once, each queue adds persistence, delays and retries.
Why B is correct: Queues buffer each copy, so a slow or failed service loses nothing.
Why the others are wrong:
A) It makes each message cheaper than a direct call — Cost is not the main reason; durability and decoupling are.
C) It guarantees strict ordering across all queues — Standard topics and queues do not guarantee order.
D) It removes the need for any IAM permissions — The queue still needs an access policy allowing SNS.
How to think about it: SNS + SQS fan-out = push once, each queue adds persistence, delays and retries.
Why B is correct: Queues buffer each copy, so a slow or failed service loses nothing.
Why the others are wrong:
A) It makes each message cheaper than a direct call — Cost is not the main reason; durability and decoupling are.
C) It guarantees strict ordering across all queues — Standard topics and queues do not guarantee order.
D) It removes the need for any IAM permissions — The queue still needs an access policy allowing SNS.
Q56.An SQS queue subscribed to an SNS topic never receives messages. What should you check first?
✓ Correct: C. The queue policy lets the topic send
How to think about it: Fan-out pitfall = the SQS queue access policy must allow the topic to send.
Why C is correct: Without that policy, SNS is denied when it tries to deliver.
Why the others are wrong:
A) The queue's long polling setting — Polling mode does not stop messages arriving.
B) The queue's visibility timeout — Visibility timeout affects receiving, not delivery from SNS.
D) The topic's custom HTTP delivery policy — Custom delivery policies do not apply to SQS.
How to think about it: Fan-out pitfall = the SQS queue access policy must allow the topic to send.
Why C is correct: Without that policy, SNS is denied when it tries to deliver.
Why the others are wrong:
A) The queue's long polling setting — Polling mode does not stop messages arriving.
B) The queue's visibility timeout — Visibility timeout affects receiving, not delivery from SNS.
D) The topic's custom HTTP delivery policy — Custom delivery policies do not apply to SQS.
Q57.The same S3 object-created events for one prefix must reach three different SQS queues. S3 rejects overlapping notification rules. What should you do?
✓ Correct: C. Send the S3 event to one SNS topic and subscribe all three queues
How to think about it: One S3 event, many consumers = fan-out via SNS (or EventBridge).
Why C is correct: One notification rule targets the topic, which copies each event to every queue.
Why the others are wrong:
A) Turn on S3 Replication to three buckets — Replication copies objects; it does not send events to queues.
B) Create three notification rules with the same prefix — S3 does not allow overlapping rules for the same event type and prefix.
D) Have the first queue forward to the other two — SQS cannot forward messages to other queues.
How to think about it: One S3 event, many consumers = fan-out via SNS (or EventBridge).
Why C is correct: One notification rule targets the topic, which copies each event to every queue.
Why the others are wrong:
A) Turn on S3 Replication to three buckets — Replication copies objects; it does not send events to queues.
B) Create three notification rules with the same prefix — S3 does not allow overlapping rules for the same event type and prefix.
D) Have the first queue forward to the other two — SQS cannot forward messages to other queues.
Q58.Can an SNS topic deliver to an SQS queue in a different Region?
✓ Correct: D. Yes; cross-Region delivery to SQS is supported
How to think about it: SNS to SQS cross-Region delivery is supported.
Why D is correct: A topic can deliver to queues in other Regions if permissions allow it.
Why the others are wrong:
A) Only through a VPC peering connection — SNS delivery does not use your VPC networking.
B) Only if both are FIFO — Cross-Region delivery does not depend on FIFO.
C) No; the queue must be in the same Region — Same-Region is not required for SQS subscribers.
How to think about it: SNS to SQS cross-Region delivery is supported.
Why D is correct: A topic can deliver to queues in other Regions if permissions allow it.
Why the others are wrong:
A) Only through a VPC peering connection — SNS delivery does not use your VPC networking.
B) Only if both are FIFO — Cross-Region delivery does not depend on FIFO.
C) No; the queue must be in the same Region — Same-Region is not required for SQS subscribers.
Q59.Every message published to an SNS topic must also be archived to S3 with minimal custom code. Which design fits?
✓ Correct: A. Subscribe a Firehose stream to the topic, delivering to S3
How to think about it: SNS to S3 = subscribe Amazon Data Firehose, which delivers to S3.
Why A is correct: Firehose batches messages and writes them to S3 or another destination without code.
Why the others are wrong:
B) Enable the topic's delivery status logging to S3 — Delivery status logs go to CloudWatch Logs and are not message archives.
C) Subscribe a Kinesis data stream to the topic — SNS cannot deliver to Kinesis Data Streams directly.
D) Subscribe the S3 bucket directly to the topic — S3 is not a supported SNS subscription type.
How to think about it: SNS to S3 = subscribe Amazon Data Firehose, which delivers to S3.
Why A is correct: Firehose batches messages and writes them to S3 or another destination without code.
Why the others are wrong:
B) Enable the topic's delivery status logging to S3 — Delivery status logs go to CloudWatch Logs and are not message archives.
C) Subscribe a Kinesis data stream to the topic — SNS cannot deliver to Kinesis Data Streams directly.
D) Subscribe the S3 bucket directly to the topic — S3 is not a supported SNS subscription type.
Q60.An order event must reach several downstream services, each in strict per-order sequence and without duplicates. Which design fits?
✓ Correct: D. An SNS FIFO topic fanning out to SQS FIFO queues
How to think about it: Fan-out + ordering + dedup = SNS FIFO topic to SQS FIFO queues.
Why D is correct: FIFO topics keep order and deduplicate, and FIFO queues keep that order for each consumer.
Why the others are wrong:
A) EventBridge rules routing to standard queues — Standard queues do not keep order or remove duplicates.
B) One SQS FIFO queue read by all services — Each message would reach only one service.
C) An SNS standard topic fanning out to SQS FIFO queues — A standard topic can reorder or duplicate before the queue sees it.
How to think about it: Fan-out + ordering + dedup = SNS FIFO topic to SQS FIFO queues.
Why D is correct: FIFO topics keep order and deduplicate, and FIFO queues keep that order for each consumer.
Why the others are wrong:
A) EventBridge rules routing to standard queues — Standard queues do not keep order or remove duplicates.
B) One SQS FIFO queue read by all services — Each message would reach only one service.
C) An SNS standard topic fanning out to SQS FIFO queues — A standard topic can reorder or duplicate before the queue sees it.