Serverless DevOps Flashcards

1
Q

Give characteristic of serverless application

A
  • No servers to provision or manage
  • Automatically scales with usage
  • Never pay for idle
  • Highly available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name few service in AWS which are serverless

A

Any service which fullfil the characteristic of serverless is serverless service
- Lambda
- DynamoDB
- Api Gateway
- Step Functions
- Simple Queue Service

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

What are advantage of serverless

A
  • No Patching headache
  • No scaling headache
  • Pay for only usage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are disadvantage of serverless

A
  • You can’t install any software like Webserver, Appserver
  • For AWS Lambda, can only have a memory from 128 MB to 3 GB
  • Your serverless function needs to complete in 1 sec to 15 mins. You can’t run long-running operations in a serverless function
  • You can’t add hard disk, or deployment package size is limited
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are use case for serverless

A

It shines in the event-driven architecture
- Say, you need to process something when the file is added to S3 or Kinesis
- It is suited when traffic is unpredictable, automation calling, pay as you go
- It use in a microservice architecture, it has integration with API Gateway, the Code is modular with software, easier to migrate to cloud-native, green fields apps

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

On what parameters, Lambda cost is calculated?

A
  • Number of time functions run in a month
  • Memory used by the function
  • Time is taken to execute the function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is serverless alternative to Microservice running on EC2

A

Lambda-API Gateway

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

What is serverless alternative to Web server running on EC2

A

Website hosting using S3 + Lambda-API Gateway

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

What is Serverless alternative to Databases on EC2?

A

Amazon RDS, Amazon Aurora

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

What is Serverless alternative to Self Managed K8 cluster on EC2?

A

EKS, Fargate, ECS

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

What is a Serverless alternative to ML on EC2

A

SageMaker

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

There is a scenario where the client sends messages which need to be put in the SQS queue. What would you use, load balancer or API Gateway?

A

AWS Loadbalancer Target group can support Lambda, apart from Instance and IP. But, you need lambda or some code on EC2 to put to SQS
https://medium.com/nerd-for-tech/aws-lambda-behind-application-load-balancer-75f71413c9e6
AWS API Gateway can directly put message in SQS queue without the need of lambda or any code

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

What is the difference between Equality-based and Set-Based label selector

A

Labels are used to filter out the kubernetes resource.Kubernetes has two selectors
Equality-based: Use =,==,!= and two Equality-based are used, it use as AND operator
Set-based: environment in (production, qa) OR operator

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

What are the federated cluster in Kubernetes

A

Base cluster to manage multiple clusters.
E.g. Rancher, CrossPlane, etc.

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