9. Deploying and Managing Infra Flashcards

1
Q

What is AWS CloudFormation used for?

A

A declarative way to define AWS infrastructure as code for provisioning resources in a specified order.

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

True or False: CloudFormation only supports a few AWS resources.

A

False

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

Fill in the blank: In CloudFormation, you define infrastructure using a ______.

A

template

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

How does CloudFormation ensure the correct order of resource creation?

A

CloudFormation handles the order automatically based on dependencies specified in the template.

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

What cost-saving strategy can be applied using CloudFormation in a development environment?

A

Automating template deletion after hours and recreation in the morning to save costs.

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

Which AWS service allows infrastructure to be defined using programming languages like JavaScript and Python?

A

AWS Cloud Development Kit (CDK)

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

Name two programming languages supported by AWS CDK.

A

JavaScript and Python

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

True or False: AWS CDK automatically compiles code into CloudFormation templates.

A

True

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

How does AWS Elastic Beanstalk simplify deployment?

A

It provides a PaaS environment that abstracts the infrastructure setup, handling EC2, ASG, ELB, and more.

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

What is the architecture type for single-instance Elastic Beanstalk deployments best suited for?

A

Development environments

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

True or False: Elastic Beanstalk charges for the platform but not for underlying instances.

A

False, the platform is free, but you pay for the underlying resources.

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

List three deployment configurations for Elastic Beanstalk.

A

Single instance, Load Balancer + Auto Scaling Group, Auto Scaling Group only

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

Which service automates the code deployment to EC2 and on-premises servers?

A

AWS CodeDeploy

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

What must be installed on servers to work with CodeDeploy?

A

The CodeDeploy agent

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

Name the AWS service that provides Git-based source control repositories.

A

AWS CodeCommit

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

True or False: CodeCommit is managed, scalable, and private.

A

True

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

What does AWS CodeBuild primarily do?

A

Compiles source code, runs tests, and produces deployment-ready artifacts.

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

Fill in the blank: CodePipeline is used for _____ and _____ integration and delivery.

A

continuous, automated

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

What stages are commonly orchestrated by AWS CodePipeline?

A

Code, Build, Test, Provision, Deploy

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

How is artifact management achieved in AWS for dependency storage?

A

Using AWS CodeArtifact

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

Which common dependency management tools are compatible with CodeArtifact?

A

Maven, npm, pip, NuGet, etc.

22
Q

What does AWS Systems Manager (SSM) primarily help manage?

A

EC2 and on-premises systems at scale

23
Q

True or False: Systems Manager only works with Amazon Linux.

A

False, it supports multiple OS, including Windows and macOS.

24
Q

What feature of Systems Manager enables command execution across a server fleet?

A

Run Command

25
Q

How does the SSM Session Manager improve security?

A

It eliminates the need for SSH access and bastion hosts.

26
Q

True or False: Systems Manager Parameter Store can store secrets such as API keys and passwords.

A

True

27
Q

What AWS service is used to securely store configuration parameters and secrets?

A

SSM Parameter Store

28
Q

Fill in the blank: For additional security, parameters in SSM Parameter Store can be encrypted using ______.

A

AWS KMS

29
Q

What is the primary benefit of Infrastructure as Code with CloudFormation?

A

No manual resource creation, which ensures consistency and easy version control.

30
Q

What is a typical architecture of a web application deployed on AWS?

A

A 3-tier architecture with ELB, Auto Scaling, and RDS across multiple Availability Zones

31
Q

Which AWS service offers a developer-centric view of deploying applications?

A

Elastic Beanstalk

32
Q

What does the health monitoring feature in Elastic Beanstalk do?

A

Pushes metrics to CloudWatch and publishes health events.

33
Q

What kind of deployment model is best for production web applications in Elastic Beanstalk?

A

Load Balancer with Auto Scaling Group

34
Q

What are the three architecture models available in Elastic Beanstalk?

A

Single instance, LB + ASG, ASG only

35
Q

What AWS service provides a hybrid solution for deploying applications on-premises and on AWS?

A

AWS CodeDeploy

36
Q

Fill in the blank: AWS CodePipeline helps with the _____ of deployment stages.

A

orchestration

37
Q

True or False: CodePipeline is fully managed and integrates with third-party services like GitHub.

A

True

38
Q

What is the primary benefit of AWS CodeArtifact?

A

Manages software package dependencies for secure, scalable artifact storage.

39
Q

Which AWS service offers parameter storage with encryption and version tracking?

A

SSM Parameter Store

40
Q

What does AWS Systems Manager help achieve in terms of compliance?

A

Automates patching across instances for compliance.

41
Q

Which agent must be installed for Systems Manager to manage an instance?

A

SSM agent

42
Q

Name a benefit of using the AWS CodeBuild service.

A

Fully managed, serverless build environment with pay-as-you-go pricing.

43
Q

Fill in the blank: Elastic Beanstalk supports multiple platforms, including _____ and ______.

A

Java and Python

44
Q

What is a hybrid AWS service that provides operational insights on infrastructure?

A

AWS Systems Manager

45
Q

True or False: AWS CodeCommit has been discontinued for new customers as of July 25, 2024.

A

True

46
Q

What AWS service provides secure, scalable storage for git repositories?

A

AWS CodeCommit

47
Q

How does CloudFormation handle resources that are not natively supported?

A

Through custom resources in templates.

48
Q

What are the two main AWS deployment services that provide Infrastructure as Code?

A

AWS CloudFormation and AWS CDK

49
Q

Fill in the blank: AWS Elastic Beanstalk is a _____ as a _____ service.

A

Platform, Service

50
Q

Which service orchestrates CodeCommit, CodeBuild, and CodeDeploy in a CI/CD pipeline?

A

AWS CodePipeline

51
Q

How can you track the cost of infrastructure created by CloudFormation?

A

Using tags within the CloudFormation template

52
Q

True or False: CodeArtifact can be used to store any type of software package dependency.

A

True