This is#90DaysofDevopschallenge under the guidance ofShubham Londhesir.
Today, let's explore some AWS interview questions together. Are you ready to expand your AWS knowledge and embark on this learning journey with me?
Let's begin! ๐
Name 5 AWS services you have used and their use cases?
EC2 (Elastic Compute Cloud): Virtual servers in the cloud for running applications.
S3 (Simple Storage Service): Scalable object storage for data backup, storage, and hosting static websites.
RDS (Relational Database Service): Managed database service for SQL databases like MySQL, PostgreSQL, etc.
Lambda: Serverless computing service for running code without provisioning or managing servers.
IAM (Identity and Access Management): Service for managing user access and permissions to AWS services.
What tools are used to send logs to the cloud environment?
AWS CloudWatch Logs: Collects and monitors logs from resources like EC2 instances and CloudTrail.
AWS CloudTrail: Records AWS API calls for auditing and compliance.
Third-party logging tools: Examples include Loggly and Splunk for aggregating and analyzing logs.
What are IAM Roles? How do you create/manage them?
IAM Roles: Permissions sets defining what actions users, services, or applications can perform on AWS resources.
Creating/Managing IAM Roles: Done through the AWS Management Console or AWS CLI by defining policies and attaching them to roles.
How to upgrade or downgrade a system with zero downtime?
Rolling updates or blue-green deployments: These techniques involve updating or replacing instances one at a time, ensuring the system remains available throughout the process.
AWS Elastic Load Balancing: Distributes traffic across multiple instances, allowing upgrades/downgrades without affecting availability.
What is infrastructure as code and how do you use it?
Infrastructure as code (IaC): Managing and provisioning infrastructure using code, enabling automation and repeatability.
Usage: Tools like AWS CloudFormation or Terraform help define infrastructure resources declaratively in code, which can be version-controlled and deployed consistently.
What is a load balancer? Give scenarios of each kind based on your experience.
Load balancer: Distributes incoming traffic across multiple targets (e.g., EC2 instances) to ensure high availability and fault tolerance.
Types and Scenarios: Application Load Balancer (ALB) for HTTP/HTTPS traffic, Network Load Balancer (NLB) for TCP traffic, and Classic Load Balancer (CLB) for EC2 instances.
What is CloudFormation and why is it used for?
CloudFormation: AWS service for provisioning and managing AWS infrastructure as code.
Usage: Enables automating the creation, modification, and deletion of resources in a predictable and consistent manner.
Difference between AWS CloudFormation and AWS Elastic Beanstalk?
CloudFormation: Infrastructure as code service for provisioning and managing AWS resources.
Elastic Beanstalk: Platform as a service (PaaS) offering for deploying and managing applications.
What are the kinds of security attacks that can occur on the cloud? And how can we minimize them?
Attacks: DDoS attacks, data breaches, and unauthorized access are common cloud security threats.
Minimization: Implementing encryption, access controls, network security, and continuous monitoring can help mitigate these risks.
Can we recover the EC2 instance when we have lost the key?
- Yes, you can recover an EC2 instance when the key pair is lost by creating a new key pair and associating it with the instance through the AWS Management Console or CLI.
What is a gateway?
- A gateway is a network node that acts as an entry or exit point to another network. It enables communication between different networks, such as connecting an on-premises network to the cloud.
What is the difference between Amazon RDS, DynamoDB, and Redshift?
Amazon RDS: Managed relational database service supporting various database engines like MySQL, PostgreSQL, etc.
DynamoDB: Fully managed NoSQL database service designed for high availability and scalability.
Redshift: Data warehousing service optimized for analyzing large datasets using SQL queries.
Do you prefer to host a website on S3? What's the reason if your answer is either yes or no?
Yes: Hosting a website on S3 is cost-effective, scalable, and offers high availability through content distribution networks (CDNs). It's suitable for static websites with low traffic.
No: For dynamic content or server-side processing, other services like EC2 or Elastic Beanstalk may be preferred.