AWS Services, Deploying and Monitoring Infrastructure Flashcards

1
Q

What is AWS Lambda?

A

AWS Lambda is a serverless compute service that allows you to run code without provisioning or managing servers. It offers seamless scaling and operates in a reactive manner.

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

How is AWS Lambda billed?

Hint: Consider both requests and the amount of time your code runs.

A

You are charged per request and for the compute time used by your Lambda functions.

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

What programming languages does AWS Lambda support?

A

AWS Lambda supports many programming languages, but not arbitrary Docker containers.

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

What is the maximum execution time for an AWS Lambda function?

Hint: Think of a quarter-hour.

A

Lambda functions can run for a maximum of 15 minutes per invocation.

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

Name three use cases for AWS Lambda.

Hint: These involve automation, event triggers, and APIs.

A

Answer:

  • Creating thumbnails for images uploaded to S3
  • Running a serverless cron job
  • Exposing Lambda functions as HTTP APIs via API Gateway
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is AWS CloudFormation?

A

CloudFormation is a declarative way to manage and provision AWS infrastructure using templates.

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

What types of resources can you define in CloudFormation?

A
  • Security groups
  • EC2 instances
  • S3 buckets
  • Load balancers (ELB)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some key benefits of using CloudFormation?

A
  • Infrastructure as code
  • No manual resource creation
  • Changes are reviewed through code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can you estimate costs with CloudFormation?

A

You can estimate the cost of your resources by reviewing the template before deploying the stack.

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

What is a common savings strategy for CloudFormation in a development environment?

A

Automate deletion of templates at 5 PM and recreate them at 8 AM to save on resources.

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

What is the AWS Cloud Development Kit (CDK)?

How does the CDK work with CloudFormation?

A

The CDK allows you to define your cloud infrastructure using a familiar programming language.

The CDK compiles code into a CloudFormation template (JSON/YAML), which is then used to deploy infrastructure.

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

Name two good use cases for the CDK.

A
  • Defining Lambda functions
  • Deploying Docker containers in ECS/EKS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Elastic Beanstalk?

A

Elastic Beanstalk is a developer-centric Platform as a Service (PaaS) that makes it easy to deploy applications in AWS.

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

What are the three Elastic Beanstalk architecture models?

A
  • Single instance deployment (good for development)
  • Load Balancer + ASG (for production/pre-production web apps)
  • ASG only (for non-web apps in production)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the responsibility of a developer when using Elastic Beanstalk?

A

The developer is only responsible for the application code, as Elastic Beanstalk handles deployment, scaling, and monitoring.

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

What is AWS CodeDeploy?

A

CodeDeploy is a service that automates the deployment of applications to EC2 instances, on-premises servers, or both.

17
Q

What must be done before using CodeDeploy?

A

Servers/instances must be provisioned and configured with the CodeDeploy agent.

18
Q

What does AWS CodeBuild do?

A

CodeBuild is a fully managed build service that compiles source code, runs tests, and produces deployment packages.

19
Q

What are the benefits of using CodeBuild?

A
  • Fully managed, serverless
  • Continuously scalable
  • Secure
  • Pay-as-you-go pricing (you pay only for the build time)
20
Q

What is AWS CodeCommit?

A

CodeCommit is a Git-based source control service that makes it easy to collaborate on code and automatically version changes.

21
Q

What is AWS CodePipeline?

A

CodePipeline is a continuous integration and delivery service that orchestrates the steps to push code to production.

22
Q

What services can CodePipeline integrate with?

A
  • CodeCommit
  • CodeBuild
  • CodeDeploy
  • Elastic Beanstalk
  • CloudFormation
23
Q

What does AWS Systems Manager (SSM) do?

A

SSM helps manage EC2 and on-premises systems at scale, providing operational insights and automation tools.

24
Q

What is the SSM agent used for?

A

The SSM agent allows Systems Manager to control EC2 instances and on-premises servers, including running commands and automating patching.

25
Q

What does SSM Session Manager enable?

A

SSM Session Manager enables secure shell access to EC2 and on-premises servers without the need for SSH keys or bastion hosts.

26
Q

What is the role of CloudWatch Metrics?

A

CloudWatch Metrics monitor the performance of AWS services and billing metrics.

27
Q

What is the function of CloudWatch Alarms?

A

CloudWatch Alarms automate notifications, perform EC2 actions, or notify SNS based on metric thresholds.

28
Q

What does CloudWatch Logs do?

A

CloudWatch Logs collect log files from EC2 instances, servers, Lambda functions, and more.

29
Q

What is CloudWatch Events (or EventBridge) used for?

A

CloudWatch Events (or EventBridge) reacts to events in AWS or triggers a rule on a schedule.

30
Q

What is the purpose of CloudTrail in AWS?

A

CloudTrail audits API calls made within your AWS account, enabling governance, compliance, operational auditing, and risk auditing.

31
Q

What does CloudTrail Insights provide?

A

CloudTrail Insights provides automated analysis of your CloudTrail Events.

32
Q

What is AWS X-Ray used for?

A

AWS X-Ray traces requests made through your distributed applications, helping to debug production and distribution applications.

33
Q

What does the AWS Health Dashboard provide?

A

The AWS Health Dashboard provides the status of all AWS services across all regions, along with alerts and remediation guidance when AWS is experiencing events that may impact you.

34
Q

What does the AWS Service Health Dashboard offer?

A

The AWS Service Health Dashboard provides access to current status and historical data about every AWS service.

35
Q

What is AWS CodeGuru used for?

A

AWS CodeGuru automatically analyzes code and provides performance recommendations.