AWS Part 3 (201-250) Flashcards

1
Q

What happens when EC2 instance is halted or ended?

A
  • Shutdown is performed typical way
  • EBS volumes can stay joined and begin again
  • Occurence hours are NOT charged when ceased state
    deleteontermination is set to false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the mainstream DevOps devices?

6 devices mentioned - J. G. N. S. D. PCA.

A
  • Jenkins ~ Continuous Integration tool
  • Git ~ Version Control System tool
  • Nagios ~ Continuous Monitoring tool
  • Selenium ~ Continuous Testing tool
  • Docker ~ Containerization tool
  • Puppet, Chef, Ansible ~ Deployment & Configuration Admin tools
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are IAM Roles and Policies? What is difference between IAM Roles, and Policies?

A

Roles: for AWS Services, assign permissions of some AWS service to another service
- Example - Give S3 permission to EC2 to access buckets

Policies: for users and groups, assign perimmissions to users and groups
- Example - Give permission to user to access S3 buckets

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

What are the default services we get when we create AWS VPC?

3 main services offered… R. N. S.

A
  • Route Table
  • Network ACL (NACL)
  • Security Group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is difference between Public Subnet and Private Subnet?

A

Public: will have IGW attached to route table, private will NOT have IGW attached

Causing no internet for private subnet…

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

How do you access EC2 with Private IP in a Private Subnet?

A

Using VPN, if configured to that VPC
Can access using other EC2 with public access

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

We have custom VPC configured and MySQL DB server which is on Private Subnet. Need to update MySQL DB server, what are the options to do so?

A

Using NAT Gateway in the VPC
. or Launch NAT instance EC2 config
. or Attach NAT Gateway in Public Subnet and attach it to the Route Table

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

What is the difference between Security Groups and NACLs?

4 main things - Attached to ? Stateful or Stateless? Block IP? Rules?

A

Security Groups:
- Attached to EC2 instance
- Stateful for incoming/outgoing rules
- Blocking IP address can’t be done
- Allow rules only, by default rules are denied

NACL:
- Attached to Subnet
- Stateless - Incoming rules only
- IP address can be blocked
- Allow and Deny can be used

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

What are differences between Route53 and ELB?

A

Route53 handles DNS servers with web interface

Elastic Load Balancing auto scales depending on the demand

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

Which engines can be used in AWS RDS?

5 main engines mentioned here

A
  • MariaDB
  • MySQL DB
  • MS SQL DB
  • Postgre DB
  • Oracle DB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are Status Checks in EC2?

Can you list 9 types of check?

A

Look for issues with instances for the following:
1. Network
2. Power
3. Software
4. Hardware
5. Instance
6. Memory
7. Files
8. Kernels
9. Failed checks

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

To establish peering between 2 VPC’s, what conditions must be met?

Discuss about CIDR and locations

A
  • CIDR block should NOT overlap between VPC settings for peering.
  • Peering connection is allowed within a region, across region, across different accounts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Troubleshoot with EC2 instances

2 examples and 2 potential solutions

A
  • If instance state is (0/2) then there may be hardware issue
  • If instance state is (1/2) then there may be issue with OS

Workaround - Restart, or if no resolutio then check logs

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

How can EC2 instances be resized?

A

Can scale UP or DOWN based on requirement

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

What is EBS?

A

Block-level storage volume which can be used after mounting EC2 instances

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

Difference between EBS, EFS, and S3?

A

EBS: Can be accessed ONLY after is mounted with instance

EFS: Can be shared with multiple instances

S3: Can be access without mounting with instances

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

Max number of buckets that can be created in AWS?

A

You can creat up to 100 buckets per AWS account

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

Max number of EC2 instances that can be created in VPC?

A

You can create up to 20 reserved instances and request Spot as per demand

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

How can EBS be accessed?

A

After mounting to EC2 instance, it can be accessed

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

What is process to mount EBS to EC2 instance?

A

Coding ahead:
- Df-k
- mkfs.ext4/dev/xvdf
- Fdisk -|
- Mkdir /my5gbdata
- Mount /dev/xvdf /my5gbdata

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

How to add volume permanently with instance?

A

Each restart unmounts volume from image, so to keep:

Cd /etc/fstab
/dev/xvdf /data ext4 defaults 0
0 < edit the file system name accordingly

22
Q

What is difference between Service Role and SAML Federated Role?

A

Service Role: Meant for usage of AWS services based on policies attached to it
- Ex. In case of automation we can create a service role and attach to it

Federated Role: Meant for User access and getting access to AWS as per designed role
- Ex. We can have fed role created for office emp and then that group will be created in the AD and user added to it

23
Q

How many policies can be attached to a role?

A

10 is soft limit, 20 is max limit

24
Q

What are different ways to access AWS?

3 different ways:

A
  • Console
  • CLI
  • AWS SDK
25
How is a root user different than an IAM user?
Root user is master of all in the AWS accounts, IAM users can be limited or act as Admin via policies
26
What do you mean by principal of least privilege in terms of IAM?
To provide the same or equivalent permission to user/role
27
What is the meaning of non-explicit deny for IAM user?
When IAM user is created and it is not having any policy attached to it
28
What is the precedence level between explicit allow and explicit deny?
Explicit Deny will always override Explicit Allow
29
What is the benefit of creating group in IAM?
- Makes user management process much simpler - Adding policy to group(s) instead of each user
30
What is the difference between the Admin Access and Power User access in terms of pre-build policy?
Admin access has full permissions to all things, while Power Users have Admin access but no user/group management.
31
What is the purpose of Identity Provider?
Helps in building trust between AWS and corporate AD environment, while creating Federated roles.
32
What are the benefits of STS? | What is STS?
Helps in securing AWS environment - Do not need to embed or distribute creds - Do not need to rotate or revoke tokens
33
What is the benefit of creating the AWS Organization?
Helps in - managing IAM policies - creating AWS accounts programmatically - managing the paymeny and billing methods
34
What is max file length in S3?
UTF-8 1024 bytes
35
Which activity cannot be done using autoscaling?
Maintain fixed running of EC2
36
How will you secure data at rest in EBS?
EBS data is ALWAYS secure
37
What is max size of S3 bucket?
5TB
38
Can objects in S3 be delivered through Amazon CloudFront?
Yes
39
Which service is used to distribute content to end users using global network EDGE LOCATION?
VPC | Virtual Private Cloud
40
What is "Ephemaral"?
Temporary
41
What are SHARDS in kinesis services?
Shards are used to store data in Kenesis
42
Where can you find Ephemeral storage?
In the Instance Store service
43
I have some private servers on my premises and distributed some of my workload to public cloud. What is this architecture called?
VPC | Virtual Private Cloud
44
Route 53 can be used to route users to infrastructure outside of AWS. True or False?
False!
45
Is Simple Workflow Service one of the valid SNS Subscribers?
No
46
Which cloud model do devs and orgs all around the workd leverage extensively?
IAAS | Infrastructure as a Service
47
Can CloudFront serve content from a non AWS origin server?
No
48
Is EFS a centralised storage service in AWS?
Yes
49
Which AWS service will you use to collect and process ecommerce data for real-time analysis?
Both Dynamo DB & Redshift
50
High demand of IOPS performance is expected around 15000. Whic EBS volume type would you recommend?
Provisioned IOPS