Day 49 - INTERVIEW QUESTIONS ON AWS

Day 49 - INTERVIEW QUESTIONS ON AWS

  1. Name 5 aws services you have used and what are the use cases?

    EC2 (Elastic Compute Cloud): Used for virtual server instances and running applications.

    S3 (Simple Storage Service): Used for object storage and hosting static websites.

    RDS (Relational Database Service): Used for managed relational databases such as MySQL, PostgreSQL, etc.

    Lambda: Used for serverless computing, running code without provisioning or managing servers.

    CloudFormation: Used for infrastructure as code, automating the deployment of AWS resources.

  2. What are the tools used to send logs to the cloud environment

    Tools commonly used to send logs to the cloud environment include AWS CloudWatch Logs, AWS CloudTrail, and third-party tools like Fluentd and Logstash.

  3. What are IAM Roles? How do you create /manage them?

    IAM Roles are a secure way to grant permissions to entities (such as EC2 instances) in AWS. To create/manage IAM Roles, you can use the AWS Management Console, AWS CLI, or AWS SDKs. You define the necessary policies for the role and then assign the role to the appropriate entities.

  4. How to upgrade or downgrade a system with zero downtime?

    To upgrade or downgrade a system with zero downtime, you can use strategies such as rolling deployments, blue-green deployments, or canary deployments. These approaches involve gradually shifting traffic or deploying updates in a controlled manner to minimize or eliminate downtime.

  5. What is infrastructure as code and how do you use it?

    Infrastructure as Code (IaC) is the practice of defining and managing infrastructure resources using code. Tools like AWS CloudFormation, Terraform, and AWS CDK enable you to write infrastructure as code to provision and manage AWS resources programmatically, enabling consistent, repeatable, and version-controlled infrastructure deployments.

  6. What is a load balancer? Give scenarios of each kind of balancer based on your experience.

    A load balancer distributes incoming traffic across multiple targets, such as EC2 instances, to improve application availability and scalability. In AWS, there are three types of load balancers:

    Classic Load Balancer (CLB): Used for applications that require TCP/SSL balancing.

    Application Load Balancer (ALB): Ideal for HTTP/HTTPS traffic and provides advanced routing capabilities.

    Network Load Balancer (NLB): Suited for handling TCP/UDP traffic at ultra-high levels.

  7. What is CloudFormation and why is it used for?

    AWS CloudFormation is a service that allows you to model and provision AWS resources using templates. It enables you to automate the creation and management of your infrastructure, making it easier to deploy and update resources in a consistent and repeatable manner.

  8. Difference between AWS CloudFormation and AWS Elastic Beanstalk?

    AWS CloudFormation is a service for infrastructure as code, allowing you to create and manage AWS resources programmatically. It provides a way to define the entire infrastructure stack using a template. In contrast, AWS Elastic Beanstalk is a platform as a service (PaaS) offering that abstracts away the infrastructure details and simplifies the deployment and management of applications.

  9. What are the kinds of security attacks that can occur on the cloud? And how can we minimize them?

    Some types of security attacks on the cloud include DDoS attacks, data breaches, and unauthorized access. To minimize these attacks, you can implement measures such as using strong access controls and permissions, encrypting sensitive data, implementing network security measures like firewalls, and regularly monitoring and auditing your cloud environment.

  10. Can we recover the EC2 instance when we have lost the key?

    If you have lost the key pair for an EC2 instance, you cannot recover the existing key pair. However, you can create a new key pair and then associate it with the instance. Keep in mind that this process requires stopping and starting the instance.

  11. What is a gateway?

    Gateway is a network component that connects different networks or services. Examples include VPC (Virtual Private Cloud) Gateway, Internet Gateway, NAT Gateway, and API Gateway.

  12. What is the difference between Amazon Rds, Dynamodb, and Redshift?

    Amazon RDS: It is a managed relational database service that supports multiple database engines like MySQL, PostgreSQL, Oracle, and SQL Server. It is suitable for traditional relational database workloads.

    DynamoDB: It is a fully managed NoSQL database service that provides fast and predictable performance at any scale. It is ideal for applications that require low-latency and high-throughput data storage.

    Redshift: It is a fully managed data warehousing service that is optimized for online analytical processing (OLAP) and handling large datasets. It is designed for running complex analytical queries on structured data.

  13. Do you prefer to host a website on S3? What's the reason if your answer is either yes or no?

    Hosting a website on S3 is often preferred due to its simplicity, scalability, and cost-effectiveness. S3 provides a highly available and durable storage solution for static website files, and it can be easily configured with AWS CloudFront to improve performance through caching and content delivery network (CDN) capabilities. Additionally, S3's pay-as-you-go pricing model can be more cost-effective compared to traditional web hosting options.