All section bad answer review Flashcards
When you launch an EC2 instance and you get this error InstanceLimitExceeded, then you have reached your limit of a maximum number of vCPUs per AWS Region. Either launch the EC2 instance in a different AWS Region or contact AWS Support to increase your limit of the AWS Region.
Launch the EC2 instance in a different AWS Region because it’s a vCPU limit on a per-region level
You are getting an error InsufficientInstanceCapacity while trying to launch an EC2 instance. What’s the problem?
AWS does not have enough on-demand capacity regarding the particular AZ
You’re trying to SSH into your EC2 instance and you are facing the following error Connection timed out. Which of the following is NOT a reason for this error?
You .pem file on your Linux machine doesn’t have 400 permissions
Your t2.small EC2 instance constantly runs out of CPU credits and therefore the performance is degraded. What is NOT a solution for this problem?
Purchase CPU credits for your EC2 instances
You are launching an EC2 instance in us-east-1 using AWS Lambda in us-east-1 using this Python script snippet:
ec2.create_instances(ImageId=’ami-0dc2d3e4c0f9ebd18’, MinCount=1, MaxCount=1)
It works well, so you decide to deploy your AWS Lambda function in us-west-1 as well. There, the function does not work and fails with InvalidAMIID.NotFound error. What’s the problem?
AMI is region locked and the same AMI ID can not be used across regions
Your company has a critical application that’s hosted on 100s of EC2 instances. The security team has created an AMI that’s updated and has all the security patches installed. The DevOps team must create the EC2 instances from the AMI approved by the security team, but there’s no IAM policy to prevent them from using another AMI. What AWS service would you use to ensure that all the EC2 instances are launched using the approved AMI?
AWS Config
You have a fleet of EC2 instances and you want to apply a patch to all of them without SSH into each EC2 instance. What’s the easiest way to patch this fleet of EC2 instances?
SSM Run Command
You would like to expose a fixed static IP to your end-users for compliance purposes, so they can write firewall rules that will be stable and approved by regulators. Which Load Balancer should you use?
Network Load Balancer
You want toYou want to create a custom application-based cookie in your Application Load Balancer. Which of the following you can use as a cookie name?
AAPUSERC
You have an application that is RAM intensive that increases the RAM usage based on the number of clients requests it receives. This application is behind an Elastic Load Balancer and managed by an ASG. How do you handle scaling for this application?
Scale based on Number of Request Per Instance CloudWatch metric
You would like to link the success of your CloudFormation template to the success of installing and properly configuring launched EC2 instances. How can you achieve this?
Use WaitCondition and cfn-signal to let CloudFormation know of the success status
What CloudFormation feature helps you analyze the upcoming changes on a CloudFormation stack update without actually executing them?
ChangeSets
A SysOps Administrator created an AWS CloudFormation template for the first time. The stack failed with a status of ROLLBACK_COMPLETE. The Administrator identified and resolved the template issue that caused the failure. How should the Administrator continue with the stack deployment?
Delete the failed stack and create a new stack
Which of the following are NOT valid CloudFormation Pseudo Parameters?
AWS:AccountName
You have created a CloudFormation stack that has a lot of resources (ASG, ALB, EC2, RDS DB, S3 buckets, …). One of your teammates doesn’t know that the ALB has been created as part of the CloudFormation stack, so he deleted the ALB and created a new ALB. Later on, you attempted to update the stack, the update failed and the stack can’t be rolled back with the following error UPDATE_ROLLBACK_FAILED. What would you do to resolve this issue?
You can fix the errors manually (re-create the deleted ALB with the same configuration) or you can skip the ALB while updating the stack
You have enabled a Dead Letter Queue (DLQ) for your Lambda function and configured it to send failed messages to SNS. While testing, you don’t see any events there even though you can tell from CloudWatch metrics that you have failures. What is most likely the reason for this?
You Lambda function’s execution role is missing permissions
You have enabled and configured Event Notifications in your S3 bucket to invoke a Lambda function every time an object is uploaded to your S3 bucket. You have noticed that there’s duplicate logging into CloudWatch Logs with the same request ID. What do you think is the reason for this?
The Lambda function has failed and retries have happened
You want to give another AWS account access to invoke a Lambda function in your AWS account. Which of the following can NOT be used to do so?
Lambda Execution Role
Which of the following can NOT be used to secure access to files/data stored on an EFS file system?
Amazon Cognito
Which of the following is NOT a Glacier Flexible retrieval mode?
Instant (10 seconds)
You are looking to get recommendations for S3 Lifecycle Rules. How can you analyze the optimal number of days to move objects between different storage tiers?
S3 Analytics
You have an S3 bucket with 1000s of objects stored in it. You want to perform an update to each object in the bucket. What’s the most effective approach to do?
Use S3 Batch Operations