More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. AMI is an Amazon Machine Image. It contains the configuration to enable to boot up an EC2 instance with said configuration whereas Cloud formation is a templating language that allows to describe how to build a VPC and also allows you to create AWS services
AMI is templating specific to instances whereas the scope of CloudFormation templating is much bigger. CloudFormation could use AMI for launching instances along with other services.
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  aws cloud formation  aws ami  amazon ami  aws ami  amazon ami vs aws cloud formation
Q213. You have a webserver on an ec2 instance. Your instance can get to the internet, but nobody on the internet can get to your webserver. Describe how you would troubleshoot.
Ans. CloudFront for Static Media and cached content
EC2 and EKS ( Docker ) for main application computing
RDS and DynamoDB for Database
Lambda ( computing ) for running back end cron jobs
Kinesis for streaming and SQS for queuing
CloudWatch for Monitoring
CloudFormation for Infrastructure templating
S3 for Object Storage
Help us improve. Please let us know the company, where you were asked this question :
Ans. In AWS Lambda we can run a function in synchronous or asynchronous mode. In synchronous mode, if AWS Lambda function fails, then it will just give an exception to the calling application. In asynchronous mode, if AWS Lambda function fails then it will retry the same function at least 3 times.If AWS Lambda is running in response to an event in Amazon DynamoDB or Amazon Kinesis, then the event will be retried till the Lambda function succeeds or the data expires. In DynamoDB or Kinesis, AWS maintains data for at least 24 hours.
Help us improve. Please let us know the company, where you were asked this question :
Q234. A customer has a website which is accessible over the Internet and he wants to secure the communication and decides to implement HTTPS instead of HTTP. He has configured EC2 instance behind an ELB. Where should you configure the SSL certificate?
Ans. Just like people , AWS resources too have execution roles or permissions. Seems like in such a situation Lambda function may not have sufficient privileges to perform operations on S3. For example - The execution role of Lambda may just have read permissions on S3 and we may be trying to perform PutObject operation.
Help us improve. Please let us know the company, where you were asked this question :