EC2 Flashcards
What two resource tags are supported for an EC2 instance?
- VPC endpoint
- EIP
- network interface
- security group
- Flow Log
- VPC endpoint
- EIP
You wish to provide shared network storage to mount on multiple EC2 Windows Instances. How would this be accomplished?
- Create an Elastic File System (EFS) regional mount; mount the share on each Instance with NFS v4.1
- Create Elastic File System (EFS) mount targets in each AZ; mount the share on each Instance with NFS v4.0
- Create Elastic File System (EFS) mount targets in each AZ; mount the share on each Instance with the SMB protocol
- None of the above
None of the above
None of these options are correct. All 3 options are incorrect because EFS does not support the Windows OS. Only Linux instances are supported for EFS. “Create Elastic File System (EFS) mount targets in each AZ; mount the share on each Instance with the SMB protocol” is incorrect as well because the EFS service does not provide an SMB share option; only NFS v4.0 or 4.1 are supported on EFS. At the time of this writing, a new service was announced called FSx which is designed for Windows shares. FSx will provide SMB shares for Windows or Linux instances; and fully supports Active Directory permissions.
What is a Security Group ID format, prefix?
sg-xxxxxxxxxxxxxxxx is the typical format of a security group ID.
You’re running an application that needs to be highly available in eu-west-1. In order for this application to function correctly, 10 related EC2 instances must running at all times. Which of the following deployments provides the ability to meet the requirements should an AZ go down? (choose 2)
- 3 EC2 instances in eu-west-1a, 3 EC2 instances in eu-west-1b, and 3 EC2 instances in eu-west-1c.
- 10 EC2 instances in eu-west-1a, 0 EC2 instances in eu-west-1b, and 10 EC2 instances in eu-west-1c
- 4 EC2 instances in eu-west-1a, 4 EC2 instances in eu-west-1b, and 2 EC2 instances in eu-west-1c.
- 5 EC2 instances in eu-west-1a, 5 EC2 instances in eu-west-1b, and 5 EC2 instances in eu-west-1c
Should an AZ go down, only the answers of 5,5,5 or 10,0,10 EC2 instances are correct because if you take out one of those AZs, you would still have 10 EC2 instances running. Of course 10,10,10 will be more expensive, butit is still a valid answer.
Which of the following EC2 operating systems is NOT supported by CloudWatch?
- Amazon Linux
- Debian
- Ubuntu
- None of these.
All EC2 operating systems are supported by CloudWatch.
Which of the following statements is TRUE.
- It is possible to use Autoscaling with EBS, rather than EC2.
- It is possible to configure an Autoscaling Group to repair degraded EBS volumes, without the need to terminate the EC2 instances.
- You are able to attach multiple EBS volumes to an EC2 instance.
- You are able to attach multiple EC2 instances to an EBS Volume.
You are able to attach multiple EBS volumes to an EC2 instance.
You have created an EC2 Instance into a Subnet. You later need to change the subnet the EC2 instance is directly attached to. How can this be achieved?
- Simply move the EC2 instance by shutting it down, moving the instance and starting it back up
- Shutdown, snapshot the EC2 instance, and deploy a new instance from the snapshot
- Move the eth0 ENI to the new subnet
- Create a new ENI in the new Subnet, remove the original Eth0 ENI, and mount the new ENI to the EC2 instance.
- Shutdown, snapshot the EC2 instance, and deploy a new instance from the snapshot
An EC2 instance cannot be directly moved. If you snapshot the EC2 instance, a new EC2 instance can be created in a new subnet. “Simply move the EC2 instance by shutting it down, moving the instance and starting it back up” is incorrect because it cannot be moved. “Move the eth0 ENI to the new subnet” and “Create a new ENI in the new Subnet, remove the original Eth0 ENI, and mount the new ENI to the EC2 instance.” are incorrect because Eth0 cannot be removed or moved.
What two types of status checks run every minute on a running EC2 Instance? (Select 2)
- System Status Checks
- Application Status Checks
- Network Status Checks
- Instance Status Checks
- Instance Status Checks
- System Status Checks
System Status Checks monitor the health of the EC2 host your instance is running on. This includes watching for loss of power, loss of network connectivity, and software/hardware issues on the host that impairs reachability. Instance Status Checks monitors for software or network issues on your EC2 Instance, including failed System Status Checks, network misconfiguration, exhausted memory, and corrupt file systems.
You have suggested moving your company’s web servers to AWS, but your supervisor is concerned about cost. Which of the following deployments will give you the most scalable and cost-effective solution?
- A hybrid solution that leverages on-premise resources
- A solution that’s built to run 24/7 at 100% capacity, using a fixed number of T2 Micro instances
- An EC2 auto-scaling group that will expand and contract with demand
- None of these options
An Auto-Scaling group of EC2 instances will exactly match the demand placed on your servers, allowing you to pay only for the compute capacity you actually need.
You require a stateful firewall option for your EC2 instances, what service provides this?
- Network Access Control List (NACL)
- Security Group
- AWS WAF
- AWS Firewall Manager
Security group provides a stateful firewall.
NACL is stateless, WAF is not a traditional firewall and is designed for web applications, but not to act as a full firewall. Lastly Firewall manager simply coordinates and manages firewall rules throughout your organization and is not a firewall itself.
What method detects when to replace an EC2 instance that is assigned to an Auto-Scaling group?
- health check
- load balancing algorithm
- EC2 health check
- not currently supported
- dynamic path detection
- Auto-Scaling
health check
You have an EC2 instance with a Security Group attached. This security group is configured to only allow traffic to/from 10.0.0.0/16. A collegue has also configured a NACL on the private subnet that the instance resides on, and this NACL is configured to block all traffic, except where the destination is in 10.0.1.0/24. What will happen when the instance attempts to access IP 192.168.0.12 on port 80?
- The traffic will be allowed as it is still within a private range
- The security group will block the traffic before it is evaluated by the NACL
- The traffic will be blocked simultaneously by the Security Group and NACL
- The NACL will block the traffic before it is evaluated by the security group
- The security group will block the traffic before it is evaluated by the NACL
With outbound traffic, Security Groups are evaluated first, then NACLs. The security group is configured to only allow traffic where the destination is 10.0.0.0/16, and as 192.168.0.12 does not fall within this range it will be blocked by the security group before it reaches the NACL.
Which statements are true of Security Groups? (Select 2)
- Security Groups are Stateful. Traffic allowed through in one direction will be allowed through the other direction.
- Security Groups are Stateless. For traffic to flow, an Inbound and Outbound rule must be created allowing the traffic
- Security Groups control inbound and outbound traffic destined for a resource
- Security Groups control inbound and outbound traffic destined for a subnet
- Security Groups are Stateful. Traffic allowed through in one direction will be allowed through the other direction.
- Security Groups control inbound and outbound traffic destined for a resource
“Security Groups are Stateful. Traffic allowed through in one direction will be allowed through the other direction” & “Security Groups are Stateful. Traffic allowed through in one direction will be allowed through the other direction” are true of Security Groups. The other answers describe Access Control Lists in a VPC
What is unique about the “T” family EC2 instance type?
- The T family is a burstable resource
- The T family is for development use only
- The T family is a Temporary instance
- The T family is a Testing instance
The T family is a burstable resource, managed through Credits. Credits are earned when the instance operates its CPU below the baseline, while consuming credits when operating its CPU above the baseline.
What is the name of the service or feature that will create and terminate EC2 instances when utilization changes?
- Predictive Capacity Planning
- EC2 Auto Scaling
- EC2 Auto Provisioning
- EC2 Auto Recovery
EC2 Auto Scaling
EC2 Auto Scaling is a service in AWS which will manage the capacity of our EC2 instances. It will not make instances bigger or smaller (vertical scaling); it adds nodes and removes them to create a horizontal scaling mechanism. Predictive Capacity Planning and EC2 Auto Provisioning are wrong because they are not real features or products in AWS. EC2 Auto Recovery is a feature in AWS which can be enabled but it is not for scaling but rather recovery of failed resources and actually should not be used in conjunction with Auto Scaling.
You have been running a handful of EC2 instances for an extended period of time and are now ready to purchase some Reserved Instances (RI’s). What is not a valid EC2 Reserved Instance option?
- Standard RI, 2 year term, paid up front
- Convertible RI, 3 year term, paid partially up front
- Standard RI, 1 year term, no upfront payment
- Scheduled RI, 1 year term, scheduled for 1 hour a day
“Standard RI, 2 year term, paid up front”
“Standard RI, 2 year term, paid up front” is not a valid RI term, as RI’s are only offered in either 1 or 3 year terms. 2 year terms are not an option. All other options listed are possible. All options allow for 3 payment options, all up front, partial up front, or no up front. There are both Standard, Convertible, and Scheduled RI options.
You are running an instance from the AWS Spot Market. When AWS requires use of the spot resource, you will receive a warning. Where is this warning provided? (Choose 2)
- A CloudWatch Event rule
- A Trusted Advisor notification
- Within the EC2 meta-data
- A message in an SQS queue
- A CloudWatch Event rule
- Within the EC2 meta-data
EC2 Spot instances provide a warning if the instance is flagged for removal. That warning can be provided via the EC2 meta-data, as well as via a CloudWatch Event Rule. Trusted Advisor does not monitor EC2 Spot warnings, nor is an SQS Queue used for this purpose
Name the feature now available to T2 and T3 instances, that allow it to perform above baseline CPU performance even if you run out of CPU Credits.
- T2/T3 Max
- T2/T3 Standard
- T2/T3 Unlimited
- T2/T3 Limitless
T2/T3 Unlimited
is the name of the feature that allows this instance family to maintain CPU performance above the baseline regardless of your CPU Credit balance. The price to maintain this feature is built in to the cost of the instance when this feature is active.
Application Developers need a virtual server to push code into production once functionality is confirmed. According to the Tech Lead, the EC2 instance to be configured should not only have the ability to burst above its baseline performance, but also support network speeds of up to 5 Gbps.. Which of the following instance choices will be most suitable for the production server?
- a1.xlarge
- c5.large
- t2.medium
- t3.medium
- t3.medium
Neither the A1 instance nor the C5 one is burstable. Although T2 instances are burstable, they do not meet the network performance requirements dictated by the Tech Lead. T3 instances are not only burstable, but they also provide a network performance of up to 5 Gbps.
You are developing a disaster recovery model and need to ensure that capacity is available upon request. What is a way to ensure capacity will exist when it is required?
- Do nothing; on-demand pricing will guarantee capacity
- Reserved Instance can allow for capacity guarantees
- There is no way to guarantee capacity
- Enable DR capacity options when launching EC2 instances
- Reserved Instance can allow for capacity guarantees
Reserved Instances have an option to have capacity guarantees defined. This will ensure the capacity exists when it is required; keeping in mind, an RI is paid for whether it is used or not. On-Demand does not provide any guarantees for capacity. And there is no DR capacity options for EC2.