Fundamentals Flashcards

aws Fundamentals (38 cards)

1
Q
  • a network drive you can attach to your instances while they run
  • data persists even after termination
  • Only mounted to one instances at a time
  • Bound to a specific AZ
A

EBS Volume

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

an EBS volume is bound to one AZ but to be able to move it to another AZ you can ______.

A

Snapshot it (backup)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • a network drive (a virtual USB stick) can be detached from an EC2 instance and attached to another one quickly
  • Or left unattached so it is ready to be used on demand to an AZ
A

EBS Volume

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

True or False one EBS volume cannot attached to multiple EC2 instances but one EC2 instance can have multiple EBS volumes?

A

True

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

Scenario: After an EC2 instance is terminated that has an EBS volume attached, how you can you preserve the root data stored on EBS?

A

By default the root EBS volume is deleted and by default the rest of EBS volume is not deleted, so you need to edit EBS in AWS console to change the default settings.

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

How do you transfer one EBS volume to another one in a different AZ?

A

take an EBS snapshot of the first EBS Volume and restore it onto your second EBS Volume in the other AZ.

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

Scenarios:
1. I want to cost effectively archive a snapshot but need it to be restored within 24-72 hours, what can I do?
2. I want to be able to store my snapshots from 1 day or maybe up to a year and retain them in case I accidentally delete them, what can I do?
3. I need to restore a delete snapshot and it needs to be ready to go and latency free asap even though it will cost me, what can i do?

A
  1. Use EBS Snapshot Archive
  2. Use Recycle Bin for EBS Snapshot
  3. Use Fast Snapshot Restore (FSR)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When launching an EC2 instance, you also need to select this customization _________ which can be built for specific regions and copied across multiple regions that you can add your own software and configurations to.

A

Amazon Machine Image (AMI)

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

Scenario: if I want to launch an EC2 instance with a high performing hardware disk but has ephemeral storage, what can i use?

A

EC2 Instance Store

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

3 ways you can launch EC2 instances from?

A
  1. Public AMI
  2. Your own custom AMI
  3. AWS Marketplace AMI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When you see very high performing attached hardware volumes to instances think of? in the read and write IOPS

A

Local EC2 Instance Store

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

Name the 6 EBS Volume Types

A
  1. GP2 SSD - General Purpose
  2. GP3 SSD
  3. IO 1 Block Express SSD
  4. IO 2 Block Express SSD
  5. ST 1 HDD
  6. SC 1 HDD

(GGIISS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Which EBS volume types can be used as boot volumes?
  2. Which 2 EBS volume types are cost effective low latency balances price and performance for a variety of workloads?
  3. Which 2 EBS volume types is highest performing for mission control low latency high output workloads?
  4. Which EBS volume is designed to be frequently accessed for intensive workloads?
  5. Which EBS volume is lowest cost hard disk drive designed for less frequently accessed workloads?
  6. Which EBS Volume type links size of the volume with IOPS?
  7. Which EBS Volume type you can independently set the IOPS and throughput?
A
  1. GP2/GP3 and IO 1/IO 2 Block Express
  2. GP2/GP3
  3. IO 1/IO 2 Block Express
  4. ST 1 HDD
  5. SC 1 HDD
  6. GP 2
  7. GP 3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. What if I have a database workload that is sensitive to storage perf and consistency?
A
  1. Use a Provisioned IOPS SSD (IO 1 IO2)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

EBS volume cannot attach to multiple EC2 instances without which feature?

A

EBS Multi Attach with IO1 or IO2 volume type

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

What is the max amount of EC2 instances an EBS multi attach volume can be attached to at once?

16
Q

Name the 4 s3 encryption methods

A
  1. Server side encryption (enabled by default
  2. Sever side encryption with KMS
  3. Server side with Customer provided keys
  4. Client side encryption
17
Q

Which s3 encryption is enabled by default on new buckets and new objects?

18
Q

Which S3 encryption allows logins tracked through cloudtrail and depending on your application this service could count towards your ___ quota per second?

19
Q

Which S3 encryption must use HTTPS and must use this to encrypt your files?

20
Q

Which s3 encryption is fully managed by ___, and they fully manage the keys and encryption cycle?

A

S3 Client side encryption

21
Q

what is another way to force encrpytion on your S3 buckets before the default Encryption starts with SSE?

A

Use a bucket policy to force encryption

22
Q

Web browser based mechanism to allow requests to other origins while visiting the main origin, request won’t be fulfilled unless other origin allows for the request using

A

CORS and CORS headers (Access-Control-Allow-Origin)

23
Q

fully managed service used to decouple services, unlimited throughput and messages in queue. Retains for 4 day and max of 14 days with low latency with a limit of 256KB per message sent. that can have duplicate messages out of order.

A

Amazon SQS - standard queue (think SQS when you see “decoupling” applications”)

24
What three amazon services could you add to your SQS/SNS to make it more secure?
1. Encryption (using HTTPS API, at-rest KMS keys, client side) 2. Access Controls (IAM policies) 3. SQS/SNS Access Policies
25
User can use a software delivery kit (SendMessage API) to produce messages to this service. Messages are persistent until consumer deletes it
SQS - producing messages
26
When a consumer requests messages from the queue, it can optionally "wait" for messages to arrive if there are none in the queue. Decreases the number of API calls made to SQS while increasing efficiency and reducing latency of your app
SQS - Long polling (preferable to short polling)
27
after a message is polled by a consumer, it becomes invisible to other consumers by default is 30 seconds. and message becomes visible after the 30 seconds. If your consumer needs more time you can then use ___ this API to get more time to process and vice versa if you don't need that much time.
SQS - Message Visibility Timeout ChangeMessageVisibility API
28
This service has limited throughput 300 messages per second without batching and 3000 with and the messages are processed in order by the consumer
FIFO Queues - first in first out
29
If you are handling your messages with ASG but the transactions become to big for your database to handle, what can you do to resolve errors of messages written or lost going into the DBs?
Use SQS as a buffer to dequeue messages before they are written into a database.
30
What service can you use to send one messages to many receivers?
Amazon SNS
31
When setting up your Amazon SNS, the specifics include: 1. the _____ ____ only sends messages to one SNS topic 2. Add as many ____ you want to SNS topic notifications 3. Each sub will receives all the messages up to _____ subscriptions per topic and _______ topics limit
1. "event producer" 2. subscriptions 3. 12,500,000 and 100,000
32
What sqs/sns pattern can you can push only in SNS and receive in all SQS queues that are subscribers and able to deliver messages across different regions? Or if you want to send the same S3 event to many SQS queues?
SNS + SQS Fan Out pattern
33
Collects and stores data in real-time for consumers consuming the data in real time and leveraging it. Data retained for 1 year that cannot be deleted until expired up to 1 MB ordered
Amazon Kinesis Data Streams
34
What are the two Capacity Modes Kinesis data streams provides? 1. _____ choses num of shards that gets 1MBs in and 2MBs out, scales manually to in/descrease num of shards and pay per shard provisioned/per hr 2. _____ No need for provisioning capacity, default capacity is 4MB in, scales auto based on 30 day peaks
1. Provisioned Mode 2. On-demand Mode
35
fully managed serverless service that auto scales Near Real Time data
Amazon Data Firehose
36
Managed message broker service for RabbitMQ and Active MQ, this doesnt scale as much as SQS and SNS that runs on services in multi AZ with failover and has both queue AND topic features
Amazon MQ
37