Aws Flashcards ionicons-v5-c

An EC2 instance retrieves a message from an SQS queue, begins processing the message, then crashes. What happens to the message?

When the message visibility timeout expires, the message becomes available for processing by other EC2 instances

Given the following region design, what is the bare minimum for configuring high availability and why? Two availability zones within a region, az-a and az-b.

Create an ELB that serves traffic to two instances, one instance in each availability zone, and enable cross-zone load balancing on the ELB, then create an Auto Scaling Group, because this applies high availability if a single availability zone is no longer available

Which of the following best describes what "bastion hosts

Bastion hosts are instances that sit within your public subnet and are typically accessed using SSH or RDP. Once remote connectivity has been established with a bastion host, it then acts as a 'jump' server, allowing you to use SSH or RDP to log into other instances (within private subnets) deeper within your network.

Which statements are true about Amazon S3

Provides %99.999999999 durability to S3 objects, Provides %99.99 availability to S3 objects

) Your supervisor asks you to create a decoupled application using EC2 instances polling an SQS queue. Which of the following is not necessary to accomplish this goal

An Elastic Load Balancer to distribute traffic from EC2 instances to the SQS queueWhile an Elastic Load Balancer is often used to handle incoming web traffic requests in a highly available web application solution, it is not required for a decoupled application's EC2 instances to poll SQS. A decoupled application requires that one component of the application can fail without the entire environment failing. Using multiple EC2 instances that have been launched with a role granting SQS queue permissions and using code to poll an SQS queue allows an EC2 instance to fail, even if it has already begun processing a job because another instance is able to process the job when the message is returned to the queue.

) Elasticity is a fundamental property of the cloud. What best describes elasticity

Power to scale computing resources up and down easily with minimal friction

Which of the following is an invalid VPC peering configuration

You have a VPC peering connection between VPC A and VPC B. VPC A also has a VPN connection to a corporate network. You use VPC A to extend the peering relationship to exist between VPC B and the corporate network so that traffic from the corporate network can directly access VPC B by using the VPN connection to VPC A

You are asked to review a plan that your company has made to create a new application that makes use of SQS, EC2, Auto Scaling and CloudWatch. Which of the following action items should you advise your company not to implement

Utilize short polling with a wait time of 20 seconds to reduce the number of empty responses from the SQS queueExplanationPolling executed with a wait time of greater than 0 seconds is called long polling

How do you secure company critical data on S3

You can use IAM Policies b. You can use Bucket policiesc. You can use Access Control Lists (ACLs)d. You can use the Server Side Encryption

What are the benefits of using Elasticache for you web applicatio

It reduces the load on your databaseGives you faster access to your cache data

. You have a business critical application that requires it to be highly available with 6 instances always running. What should you do to achieve this

Auto Scaling rule for 6 instances always runningd. Auto scaling rule for 3 instance always running in each zonee. Auto Scaling Replace the lost capacity in case of zone failure in the other zone

How to secure data on rest in ebs

EBS automatically encrypts data on it for more security

Enable SSE on an S3 bucket to make use of AES-256 encryption , Encrypt the data locally using your own encryption keys, then copy the data to Amazon S3 over HTTPS endpoints

You manage a web application on EC2 instances. Incoming requests are saved as messages in an SQS queue with the maximum message retention period. You return from a week and a half vacation to find that the part of the application which processes received requests is hung and the queue has grown to 1,000 messages. While you are working on resolving the application issue, you need to post an update to end users. What information should that update include

An apology for the delay in processing requests, assurance that the application will be operational shortly, and a note that all received requests will be processed at that time.ExplanationUse of an SQS queue to decouple the application means that a virtually unlimited number of received requests can be stored in the SQS queue for a maximum of 14 days and can be processed when the portion of the application that is responsible for processing received requests becomes operational again.

Your supervisor is upset that a client's purchase from your website was processed twice. You find out that the order process involves EC2 instances processing messages from an SQS queue. What action would you recommend to ensure this does not happen again?

Modify the order process to use SWFExplanationThe only way to ensure that a duplicate will not occur in a process is to use Amazon SWF instead of SQS. The other options can decrease the chances of duplicates in SQS, but will not eliminate them entirely.

Your company is concerned with EBS volume backup on Amazon EC2 and wants to ensure they have proper backups and that the data is durable. What solution would you implement and why

Write a cronjob that uses the AWS CLI to take a snapshot of production EBS volumes. The data is durable because EBS stapshots are stored on the Amazon S3 standard storage class

You manage a web application on EC2 instances. Incoming requests are saved as messages in an SQS queue with the maximum message retention period. You return from a week and a half vacation to find that the part of the application which processes received requests is hung and the queue has grown to 1,000 messages. While you are working on resolving the application issue, you need to post an update to end users. What information should that update include

Correct answerAn apology for the delay in processing requests, assurance that the application will be operational shortly, and a note that all received requests will be processed at that time.ExplanationUse of an SQS queue to decouple the application means that a virtually unlimited number of received requests can be stored in the SQS queue for a maximum of 14 days and can be processed when the portion of the application that is responsible for processing received requests becomes operational again.

You are asked to evaluate a company's AWS environment to find ways to reduce cost. You discover they are running three production web server reserved EC2 instances with EBS-backed root volumes. These instances have a consistent CPU load of 80%. Traffic is being distributed to these instances by an Elastic Load Balancer. They also have production and development Multi-AZ RDS MySQL databases. What recommendation would you make to reduce cost in this environment without affecting availability of mission-critical systems

Correct answerConsider not using a Multi-AZ RDS deployment for the development databaseExplanationMulti-AZ RDS databases minimize downtime, provide high availability, and reduce performance impact during backups, so they are highly recommended for production systems. Development systems may be able to get by with a standard RDS deployment, since uptime and performance requirements may be lower in a development environment.

Enable route propagation on your Virtual Private Gateway (VPG)Correct AnswerEdit the VPC subnet route table and add a route back to the on premise data center.There is no route connecting your VPC back to the on premise data center. You need to add this route to the route table and then enable propagation on the Virtual Private Gateway.

You are a solutions architect who has moved to a manufacturing company who has very legacy applications. One of these applications needs to communicate with services which are currently hosted on premise. The people who wrote this application have left the company and there is nothing to document how the application works. You need to ensure that this application can be hosted in a bespoke VPC but still be able to communicate to the back end services which are hosted on premise. Which of the three answers below will allow the application to communicate back to the on premise equipment without the need to reprogram the application

You should configure the VPC subnet in which the application is sitting so that it does not have a conflicting IP address range as the on premise VLAN in which the back end services sit.CorrectYou should ensure the VPC has an internet gateway attached to it so that you can establish a site to site VPN with the on premise environment.You should configure an AWS Direct Connect link between the VPC and the site with the on premise solution.You need to ensure that your application in your custom VPC can communicate back to the on-premise data center. You can do this by either using a site to site VPN or Direct Connect. It will be using an internal IP address range, so you must make sure that your internal IP addresses do not overlap.

With SAML-enabled single sign-on

The portal first verifies the user's identity in your organization, then generates a SAML authentication responseAfter the client browser posts the SAML assertion, AWS sends the sign-in URL as a redirect, and the client browser is redirected to the Console.

How the Public IP address managed in an instance session via the instance GUI/RDP or Terminal/SSH session

The Public IP address is not managed on the instance, but is an alias applied as a NAT of the Private IP address at the VPC boundary equipment managed by AWS

When coding a routine to upload to S3 you have the option of single part upload or multipart upload. For what reason might you choose to use Multipart upload

Improved throughputQuick recovery from network issuesPause and resume object uploadsBegin an upload before you know the final object size

Which two URL formats does S3 support to accessing bucket 'mynewbucket'

http://mynewbucket.s3-aws-region.amazonaws.comhttp://s3-aws-region.amazonaws.com/mynewbucket

when copying an AMI, which of the following types of information must be manually copied to the new instance

Launch permissionsS3 bucket permissionUser-defined tagsLaunch permissions, S3 bucket permissions, and user-defined tags must be copied manually to an instance based on an AMI. User data is part of the AMI, itself, and does not need to be copied manually.

The risk with spot instances is that you are not guaranteed use of the resource as long as you might want. Choose 4 possible scenarios for AWS forced shutdown

AWS sends a notification of termination and you receive it 120 seconds before the intended forced shutdown.AWS sends a notification of termination but you do not receive it within the 120 seconds and the instance is shutdown.AWS sends a notification of termination and you receive it 120 seconds before the intended forced shutdown, but AWS do not action the shutdown.AWS sends a notification of termination and you receive it 120 seconds before the forced shutdown, but the normal lease expired before the forced shutdown.

Enable route propagation on your Virtual Private Gateway (VPG)Correct AnswerEdit the VPC subnet route table and add a route back to the on premise data center.There is no route connecting your VPC back to the on premise data center. You need to add this route to the route table and then enable propagation on the Virtual Private Gateway.

How the Public IP address managed in an instance session via the instance GUI/RDP or Terminal/SSH session

The Public IP address is not managed on the instance, but is an alias applied as a NAT of the Private IP address at the VPC boundary equipment managed by AWSA private IP address is an IP address that's not reachable over the Internet. You can use private IP addresses for communication between instances in the same network (EC2-Classic or a VPC). For more information about the standards and specifications of private IP addresses

You are planning on creating an EC2 instance that will create S3 objects and modify CloudWatch alarms. What is the best way to deploy this instance?

Assign an S3 policy and a CloudWatch policy to a single IAM role. Assign the IAM role to the instance at deployment timeExplanationEC2 instances should use IAM roles, rather than IAM user credentials, to perform actions on AWS resources. An EC2 instance can only be assigned one role

Which of the following is not a benefit of a decoupled architecture using EC2, Auto Scaling, and SQS

Correct answerAn application does not become unavailable due to the deletion of a single SQS queueExplanationDeletion of an SQS queue used in an application will cause the application to fail.

You manage a web application on EC2 instances. Incoming requests are saved as messages in an SQS queue with the maximum message retention period. You return from a week and a half vacation to find that the part of the application which processes received requests is hung and the queue has grown to 1,000 messages. While you are working on resolving the application issue, you need to post an update to end users. What information should that update include

orrect answerAn apology for the delay in processing requests, assurance that the application will be operational shortly, and a note that all received requests will be processed at that time.ExplanationUse of an SQS queue to decouple the application means that a virtually unlimited number of received requests can be stored in the SQS queue for a maximum of 14 days and can be processed when the portion of the application that is responsible for processing received requests becomes operational again.

Which is an operational process performed by AWS for data security?

Decommissioning of storage devices using industry-standard practices

You create an SQS queue and decide to test it out by creating a simple application which looks for messages in the queue. When a message is retrieved, the application is supposed to delete the message. You create three test messages in your SQS queue and discover that messages 1 and 3 are quickly deleted but message 2 remains in the queue. What is a possible cause for this behavior

Correct answerThe order that messages are received in is not guaranteed in SQS, Your application is using short pollingExplanationShort polling does not query all the servers that the SQS messages can reside on, so multiple queries of the queue may be needed to retrieve all messages in the queue.

You create an SQS queue and decide to test it out by creating a simple application which looks for messages in the queue. When a message is retrieved, the application is supposed to delete the message. You create three test messages in your SQS queue and discover that messages 1 and 3 are quickly deleted but message 2 remains in the queue. What is a possible cause for this behavior?

Correct answerThe order that messages are received in is not guaranteed in SQS, Your application is using short pollingExplanationShort polling does not query all the servers that the SQS messages can reside on, so multiple queries of the queue may be needed to retrieve all messages in the queue.

Which statements are true about Amazon S3

Provides %99.999999999 durability to S3 objects, Provides %99.99 availability to S3 objects

hich of the following will occur when an EC2 instance in a VPC with an associated Elastic IP is stopped and started?Incorrect

All data on instance-store devices will be lost, The underlying host for the instance can be changed

Your company has moved a legacy application from an on-premise data center to the cloud. The legacy application requires a static IP address hard-coded into the backend, which prevents you from deploying the application with high availability and fault tolerance using the ELB. Which steps would you take to apply high availability and fault tolerance to this application?

Correct answerEnsure that the instance it's using has an elastic IP address assigned to it, Write a custom script that pings the health of the instance, and, if the instance stops responding, switches the elastic IP address to a standby instance