1
Q

What are the four ways to pay for EC2?

A

On-Demand Reserved Spot Dedicated hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Conditions on payment for termination of a Spot EC2 instance

A

If the customer terminate the instance, he pays for the hour. If AWS terminate the instance, Amazon pays for the hour.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

EBS Volume Types

A

SSD-GP2: General Purpose SSD (up to 10.000 IOPS) SSD-IO1: Provisioned IOPS SSD (up to 20.000 IOPS) HDD-ST1: Throughput Optimized HDD (magnetic. Frequently accessed workloads. No boot. Ex: big data, DWH, log processing) HDD-SC1: Cold HDD (magnetic. Less frequently accessed data. No boot. Lowest cost storage. Ex: File Server) HDD-Magnetic (standard): lowest bootable cost.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

On how many EC2 instances can a EBS volume be mounted?

A
  1. An EBS volume can only be mounted on one EC2 instance. If you want to use shared disks, use EFS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the status of Termination Protection by default?

A

Termination Protection is turned-off by default. It must be turned on manually.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the default action on the EBS root volume when the instance is terminated?

A

On an EBS-backed instance, the default action is for the root EBS volume to be deleted when the instance is terminated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can root volumes be encrypted?

A

EBS boot (root) volumes can be encrypted (but not by default). This feature is based on another feature that allows you to copy an EBS snapshot while also applying encryption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Volumes exist on … and Snapshots exist on ….

A

EBS and S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When you take a Snapshot of a Volume, where does the Snapshot is stored?

A

On S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Are Snapshots incremental?

A

Yes. Only the blocks that have changed since your last Snapshot are moved to S3. The first Snapshot may take some time to create.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are Snapshots?

A

Snapshots are point in time copies of Volumes. Snapshots are incremental.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If you take a Snapshot of a encrypted Volume, will the Snapshot be encrypted?

A

Yes. Snapshots of encrypted Volumes are encrypted automatically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If you restore a Volume from a encrypted Snapshot, will the Volume be encrypted?

A

Yes. Volumes restored from encrypted Snapshots are encrypted automatically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can snapshots can be shared?

A

Yes, but only if they are unencrypted. The Snapshots can be shared with other AWS account or made public.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What happens with the EC2 instance if you take a Snapshot of its EBS boot (root) Volume?

A

You can take a snapshot of an attached volume that is in use (although you should probably better stop it before). However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. AWS will not reboot or stop the instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Instance Store volumes are also known as…

A

Ephemeral Storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What happen if you stop an Instance Store instance?

A

The data in the Instance Store volumes will be lost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the difference between Instance Store volumes backed instances and EBS backed instances at Shutdown (Stop) time?

A

Instance Store backed instances cannot be stopped (only rebooted or terminated). EBS backed instances can be stopped without losing data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the difference between Instance Store volumes backed instances and EBS backed instances at Reboot time?

A

Nothing. Both instance types can be rebooted without problems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What happen if you reboot an Instance Store instance?

A

Nothing. An Instance Store backed instance can be rebooted without problems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What happen to Instance Store and EBS boot (root) volumes when the instance is terminated?

A

By default, both root volumes will be deleted on termination. However with EBS volumes, you can tell AWS to keep the root device volume.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How do you tell AWS to keep an EBS root volume after terminating the instance?

A

Using the console, you can configure the DeleteOnTermination attribute when you launch an instance. To change this attribute for a running instance, you must use the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

How can I take a Snapshot of a RAID array?

A

Due to interdependencies of the array, there can be problems doing a hot Snapshot because of data held in cache by applications and the SO. To solve this, and application consistent snapshot must be taken. That is, stop the applications from writing to disk and flush all caches to disk. This can be done freezing the filesystem, unmounting the array or, more easily, shutting down the associated EC2 instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What’s is the scope of an AMI? (Global, regional…)

A

AMI’s are regional. An AMI can only be launched from the region in which is stored. However, AMI’s can be copied to other regions using the console, CLI or AWS EC2 API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What are the time periods for standard and detailed monitoring?

A

Standard monitoring: 5 minutes Detailed monitoring: 1 minute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What is CloudWatch for?

A

CloudWatch is for performance monitoring. Don’t confuse it with CloudTrail (which is for auditing)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What can be done with CloudWatch?

A

Dashboards Alarms Events Logs Metrics (view)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is a more secure alternative to storing access keys on EC2 instances?

A

Roles are more secure and easier to manage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

How many IAM roles can be associated with an EC2 instance?

A

You can only associate one IAM role with an EC2 instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

When can a role be assigned to an EC2 instance?

A

The role can be assigned at creation time or assigned/replaced/unassigned in runtime (Actions -> Instance Settings -> Attach/Replace IAM role, Select role or “No Role”). Previously, roles could be assigned only when the EC2 instance was launched (that is when it was being provisioned).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

What’s is the scope of Roles? (Global, regional…)

A

Roles are global.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

What is the URL to get instance metadata?

A

http://169.254.169.254/latest/meta-data/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

What is the URL to get user data?

A

http://169.254.169.254/latest/user-data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What protocol does EFS support?

A

NFSv4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

What are the storage limits of an EFS volume?

A

Can scale up to petabytes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

How many concurrent connections does an EFS volume supports?

A

Thousands of concurrent connections.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

How is EFS data stored? (one AZ, multiple AZ, …)

A

Data is stored across multiple AZ’s within a region

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

What is the consistency model of EFS?

A

Read after Write consistency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What is Lambda?

A

AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the underlying compute resources for you.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

How can be Lambda used?

A

As an event-driven compute service As a compute service to run your code in response to HTTP requests using Amazon API Gateway or API calls using AWS SDKs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Can I delete a snapshot of an EBS volume that is used as the root device of a registered AMI?

A

No. You can’t delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first deregister the AMI before you can delete the snapshot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Can a (Clustered) Placement Group be deployed across multiple AZs?

A

No.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

What is the command line command to create a snapshot?

A

ec2-create-snapshot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

Can you attach an EBS volume to more than one EC2 instance at the same time?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

A (Clustered) placement group is ideal for…

A

EC2 instances that require high network throughput and low latency across a single AZ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

Using the console, can I add a role to an EC2 instance after the instance has been launched?

A

Yes. Roles can be assigned/replaced/unassigned using the console after the instance has been launched (Actions -> Instance Settings -> Attach/Replace IAM role, Select role or “No Role”). Previously, roles could be assigned only when the EC2 instance was launched (that is when it was being provisioned).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Can I change permissions to a role, even if that role is already assigned to an existing EC2 instance?

A

Yes. These changes will take effect immediately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

What does EBS stands for?

A

Elastic Block Store

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

What is Amazon EBS?

A

Amazon Elastic Block Store (Amazon EBS) provides persistent block storage volumes for use with Amazon EC2 instances in the AWS Cloud. Each Amazon EBS volume is automatically replicated within its Availability Zone to protect you from component failure, offering high availability and durability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

What are the default traffic allowances for a Security Group?

A

All Inbound Traffic is Blocked by default (when you create a Security Group, you need to explicitly create a rule for each allowed inbound protocol). All Outbound Traffic is Allowed by default (when you create a Security Group, a “All traffic” to “Anywhere” rule is automatically created).

51
Q

Can the volume type be changed when recovering a Volume from a Snapshot?

A

Yes. The Volume type can be changed from the default Volume type of the Volume from which the Snapshot was originally created.

52
Q

What type of RAID is discouraged by Amazon?

A

RAID 5

53
Q

When to use RAID on AWS?

A

When you are not getting the disk I/O that you require (typically RAID 0 or RAID 10).

54
Q

What are Security Groups?

A

A security group acts as a virtual firewall that controls the traffic for one or more instances. When you launch an instance, you associate one or more security groups with the instance.

55
Q

What is an AMI?

A

An Amazon Machine Image (AMI) provides the information required to launch an instance, which is a virtual server in the cloud. You specify an AMI when you launch an instance, and you can launch as many instances from the AMI as you need. You can also launch instances from as many different AMIs as you need.

56
Q

What does an AMI include?

A

A template for the root volume for the instance (for example, an operating system, an application server, and applications) Launch permissions that control which AWS accounts can use the AMI to launch instances A block device mapping that specifies the volumes to attach to the instance when it’s launched

57
Q

With whom can an AMI be shared?

A

Publicly or with particular AWS accounts

58
Q

What are the types or AMIs according its storage types?

A

EBS and Instance Store

59
Q

You can select your AMI based on…

A

Region OS Architecture (32-bit or 64-bit) Launch permissions Storage for the root device (Instance Store or EBS)

60
Q

Stopping vs Rebooting an EC2 instance

A

When you stop an EBS boot instance you are giving up the physical hardware that the server was running on and EC2 is free to start somebody else’s instance there. When you reboot, it’s a simple reboot at the OS level and the instance stays running on the same hardware, with the same private and public IP addresses, keeps the same Elastic IP address (if associated), and keeps the same ephemeral storage without getting wiped.

61
Q

What is configured at Target Group level?

A

Mainly, “Health check settings”: - Protocol, Path (ex: /text.html) - Healthy threshold, Unhealthy threshold, Timeout, Interval and Success codes.

62
Q

What component does and ELB depends on?

A

An ELB depends on a Target Group. The Target Group can be created in the same ELB creation steps (on a existing Target Group can be chosen)

63
Q

What is configured at ELB level?

A

Name, Scheme (internet-facing, internal), Listeners, AZs Security Groups Target Group Targets

64
Q

On what level are EC2 metrics and what kind of metrics can I monitor using CloudWatch?

A

EC2 metrics are on a hypervisor level. CPU, Disk, Network and Status (Memory is missing).

65
Q

What is the command for the AWS cli?

A

aws

66
Q

Where are AWS CLI credentials stored?

A

$HOME/.aws/credentials

67
Q

What is the command to configure the credentials for AWS CLI?

A

aws configure

68
Q

What is the first step to create an Autoscaling Group?

A

Create a Launch Configuration

69
Q

What is a Launch Configuration?

A

Is a template that your Auto Scaling group will use to launch instances; its creation process is very similar to an EC2 instance creation process.

70
Q

What is an Autoscaling Group?

A

You can use Auto Scaling to manage Amazon EC2 capacity automatically, maintain the right number of instances for your application, operate a healthy group of instances, and scale it according to your needs.

71
Q

What is configured at Autoscaling Group level?

A

Name, size (of EC2 instances), VPC, Subnets, Load Balancing (specify is traffic is received from an ELB and Target Group selection). Scaling Policies: - Keep this group at its initial size - Use scaling policies to adjust the capacity of this group (Increase Group Size, Decrease Group Size)

72
Q

What is a (Clustered) Placement Group?

A

A (Clustered) placement group is a logical grouping of instances within a single Availability Zone. Using placement groups enables applications to participate in a low-latency, 10 Gbps network. Placement groups are recommended for applications that benefit from low network latency, high network throughput, or both.

73
Q

Placement Groups characteristics

A
  • A Clustered Placement Group can’t span multiple AZs. - A Spread Placement Group can. - The name must be unique within a AWS account - Only certain types of instances can be launched in a Placement Group (compute optimised, GPU, memory optimised, etc…) - AWS recommends homogenous instances within Placement Groups - You can’t merge Placement Groups - You can’t move and existing instance into a Placement Group. You can create an AMI from an existing instance, and then launch a new instance from the AMI into a Placement Group.
74
Q

What are the billing increments in EC2?

A

Per hour for Windows instances and per second for Linux instances (for On-Demand, Reserved and Spot, with a minimum of 60 seconds)

75
Q

How does EC2 per second billing works?

A

Amazon EC2 usage of Linux based instances that are launched in On-Demand, Reserved and Spot form will be billed on one second increments, with a minimum of 60 seconds

76
Q

EC2 instance types

A

F for FPGA I for IOPS G - Graphics H - High Disk Throughput T cheap general purpose (think T2 Micro) D for Density R for RAM M - main choice for general purpose apps C for Compute P - Graphics (think Pics) X - Extreme Memory

77
Q

What are the year terms for Reserved?

A

1 Year or 3 Year Terms.

78
Q

Can a specific IP address be denied using Security Groups?

A

No. Security Groups only support rules to Allow (everything is Denied by default). To deny specific IPs, Network ACLs have to be used.

79
Q

Do EC2 instances need to be restarted to apply changes to Security Groups?

A

No, changes to Security Groups take effect immediately.

80
Q

Is it possible to use the same Security Group in several EC2 instances?

A

Yes. You can have any number of EC2 instances within a Security Group.

81
Q

Can an EC2 instance use multiple Security Groups?

A

Yes. You can have multiple Security Groups attached to EC2 instances.

82
Q

Can you specify Deny rules using Security Groups?

A

No, Security Groups deny everything by default. You can only specify Allow rules.

83
Q

What does it mean that Security Groups are STATEFUL?

A

If you create an inbound rule allowing traffic in, that traffic is automatically allowed out again.

84
Q

What are the default traffic allowances for the default VPC Security Group?

A

The default VPC Security Group has an inbound all traffic rule from itself. So, all instances in this security group can communicate with them. It has also the usual all outbound traffic enabled.

85
Q

Can EBS volumes (type, size…) be modified on the fly?

A

Yes. We can modify volumes (even the root one) on the fly (type, size…). There won’t be downtimes, but a performance hit.

86
Q

Can EBS and EC2 instances be in different AZs?

A

No. Volumes will ALWAYS be in the same availability zone as the EC2 instance.

87
Q

How can an EBS volume be “moved” from an AZ to another?

A

Create a snapshot from the volume, and then: - Copy the snapshot to another region (Actions -> Copy), or - Create a new volume from the snapshot in another AZ (Actions -> Create Volume. The volume type can also be changed in this process), or - Create an Image from the snapshot which then can be copied (Actions -> Create Image. Image -> Actions -> Copy AMI).

88
Q

How can an EC2 instance be migrated to another AZs or Region?

A

Create a snapshot from the EC2 instance volume and create an image from the snapshot, or create an image directly from the EC2 instance, and then move the image to another AZs or regions (to then launch an EC2 instance from the image).

89
Q

From where can I create AMIs?

A

From: - EBS-backed EC2 instances - EBS volumes’ snapshots

90
Q

What happens if the hypervisor fails in Instance Store volumes backed instances vs EBS backed instances?

A

With EBS backed instances, if the underlying hypervisor fails, the instance can be stopped and, when started again, it will start in a different hypervisor. This can’t be done with an Instance Store. If the underlying hypervisor fails, the instance is lost.

91
Q

Can I detach an Instance Store volume?

A

No. Instance Store volumes don’t even appear in the Volumes list, so you can’t detach them.

92
Q

What are the types of Load Balancers?

A
  • Application Load Balancers - Network Load Balancers - Classic Load Balancers (“Elastic Load Balancers”, ELBs)
93
Q

What error does the final user get if the application behind the Load Balancer does not respond within the idle timeout period?

A

HTTP 504 Gateway Timeout

94
Q

How can an application behind a Load Balancer query the original end user IPv4 address?

A

Through the X-Forwarded-For header

95
Q

What error does the final user get if the application behind the (Classic/Elastic) Load Balancer fails the health check?

A

HTTP 503 Service Unavailable

96
Q

How are instances monitored by ELB reported?

A

InService or OutOfService

97
Q

Are you given the IP address of an ELB?

A

No. Only a DNS name.

98
Q

How can I run a configuration script during launch?

A

You can specify User Data to run a configuration script during launch. When creating: Advanced Details -> User Data (during instance creation). In runtime: Actions -> Instance Settings -> View/Change User Data.

99
Q

Can a (Spread) Placement Group be deployed across multiple AZs?

A

Yes

100
Q

What types of Placement Groups exist?

A
  • Clustered Placement Group - Spread Placement Group
101
Q

Can I move a reserved instance from one region to another?

A

No

102
Q

What is the underlying Hypervisor for EC2?

A

Xen

103
Q

If an Amazon EBS volume is an additional partition (not the root volume), can I detach it without stopping the instance?

A

Yes, although it may take some time.

104
Q

Can the public IP address of an EC2 instance be managed in the instance?

A

No. The public IP address is not managed in the instance. It is instead ana lias applied as a NAT of the private IP address. It can not be managed via instance meta-data.

105
Q

Which are the possible values for the “tenancy” attribute of an instance?

A
  • default: your instance runs on shared hardware. - dedicated: your instance runs on single-tenant hardware. - host: your instance runs on a Dedicated Host, which is an isolated server with configurations that you can control.
106
Q

After an instance is launched, can the “tenancy” be changed from “default” to “dedicated” or “host”?

A

No

107
Q

After an instance is launched, can the “tenancy” be changed from “dedicated” or “host” to “default”?

A

No

108
Q

After an instance is launched, can the “tenancy” be changed from “dedicated” to “host”, or from “host” to “dedicated”?

A

Yes. It is possible to transition between those modes by stopping the instance, setting the other mode and starting it again.

109
Q

Is it possible to switch the tenancy of existing VPCs from dedicated to default?

A

(As of Oct 2017) Amazon EC2 allows customers to switch the tenancy of existing VPCs from dedicated to default instantly, by using the AWS CLI/SDK. Modifying the instance tenancy of the VPC does not affect the tenancy of any existing instances in the VPC. The next time you launch an instance in the VPC, it has a tenancy of default, unless you specify otherwise during launch. You cannot change the instance tenancy attribute of a VPC to dedicated.

110
Q

Which option is a most cost-effective mean to develop a high-availability application? 1. ELB with a multi-AZ deployment of an auto-Scaling group of EC2 On-demand instances (primary) running in tandem with an auto-scaling group of EC2 Spot instances (secondary), or 2. ELB with a multi-AZ deployment of an auto-Scaling group of EC2 Spot instances (primary) running in tandem with an auto-scaling group of EC2 On-demand instances (secondary)

A
  1. With proper scripting and scaling policies, the On-demand instances behind the Spot instances will deliver the most cost-effective solution because the On-demand will only spin up if the Spot instances are not available.
111
Q

Is User Data part of the AMI?

A

Yes

112
Q

When copying an AMI, which type of information must be manually copied to the new instance?

A
  • Launch permissions - User-defined tags - S3 bucket permissions
113
Q

Can ALBs direct traffic based on the hostname? or only on the path?

A

ALBs allow you to set up multiple targets and route to them based on the path and/or hostname (previously, ALBs couldn’t direct traffic based on the hostname, but now they can)

114
Q

Which of the following provide the lowest cost EBS options? (Choose 2)

A

Cold (sc1) Throughput Optimized (st1)

115
Q

Which of the following statements are true about containers on AWS? (Choose 5)

A

ECS allows you to control the scheduling and placement of your containers and tasks. ECR can be used to store Docker images. You can install and manage Kubernetes on AWS, yourself. You can have AWS manage Kubernetes for you. To be able to use ECS, you must use the ECS Agent.

116
Q

Is it possible to perform actions on an existing Amazon EBS Snapshot?

A

Yes, through the AWS APIs, CLI, and AWS Console.

117
Q

What is the underlying Hypervisor for EC2 ? (Choose 2)

A

Nitro Xen

118
Q

The use of a placement group is ideal

A

Your fleet of EC2 instances requires high network throughput and low latency within a single availability zone.

119
Q

What is the default for inbound traffic for security groups?

A

blocked

120
Q

What is the default for all inbound traffic for security groups?

A

allowed

121
Q

If you open an inbound port for a security group, is it open for outbound?

A

yes

122
Q

Can a volume for an EC2 instance be in another AZ?

A

No

123
Q

What is cloudwatch default monitoring interval?

A

5 min