Solutions Architecture Flashcards
Your website TriangleSunglasses.com is hosted on a fleet of EC2 instances managed by an Auto Scaling Group and fronted by an Application Load Balancer. Your ASG has been configured to scale on-demand based on the traffic going to your website. To reduce costs, you have configured the ASG to scale based on the traffic going through the ALB. To make the solution highly available, you have updated your ASG and set the minimum capacity to 2. How can you further reduce the costs while respecting the requirements?
A) Remove the ALB and use EIP instead
B) Reserve two EC2 instances
C) Reduce the minimum capacity to 1
D) Reduce the minimum capacity to 0
B
This is the way to save further costs as we will run 2 EC2 instances no matter what.
Which of the following will NOT help us while designing a STATELESS application tier?
A) Store session data in Amazon RDS
B) Store session data in Amazon Elasticache
C) Store session data in the client HTTP cookies
D) Store session data in EBS volumes
D
EBS volumes are created in a specific AZ and can only be attached to one EC2 instance at a time.
You want to install software updates on 100s of Linux EC2 instances that you manage. You want to store these updates on shared storage which should be dynamically loaded on the EC2 instances and shouldn’t require heavy operations. What do you suggest?
A) Store the software updates on EBS and sync them using data replication software from one master in each AZ
B) Store the software updates on EFS and mount EFS as a network drive on startup
C) Package the software updates as on EBS snapshot and create EBS volumes for each new software updates
D) Store the software updates on Amazon RDS
B)
EFS is a network file system (NFS) that allows you to mount the same file system to 100s of EC2 instances. Storing software updates on an EFS allows each EC2 instance to access them.
As a Solutions Architect, you’re planning to migrate a complex ERP software suite to AWS Cloud. You’re planning to host the software on a set of Linux EC2 instances managed by an Auto Scaling Group. The software traditionally takes over an hour to set up on a Linux machine. How do you recommend you speed up the installation process when there’s a scale-out event?
A) Use a golden AMI
B) Bootstrap using EC2 user data
C) Store the application in Amazon RDS
D) Retrieve the application setup files from EFS
A)
Golden AMI is an image that contains all your software installed and configured so that future EC2 instances can boot up quickly from that AMI.
You’re developing an application and would like to deploy it to Elastic Beanstalk with minimal cost. You should run it in ………………
A) Single instance mode
B) High availability mode
A)
The question mentions that you’re still in the development stage and you want to reduce costs. Single Instance Mode will create one EC2 instance and one Elastic IP.
You’re deploying your application to an Elastic Beanstalk environment but you notice that the deployment process is painfully slow. After reviewing the logs, you found that your dependencies are resolved on each EC2 instance each time you deploy. How can you speed up the deployment process with minimal impact?
A) Remove some dependencies in your code
B) Place the dependencies in Amazon EFS
C) Create a golden AMI that contains the dependencies and use that image to launch the EC2 instances
C)
Golden AMI is an image that contains all your software, dependencies, and configurations, so that future EC2 instances can boot up quickly from that AMI.