AWS DevOps Interview Questions & Answers
AWS DevOps Interview Questions & Answers
1. What is AWS DevOps?
Answer:
AWS DevOps is a combination of AWS services and DevOps practices that enable
organizations to automate and streamline software development and deployment
processes. It includes services like AWS CodePipeline, AWS CodeBuild, AWS
CodeDeploy, AWS CloudFormation, AWS Lambda, and Amazon ECS to facilitate CI/CD,
monitoring, and infrastructure automation.
AWS provides:
Answer:
AWS CodeBuild is a fully managed build service that compiles source code, runs tests,
and produces deployable artifacts.
Terraform is an open-source IaC tool that supports multiple cloud providers. Unlike
CloudFormation (AWS-specific), Terraform is cloud-agnostic.
AWS Fargate is a serverless compute engine for containers that eliminates the need to
manage EC2 instances.
Amazon CloudWatch is a monitoring and observability service for AWS resources and
applications.
AWS Lambda allows you to run code without provisioning servers. It executes
functions in response to events from S3, DynamoDB, API Gateway, etc.
AWS IAM (Identity and Access Management) controls user permissions, roles, policies,
and authentication in AWS.
Auto Scaling dynamically adjusts EC2 instances based on demand using policies like
Target Tracking, Scheduled Scaling, and Step Scaling.
Amazon Route 53 is a scalable DNS service for routing traffic to AWS resources.
It involves switching traffic from an old environment (blue) to a new one (green) to
ensure zero-downtime deployment.
AWS CodePipeline is a CI/CD service that automates the build, test, and deployment
phases of application development.
How It Works:
Amazon Elastic Container Registry (ECR) is a fully managed Docker container registry
that securely stores, manages, and deploys container images.
Key Features:
You can deploy a serverless application using AWS Lambda and API Gateway.
Steps:
Example:
Resources:
MyFunction:
Type: AWS::Lambda::Function
Properties:
Handler: index.handler
Runtime: nodejs14.x
Role: arn:aws:iam::123456789012:role/execution_role
AWS CloudTrail records all API calls & actions made in an AWS account, helping with
audit, security, and compliance.
Features:
AWS Shield is a DDoS protection service that safeguards AWS applications from
attacks.
Types:
AWS Inspector is an automated security assessment tool that scans EC2 instances for
vulnerabilities.
Features:
AWS App Mesh is a service mesh that enables observability and networking for
microservices.
Use Cases:
GitOps is a DevOps practice where infrastructure and applications are deployed via Git
repositories.
Implementation:
Implementation in AWS:
Use Cases:
1. Application Load Balancer (ALB) – Layer 7, used for HTTP/HTTPS traffic.
2. Network Load Balancer (NLB) – Layer 4, used for high-performance TCP traffic.
3. Classic Load Balancer (CLB) – Legacy, supports both Layer 4 and Layer 7.
AWS Outposts extends AWS infrastructure on-premises for hybrid cloud solutions.
Answer:
AWS Systems Manager manages EC2 instances, automation, patching, and logs.
It consists of 6 pillars:
Answer:
Key Components:
1. OpsWorks Stacks – Manages EC2 instances, RDS databases, and EBS volumes.
2. OpsWorks for Chef Automate – Automates infrastructure using Chef recipes.
3. OpsWorks for Puppet Enterprise – Automates system configuration with
Puppet.
Use Cases:
DevSecOps integrates security practices into the DevOps pipeline to ensure secure
application development and deployment.
AWS Artifact is a compliance and auditing tool that provides security reports and
compliance documents from AWS.
Key Features:
A financial company needs to prove AWS PCI DSS compliance to regulators. They can
download AWS Artifact reports and present them as evidence.
AWS Transit Gateway is a network hub that connects multiple VPCs, on-premises
networks, and AWS services in a scalable manner.
How It Works:
A company has 5 VPCs in different AWS regions and an on-premises data center.
Instead of managing multiple VPNs & VPC peering, they use Transit Gateway for
seamless connectivity.
3. Enable Encryption