Aws Devops¶
41 cards — 🟢 10 easy | 🟡 10 medium | 🔴 6 hard
🟢 Easy (10)¶
1. Explain what is CloudFormation
Show answer
AWS definition: "AWS CloudFormation is a service that helps you model and set up your Amazon Web Services resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. You create a template that describes all the AWS resources that you want (like Amazon EC2 instances or Amazon RDS DB instances), and CloudFormation takes care of provisioning and configuring those resources for you."Remember: CloudFormation = AWS-native IaC. Templates (JSON/YAML) define stacks. Drift detection shows manual changes. Rollback on failure by default.
2. What is AWS CloudWatch?
Show answer
AWS definition: "Amazon CloudWatch is a monitoring and observability service..."More on CloudWatch [here](https://aws.amazon.com/cloudwatch)
Remember: AWS DevOps services: CodeCommit (Git), CodeBuild (CI), CodeDeploy (CD), CodePipeline (orchestration), CloudFormation (IaC), Systems Manager (fleet ops).
Gotcha: AWS native DevOps tools work well together but can feel limited compared to GitHub Actions or GitLab CI. Evaluate before committing.
3. What is AWS CodeDeploy?
Show answer
Amazon definition: "AWS CodeDeploy is a fully managed deployment service that automates software deployments to a variety of compute services such as Amazon EC2, AWS Fargate, AWS Lambda, and your on-premises servers."Learn more [here](https://aws.amazon.com/codedeploy)
Remember: CodeDeploy supports EC2, ECS, and Lambda. Strategies: AllAtOnce, HalfAtATime, OneAtATime, Canary, Linear for ECS/Lambda.
4. What is AWS X-Ray and how does it help with distributed tracing?
Show answer
AWS definition: "AWS X-Ray helps developers analyze and debug production, distributed applications, such as those built using a microservices architecture."Learn more [here](https://aws.amazon.com/xray)
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
5. What is "Amazon CloudWatch"?
Show answer
A monitoring service for AWS resources and applications.Remember: AWS DevOps services: CodeCommit (Git), CodeBuild (CI), CodeDeploy (CD), CodePipeline (orchestration), CloudFormation (IaC), Systems Manager (fleet ops).
Gotcha: AWS native DevOps tools work well together but can feel limited compared to GitHub Actions or GitLab CI. Evaluate before committing.
6. What is AWS CDK and how does it define infrastructure in code?
Show answer
AWS definition: "The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure as code and provision it through AWS CloudFormation. CDK gives the flexibility to use popular programming languages like TypeScript, JavaScript, Python, Java, C# and Go (in Developer Preview) to define your infrastructure, and AWS CDK provides a set of libraries for AWS services that abstract away the need to write raw CloudFormation templates.Learn more [here](https://aws.amazon.com/cdk)
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
7. What is AWS OpsWorks?
Show answer
Amazon definition: "AWS OpsWorks is a configuration management service that provides managed instances of Chef and Puppet."Learn more about it [here](https://aws.amazon.com/opsworks)
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
8. Tell me about your AWS experience.
Show answer
I've managed hundreds to thousands of EC2 instances, handled IAM policies and roles, S3 storage, CloudWatch monitoring, and CloudFormation-based deployments. I've supported multi-account environments and worked with governance controls like tagging standards and instance hardening. My strengths are operational reliability, automation, and designing clean, maintainable AWS workflows.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
9. What is AWS CloudWatch used for?
Show answer
Amazon CloudWatch is a monitoring and observability service. It collects metrics (CPU, memory, network, etc.) from AWS resources and applications, logs from services or your apps, and events/alarms. You use CloudWatch to view dashboards, set alarms (e.g., trigger an action if CPU > 80%), and even trigger automated responses.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
10. What is "AWS CloudFormation"?
Show answer
A service for provisioning AWS infrastructure as code.Remember: CloudFormation = AWS-native IaC. Templates (JSON/YAML) define stacks. Drift detection shows manual changes. Rollback on failure by default.
🟡 Medium (10)¶
1. What the role "EC2 Instance Profile" is used for in regards to ECS?
Show answer
EC2 Instance Profile used by ECS agent on an EC2 instance to:* Make API calls to ECS Service
* Send logs to CloudWatch from the container
* Use secrets defined in SSM Parameter Store or Secrets Manager
* Pull container images from ECR (Registry)
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
2. What is CloudFormation in AWS?
Show answer
AWS CloudFormation: It's a service that helps model and set up your AWS resources using templates. It allows you to describe and provision all the infrastructure resources in your cloud environment.Remember: CloudFormation = AWS-native IaC. Templates (JSON/YAML) define stacks. Drift detection shows manual changes. Rollback on failure by default.
3. Which service would you use for debugging and improving performances issues with your applications?
Show answer
AWS X-Ray. It traces requests across distributed services, builds a service map, and highlights latency bottlenecks and error rates to pinpoint performance issues.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
4. What is AWS Systems Manager (SSM) and what operations does it support?
Show answer
SSM acts like a control panel to manage and automate office tasks (AWS resources). It helps in organizing and maintaining systems, automating tasks, and ensuring everything runs smoothly. It's a service used to manage AWS resources, automate tasks, and manage infrastructure.Remember: SSM = Swiss Army knife for fleet management. Session Manager (SSH-less shell), Parameter Store (config/secrets), Patch Manager, Run Command.
5. What would you use for easily creating similar AWS environments/resources for different customers?
Show answer
AWS CloudFormation — an infrastructure-as-code service that lets you model and provision AWS resources using declarative JSON/YAML templates. You can version-control templates and replicate identical stacks across accounts or regions.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
6. What is CloudWatch in AWS and how is it utilized?
Show answer
CloudWatch: It's a monitoring and observability service in AWS used for collecting and tracking metrics, monitoring logs, and setting alarms. It's pivotal for resource optimization and troubleshooting.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
7. What would you use for automating code/software deployments?
Show answer
AWS CodeDeploy — a deployment service that automates code rollouts to EC2 instances, Lambda functions, or ECS services. It supports rolling, blue/green, and canary deployment strategies with automatic rollback on failure.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
8. You would like to monitor some of your resources in the different services. Which service would you use for that?
Show answer
Amazon CloudWatch. It collects metrics, logs, and events from AWS services, lets you set alarms, and can trigger automated actions when thresholds are breached.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
9. What Route 53 health checks are used for?
Show answer
Automated DNS failover based on monitoring:* Another health check
* endpoint (app, AWS resource, server)
* CloudWatch alarms
Remember: AWS DevOps services: CodeCommit (Git), CodeBuild (CI), CodeDeploy (CD), CodePipeline (orchestration), CloudFormation (IaC), Systems Manager (fleet ops).
Gotcha: AWS native DevOps tools work well together but can feel limited compared to GitHub Actions or GitLab CI. Evaluate before committing.
10. What is Amazon CloudFormation?
Show answer
AWS CloudFormation is an Infrastructure as Code service that lets you define AWS resources in JSON/YAML templates and automatically provisions and configures them. It provides a way to version and deploy stacks of resources in a predictable manner (a single template can spin up a whole environment).Remember: CloudFormation = AWS-native IaC. Templates (JSON/YAML) define stacks. Drift detection shows manual changes. Rollback on failure by default.
🔴 Hard (6)¶
1. How can you customize the trigger for the scaling in/out of an auto scaling group?
Show answer
One way is to use CloudWatch alarms where an alarm will monitor a metric and based on a certain value (or range) you can choose to scale-in or scale-out the ASG.Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
2. Why cloudformation when Terraform is already there.
Show answer
Both are like different languages for giving instructions to set up your office building. CloudFormation is AWS’s language, while Terraform is like a multi-language translator that works across different cloud providers. CloudFormation is AWS’s native service, while Terraform is a third-party, multi-cloud infrastructure provisioning tool.Remember: CloudFormation = AWS-native IaC. Templates (JSON/YAML) define stacks. Drift detection shows manual changes. Rollback on failure by default.
3. You would like to run an AWS Fargate task every time a file is uploaded to a certain S3 bucket. How would you achieve that?
Show answer
Use Amazon EventBridge so every time a file is uploaded to an S3 bucket (event) it will run an ECS task.Such task should have an ECS Task Role so it can get the object from the S3 bucket (and possibly other permissions if it needs to update the DB for example).
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
4. How does AWS X-Ray assist in application performance monitoring?
Show answer
AWS X-Ray: It's a service that helps developers analyze and debug production, distributed applications.Role in Performance Monitoring: X-Ray provides insights into how an application is performing and where issues might occur in a distributed environment. projects/knowledge/interview/aws/448-how-does-aws-x-ray-assist-in-application-performan.txt
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
5. Specify one or more use cases for using AWS Lambda
Show answer
- Uploading images to S3 and tagging them or inserting information on the images to a database- Uploading videos to S3 and edit them or add subtitles/captions to them and store the result in S3
- Use SNS and/or SQS to trigger functions based on notifications or messages received from these services.
- Cron Jobs: Use Lambda together with CloudWatch events to schedule tasks/functions periodically.
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.
6. What is AWS OpsWorks and its use cases in infrastructure management?
Show answer
OpsWorks: It's a configuration management service that provides managed instances of Chef and Puppet for infrastructure management.Use Cases: Application and infrastructure management, automation, and security patching are primary scenarios. projects/knowledge/interview/aws/447-what-is-aws-opsworks-and-its-use-cases-in-infrastr.txt
Remember: infrastructure as code (CloudFormation, CDK, Terraform) is the foundation of DevOps on AWS. Never click-configure production resources in the console.