Docker And CICD Flashcards

1
Q

What is Docker?

A

A platform to deploy apps in containers that run consistently across environments.

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

Where are Docker images stored?

A

In Docker Hub (public) or Amazon ECR (private/public).

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

How is Docker different from virtual machines?

A

Docker shares the host OS, allowing multiple containers on one server without full OS overhead.

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

What is Amazon ECS?

A

A container orchestration service for deploying Docker containers on AWS. It helps you run and manage Docker containers on a cluster of virtual machines (EC2) or on server less infrastructure using Fargate

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

What is the ECS EC2 launch type?

A

Requires you to manage EC2 infrastructure to run containers. You become responsible. For more fine-grained control.

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

What is the ECS Fargate launch type?

A

Serverless container deployment without managing infrastructure.

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

What are ECS IAM roles?

A

EC2 instance role/profile (EC2 Launch type only) and for ECS Task Role (for both ec2 and fargate) assigned per task in the task definition

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

Which load balancers are supported in ECS?

A

ALB, NLB (recommended for performance), and CLB (legacy).

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

What is ECS Service Auto Scaling?

A

Automatically adjust the number of ECS tasks based on metrics like CPU, memory, or ALB requests.

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

What is the ECS Cluster Capacity Provider?

A

Automatically provisions and scales EC2 instances for ECS tasks.

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

What is an ECS task definition?

A

Metadata (JSON) describing how to run containers including image, CPU, memory, and env vars.

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

What are ECS task placement strategies?

A

Binpack, Random, Spread – to determine where tasks run.

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

What are ECS task placement constraints?

A

distinctInstance to spread the tasks and memberOf to target specific attribute

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

What is Amazon ECR?

A

AWS-managed Docker container registry, private and public. Used to store, manage, and deploy docker containers on an images securely and efficiently.

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

How do you log in to ECR with AWS CLI?

A

Use aws ecr get-login-password with Docker login.

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

What is AWS CoPilot?

A

CLI tool to build, release, and manage containerized apps on ECS, Fargate, and App Runner.

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

What is Amazon EKS?

A

AWS-managed Kubernetes service to run containerized applications.

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

What are the node types in EKS?

A

Managed Node Groups (AWS provisions), Self-managed Nodes, and AWS Fargate (Fully serverless).

19
Q

What storage options are supported in EKS?

A

Amazon EBS, EFS, FSx for Lustre, and FSx for ONTAP via CSI drivers.

20
Q

What is AWS CodeCommit?

A

A managed Git repository service for source control on AWS.

21
Q

What are benefits of using CodeCommit?

A

Scalable, encrypted, highly available, integrated with IAM, no repo size limits.

22
Q

How can users authenticate with CodeCommit?

A

Using SSH keys or HTTPS with credential helper or Git credentials.

23
Q

What does AWS CodePipeline do?

A

Orchestrates CI/CD workflows from source to build, test, and deploy. Automates your software release workflow from code changes to production. Integrates with services like GitHub, CodeCommit, CodeBuild, CodeDeploy, Lambda, S3, Elastic Beanstalk, ECS, CloudFormation, and more.

24
Q

What can trigger a CodePipeline?

A

Changes to CodeCommit, GitHub, S3, or manually triggered.

25
Q

What are artifacts in CodePipeline?

A

Files that are produced and passed between stages, stored in S3.

26
Q

How to monitor failed pipeline stages?

A

Use Amazon EventBridge or CloudTrail.

27
Q

What is AWS CodeBuild?

A

A fully managed continuous integration (CI) service that compiles, tests, and packages code.

28
Q

How is CodeBuild billed?

A

Per-minute billing based on the compute time used.

29
Q

What file defines build instructions in CodeBuild?

A

buildspec.yml.

30
Q

What are the main phases in buildspec.yml?

A

install, pre_build, build, post_build.

31
Q

Where can CodeBuild store logs?

A

Amazon S3 and CloudWatch Logs.

32
Q

What is AWS CodeDeploy?

A

A service to automate code deployments to EC2, Lambda, and ECS.

33
Q

What file defines deployment in CodeDeploy?

A

appspec.yml.

34
Q

What deployment strategies does CodeDeploy support?

A

In-place, blue/green, canary, linear, all-at-once.

35
Q

What is required for EC2 deployment with CodeDeploy?

A

CodeDeploy agent must be installed and IAM permissions set.

36
Q

What is CodeDeploy Lambda platform used for?

A

To shift Lambda traffic gradually between versions.

37
Q

What deployment options are available for ECS via CodeDeploy?

A

Only Blue/Green deployments.

38
Q

How does rollback work in CodeDeploy?

A

Automatically or manually redeploys last known good revision.

39
Q

What is AWS CodeArtifact?

A

Artifact repository for managing software packages and dependencies.

40
Q

What tools are supported by CodeArtifact?

A

npm, pip, Maven, NuGet, twine, yarn, Gradle.

41
Q

How does CodeArtifact authorize access?

A

Via resource policies and IAM roles.

42
Q

What is Amazon CodeGuru?

A

A service for code reviews and application performance profiling using ML.

43
Q

What does CodeGuru Reviewer do?

A

Provides automated code review with ML for best practices and bugs.

44
Q

What does CodeGuru Profiler do?

A

Analyzes application runtime to detect performance bottlenecks and reduce cost.