CloudGuild · Blog · Cheat sheets · Lessons · Certifications
Understanding Resiliency in AWS Architectures
Learn how to tackle resilience-related questions on the AWS Certified Solutions Architect - Associate exam with this detailed walkthrough.
An application must handle network interruptions effectively. This decision often trips candidates up. Understanding the right AWS service feature is crucial for building resilient applications.
The question
An application hosted on AWS needs to be resilient to network interruptions and should automatically retry requests. Which AWS service feature should be used to implement this capability?
- A. Amazon SQS with Visibility Timeout
- B. AWS Step Functions with Retry Policy
- C. Amazon DynamoDB with Conditional Writes
- D. AWS App Mesh with Traffic Routing
Think before you scroll
Consider the specific needs of the application: automatic retries due to network interruptions. Weigh each option carefully against this requirement to identify the best fit.
The answer
The correct option is B. AWS Step Functions with Retry Policy. This service includes built-in retry capabilities that automatically handle network interruptions, making it the best choice for this scenario.
Why the other options lose
- A. Amazon SQS with Visibility Timeout: While SQS is effective for message queuing, it does not provide automatic retries for requests in the context of application-level resiliency. It focuses on message processing rather than handling network interruptions directly.
- C. Amazon DynamoDB with Conditional Writes: This feature ensures data integrity during write operations but does not address automatic retries for network issues. Its primary function is to maintain data consistency, not to manage request retries.
- D. AWS App Mesh with Traffic Routing: App Mesh is designed for managing service-to-service communication and traffic management in microservices architectures. It does not inherently provide retry mechanisms for network interruptions.
The concept behind it
Using AWS Step Functions allows developers to build workflows that can automatically retry failed tasks. This is crucial for maintaining application availability and performance during transient failures, such as network interruptions. Understanding this principle helps in crafting resilient architectures across AWS services.
Exam trap to remember
Remember: when asked about resiliency and automatic retries, think AWS Step Functions with a retry policy. It stands out for handling network interruptions effectively.