Compute Flashcards
What are the types of AMIs?
From AWS
Marketplace
Own AMIs
Shared AMIs
What is affected by the instance type?
Virtualization types (PV / HVM) CPU (Number and clock speed) Networking Storage Instance Limits
What are the instance classes?
General Purpose (T2, M4) Compute Optimized (C4) Memory-Optimized (X1, R4) Storage-Optimized (I3, D2) Accelerated Computing (P2, G2, F1)
How do the two virtualization types differ?
HVM (Hardware Virtual Machine) allowes advanced networking, because it runs as if it was on dedicated hardware.
Windows instances can only be on HVM
If an instance has Instance Store what states can it have?
It only can be running or terminated (not stopped)
Why use dedicated hosts?
It the use case depends on licenses that require not shared hardware
What is the advantage of a dedicated instance?
There is no other user on that uses the hardware
Can every instance type support Instance Storage?
No
How can MetaData be accessed?
It can be accessed on 169.254.169.254
What can be tracked in CloudWatch?
CPU (usage and credits), Disk, Network
What two tools are present for estimating costs?
AWS Simple Monthly Calculator
AWS Total Cost of Ownership Calculator
What are the advantages of Placement Groups?
Low network latency or/and high network throughput
How to configure EC2 for ECS?
Install the ECS Agent on the instance (ECS optimized AMIs already have the agent installed)
The instance needs the appropriate IAM role
What is the process to deploy a cluster?
- Define a task
- Define the service
- Create the cluster
- Create the stack
Structure and Limit of Elastic Beanstalk deployments
To deploy: Upload source bundle
Limits: Zip/WAR file smaller than 512 MB
What roles are created in an Elastic Beanstalk deployment?
Service Role: To access other cloud services
Instance Profile: Logs to S3 and other specific tasks
What needs to be defined for a lambda function?
Memory
Max. execution time
IAM role
Handler name
How are Lambda functions invoked?
Push event model: directly call the function
Pull event model: poll the event source and invoke function if needed
Direct invocation model: synchronously called and answers immediately.
Which of these situations typically require data migration for the root volume of an instance store-backed instance?
Scaling up means to increase the size of the instances, and with instance store-backed instances a migration is necessary
What does HVM stand for?
HVM does stand for Hardware Virtual Machine.
Which of the following is not an EC2 instance family?
Dense Storage is not an EC2 family, it is an EC2 instance type of the Storage Optimized family.
Which of these processes need to be suspended when updating an Auto Scaling Group to avoid issues?
Launch
Terminate
What is the advantage of HVM against PV?
Runs as if on bear metal server and therefore can use all hardware features
What is bootstrapping an instance - and what would be an Alternative?
Creating resources after launch using the user-date, CloudFormations cfn-update or an Configuration Management Software like Chef.
Alternatively all resources can be included in the AMI
Which services support Container Based deployments?
OpsWorks Elastic Beanstalk ECS CodeDeploy or using a 3rd party service