Monday Flashcards

1
Q

Compare ELB and ALB

A

ALB:

  • Layer7 - Application Layer
  • preferred for HTTP/HTTPS

ELB:
- Layer 4 (Network)

Both: you don’t see public IP - but therefore the DNS name. That’s because public IP might change

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

Name 3 advantages of Redshift!

A

MPP (massive parallel processing)
doesn’t need indexes
fully managed, petabyte-scale data warehouse service

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

S3 consistency for PUTs of new object

A

read after write - atomic updates (either complete old or complete new version - nothing mixed)

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

Name the 2 EC2 status checks!

A

System status check - checking underlying HyperVisor and network
Instance status check

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

What is Multi-AZ good for for RDS?

A

For disaster recovery (not performance!). Every change is mirrored to instance in other AZ synchronously!

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

Should you attach IAM roles to EC2’s or single users?

A

EC2’s - no aws configure required. AWS CLI is preinstalled on Amazon Linux AMI

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

Name 5 routing policies!

A
  • Failover (active/Passive)
  • Simple
  • Weighted
  • Latency
  • Geolocation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Properties of Snapshots?

A
  • exist on S3
  • are incremental
  • creation while instance is running (except root volumes)
  • can be shared if unencrypted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

S3 cross region application requirement?

A

bith buckets need versioning enabled

delete markers are also replicated

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

How do container instances connect to a cluster?

A

ECS Container Agent

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

What is a shard (Kinesis)?

A

A shard is a uniquely identified sequence of data records in a stream. A stream is composed of one or more shards, each of which provides a fixed unit of capacity.

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

Properties of EFS!

A
  • can be mounted to multiple instances
  • pay as you use
  • block based storage
  • multi-az
  • scale up to petabytes
  • capacity is elastic
  • user-level and directory-level permissions
  • read after write consistency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is NotAction the same as Deny?

A

adds exception to list of actions

is not a Deny. User could still hive separate policy that grants him this action

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

What does a NAT Gateway do?

A

going from private subnets

to internet - that need a public source IP - NAT does offers public IP and routes traffic to this port

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

Which states does a Loadbalancer know?

A

InService and OutOfService

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

What is a PLacement Group?

A

logical grouping of instances within a single AZ - 10GB/s network. low latency. only certain instance typed

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

Benefits API GW!

A
  • API caching
  • throttle requests
  • log to cloudwatch
  • scales effortlessly
  • CORS
  • Staging…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Will EBS root be deleted on termination by default?

A

yes

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

DynamoDB consistency

A
  • eventual consistent reads vs strongly consistent reads (default)
  • consistency within a second - best read performance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is instance storage /ephemeral?

A

no persistence

directly attached - not separated from EC2 like EBS

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

What do ECS Task Definitions include?

A
  • which docker image
  • how much CPU and memory in each container?
  • networking mode
  • ports mapping
  • ENV
  • IAM roles
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Which workloads is NOSQL perfect for?

A

many reads, great scalability and performance, not many joins

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

What do ECS Services do?

A

run and maintain (like AutoScalingGroup) number of instances of task definition in ECS cluster

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

Can a VPC span multiple AZ’s?

A

yes

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

Default ACL vs. default custom ACL

A

by default custem ACL’s: everything denied inbound and outbound
but default ACL for VPC allows all outbound and inbound traffic

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

What is Service Catalog?

A

Build out which services are authorized

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

How to boost performance of RDS?

A

read replicas

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

What is Lightsail?

A

Out of the box cloud

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

Actors in SWF?

A

Starter
- initiates WF
Workers
- interact with SWF to get tasks, process received tasks and return results
Decider
- controls coordination of tasks (ordering, concurrency, scheduling)

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

EMR vs Kinesis

A

EMR:
- offline batch jobs
Kinesis:
- real time processing

Offline batch jobs can be horizontally scaled by using a distributed data processing engine like Apache Hadoop. On AWS, you can use the Amazon Elastic MapReduce (Amazon EMR) service to run Hadoop workloads on top of a fleet of EC2 instances without the operational complexity. For real-time processing of streaming data, Amazon Kinesis partitions data in multiple shards that can then be consumed by multiple Amazon EC2 or AWS Lambda resources to achieve scalability.

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

S3 encryption

A
Client side before upload
Server side:
S3 Managed Keys: SSE-S3
- each object individual key
- key itself is encrypted with master key that is rotated
- AES256

AWS Key Management Service: SSE-KMS

  • separate permissions for use of envelope key (key that protects datas encryption key)
  • audit trail
  • option to create managed encryption key yourself

Customer Provided Keys: SSE-C

  • you manage the encryption keys
  • AWS manages the encryption/decryption
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Redundany typed

A

Standby
functionality is recovered on a secondary resource via failover - often used for stateful components like dbs

Active
functionality is recovered on a secondary resource via failover. one fails: rest absorbs larger share of workload

33
Q

Which caching engines does ElasticCache support?

A
Memcached:
- memory object caching system
- protocol compliant
Redis:
- in-memory key-value store
- supports sorted sets and lists
- Elasticache supports Master/Slave replication and Multi-AZ
34
Q

Is termination protection turned off or on by default?

A

turned off

35
Q

S3 Storage Tiers

A

S3 normal
IA (infrequent access)
RR (reduced redundancy)
Glacier

36
Q

Properties of AMI?

A
  • created based on snapshot or volumes

- not encrypted at rest

37
Q

What is Storage Gateway?

A

Connect S3 to onPrem

A VM you install onPrem

38
Q

What happens when I enter URL in browser?

A

Client contacts ISP’s DNS Resolver
- this asks Root name server for Top Level Domain
- returns reference to other NS for .com
Resolver asks NS .com
- returns ref to other NS example.com: Route53
Route 53 returns IP by checking HostedZone (container for individual records)

39
Q

Name 4 default checks for Cloudwatch Metrics!

A
  • CPU (CreditBalance, CreditUsage, Utilization)
  • Disc (ReadBytes, ReadOps, WriteBytes, WriteOps)
  • Network (In, Out, PacketsIn, PacketsOut)
  • Status (Failed, Failed_Instance, Failed_System)
40
Q

What is ELasticache?

A

webservice easy deploy, operate and scale in-memory cache in the cloud

41
Q

WHat does a Policy statement consist of?

A
PARC
- Effect (Allow|Deny)
- Action 
- Resource
- Condition
Condition
- multiple conditions are ANDed
- multiple values in one(!) condition are ORed
42
Q

S3 Lifecycle management

A

Transitions (Glacier, IA)
Expiration - permanently delete
can set tags/filters to apply rule on

43
Q

What is EMR?

A

big data processing

44
Q

Elastic Transcoder

A

Media transcoder with presets.

Pricing based on minutes transcoding and resolution

45
Q

How is AWS Container Registry called?

A

ECR - can be combined with IAM and is usable with Docker CLI

46
Q

Is replication of RDS read replicas sync or async?

47
Q

SQS standard vs fifo!

A

Standard:

  • almost unlimited number of tx/s
  • guarantee that a message is delivered at least once
  • message might be delivered out of order

Fifo:

  • guarantee the order (FIFO)
  • message delivered once and remains available until a consumer processes and deletes it
  • no duplicates
  • supports orderes message groups
  • limited to 300 tx/s
48
Q

What must a Subnet be associated with?

A

Route Table

49
Q

Private IP address ranges?

A

internal address ranges:

  1. 0.0.0 - 10.255.255.255 (10/8 prefix)
  2. 16.0.0 - 172.31.255.255 (172.16/12 prefix)
  3. 168.0.0 - 192.168.255.255 (192.168/16 prefix)
50
Q

What is Athena?

A

SQL queries on S3

51
Q

Why should main route table not be connected to interet?

A

new subnet is associated by default with main route table

52
Q

How to encrypt an RDS instance?

A

Create encrypted snapshot and start new instance from it

53
Q

Kinesis vs SQS

A

Amazon Kinesis is differentiated from Amazon’s Simple Queue Service (SQS) in that Kinesis is used to enable real-time processing of streaming big data. SQS, on the other hand, is used as a message queue to store messages transmitted between distributed application components.

Kinesis provides routing of records using a given key, ordering of records, the ability for multiple clients to read messages from the same stream concurrently, replay of messages up to as long as seven days in the past, and the ability for a client to consume records at a later time. Kinesis Streams will not dynamically scale in response to increased demand, so you must provision enough streams ahead of time to meet the anticipated demand of both your data producers and data consumers.

SQS provides for messaging semantics so that your application can track the successful completion of work items in a queue, and you can schedule a delay in messages of up to 15 minutes. Unlike Kinesis Streams, SQS will scale automatically to meet application demand. SQS has lower limits to the number of messages that can be read or written at one time compared to Kinesis, so applications using Kinesis can work with messages in larger batches than when using SQS.

54
Q

Can read replicas of RDS be in another region?

55
Q

TCP handshake?

A
  • > SYN
  • > SYN, ACK
  • > ACK
56
Q

Can a subnet span multiple AZ’s?

57
Q

How is a S3 object identified uniquely?

A

bucket, key, version ID

58
Q

Name one OLAP and one OLTP AWS resource!

A

OLTP: RDS
OLAP: Redshift

59
Q

CF Edge Location, Origin, Distribution

A

Edge Location:
location where content will be cached - separate to AWS Region/AZ

Origin:
Origin of all files that CDN will distribute

Distribution:
name given the CDN which consists of a collection of Edge locations
- Web Distribution vs RTMP (used for media streaming)

60
Q

S3 difference Bucket Policies and ACL!

A

Bucket Policies: entire bucket

ACL: individual objects

61
Q

VPC peering config

A

peering is always in a star configuration: ie 1 central VPC peers with 4 others. NO TRANSITIVE PEERING!!

62
Q

Sort Policies, Groups, Roles and Resources for IAM!

A

Policies are applied to Roles and Groups.

ROles are assigned to Resources

63
Q

How many Internet GW per VPC?

64
Q

Compare SQS to SWF!

A

SQS:

  • message oriented
  • pull based (short and long polling)
  • messages will be processed at least once
  • visibility timeout
  • types: standard vs fifo

SWF:

  • task oriented
  • tasks represent invocations of various processing steps
  • coordinate work across distiributed components
  • ensures task is only assigend once and is never duplicated!
65
Q

What is AWS Artifact?

A

Compliance Documents

66
Q

What is Data Pipeline?

A

AWS Data Pipeline is a web service that helps you reliably process and move data between different AWS compute and storage services, as well as on-premises data sources, at specified intervals. With AWS Data Pipeline, you can regularly access your data where it’s stored, transform and process it at scale, and efficiently transfer the results to AWS services such as Amazon S3, Amazon RDS, Amazon DynamoDB, and Amazon EMR.

67
Q

Which EC2 purchasing typed so you know?

A
  • On-Demand instance
  • Reserved Instance
  • Scheduled Instance
  • Spot Instance
  • Dedicated Hosts
68
Q

How many copies can Aurora loose without affect write or read capabilities?

A

2 write

3 read

69
Q

S3 consistency for Puts and Deletes

A

eventual consistency

70
Q

Explain the 2 IAM Policy Types!

A

TrustPolicy
- Who does the role trust? (effect, principal, action) default: root - whole account
AccessPolicy
- what can the role do?

71
Q

SNS?

A
  • push based
  • publish subscribe
  • Topics (group recipients) and messages
  • endpoints (SMS, email, SQS, HTTP…)
72
Q

Redshift columns vs record sets

A

It’s all about columns!

  • row-based: ideal for transaction processing
  • column based: ideal for analytics - many aggregations and advanced compression (single datatype in column)
73
Q

What does SOA record contain?

A
servername that supploed data for the zone
admin of the zone
current version of data file
ttl for resource records
etc.
74
Q

After creation of VPC what do we have per default?

A
  • RouteTable
  • NACL
  • Security Group
75
Q

Compare SG to ACL’s

A

ACL:

  • stateless
  • can block specific IP’s

SG:

  • stateful (as soon as you add an inbound rule a corresponding outbound rule is created although it’s not visible)
  • can’t specifically deny
  • all inbound traffic blocked by default
  • all outbound traffic allowed by default
76
Q

Which configuration can RedShift run in?

A

single node (160 GB)
multi-node
- Leader node (manages client connections and receives queries)
- Compute node (store data and perform queries and computations)

77
Q

What is Kinesis good for and which services does it consist of?

A
Streaming data
Kinesis Streams
- shard
- producers sends data here
- consumers turn data in sth. useful
- data is stored e.g. in Dynamo, S3, RDS...
Kinesis Firehose
- producers send data here
- no shards etc. - completely automated
- streams data to S3, ES Cluster
Kinesis Analytics
- SQL queries on data in Firehose or Streams
78
Q

How are IAM policies enforced?

A

if there is a deny: deny
if there is no deny and an allow: allow
if there is no deny nor allow: deny

79
Q

ACL 2 properties?

A
  • rules are evaluated in numerical order (ascending)

- separate inbound and outbound rules