AWS Flashcards
What is auto-scaling?
Auto-scaling is a function that allows you to provision and launch new instances whenever there is a demand. It allows you to automatically increase or decrease resource capacity in relation to the demand.
What is geo-targeting in CloudFront?
Geo-Targeting is a concept where businesses can show personalized content to their audience based on their geographic location without changing the URL. This helps you create customized content for the audience of a specific geographical area, keeping their needs in the forefront.
How do you upgrade or downgrade a system with near-zero downtime?
You can upgrade or downgrade a system with near-zero downtime using the following steps of migration:
- Open EC2 console
- Choose Operating System AMI
- Launch an instance with the new instance type
- Install all the updates
- Install applications
- Test the instance to see if it’s working
- If working, deploy the new instance and replace the older instance
- Once it’s deployed, you can upgrade or downgrade the system with near-zero downtime.
Take home these interview Q&As and get much more. Download the complete AWS Interview Guide here:
What are the tools and techniques that you can use in AWS to identify if you are paying more than you should be, and how to correct it?
You can know that you are paying the correct amount for the resources that you are using by employing the following resources:
- Check the Top Services Table
It is a dashboard in the cost management console that shows you the top five most used services. This will let you know how much money you are spending on the resources in question. - Cost Explorer
There are cost explorer services available that will help you to view and analyze your usage costs for the last 13 months. You can also get a cost forecast for the upcoming three months. - AWS Budgets
This allows you to plan a budget for the services. Also, it will enable you to check if the current plan meets your budget and the details of how you use the services. - Cost Allocation Tags
This helps in identifying the resource that has cost more in a particular month. It lets you organize your resources and cost allocation tags to keep track of your AWS costs.
Is there any other alternative tool to log into the cloud environment other than console?
The that can help you log into the AWS resources are:
- Putty
- AWS CLI for Linux
- AWS CLI for Windows
- AWS CLI for Windows CMD
- AWS SDK
- Eclipse
What services can be used to create a centralized logging solution?
The essential services that you can use are Amazon CloudWatch Logs, store them in Amazon S3, and then use Amazon Elastic Search to visualize them. You can use Amazon Kinesis Firehose to move the data from Amazon S3 to Amazon ElasticSearch.
What are the native AWS Security logging capabilities?
Most of the AWS services have their logging options. Also, some of them have an account level logging, like in AWS CloudTrail, AWS Config, and others. Let’s take a look at two services in specific:
AWS CloudTrail
This is a service that provides a history of the AWS API calls for every account. It lets you perform security analysis, resource change tracking, and compliance auditing of your AWS environment as well. The best part about this service is that it enables you to configure it to send notifications via AWS SNS when new logs are delivered.
**AWS Config **
This helps you understand the configuration changes that happen in your environment. This service provides an AWS inventory that includes configuration history, configuration change notification, and relationships between AWS resources. It can also be configured to send information via AWS SNS when new logs are delivered.
What is a DDoS attack, and what services can minimize them?
DDoS is a cyber-attack in which the perpetrator accesses a website and creates multiple sessions so that the other legitimate users cannot access the service. The native tools that can help you deny the DDoS attacks on your AWS services are:
- AWS Shield
- AWS WAF
- Amazon Route53
- Amazon CloudFront
- ELB
- VPC
You are trying to provide a service in a particular region, but you do not see the service in that region. Why is this happening, and how do you fix it?
Not all Amazon AWS services are available in all regions. When Amazon initially launches a new service, it doesn’t get immediately published in all the regions. They start small and then slowly expand to other regions. So, if you don’t see a specific service in your region, chances are the service hasn’t been published in your region yet. However, if you want to get the service that is not available, you can switch to the nearest region that provides the services.
How do you set up a system to monitor website metrics in real-time in AWS?
Amazon CloudWatch helps you to monitor the application status of various AWS services and custom events. It helps you to monitor:
State changes in Amazon EC2
Auto-scaling lifecycle events
Scheduled events
AWS API calls
Console sign-in events
What are the different types of virtualization in AWS, and what are the differences between them?
The three major types of virtualization in AWS are:
Hardware Virtual Machine (HVM)
It is a fully virtualized hardware, where all the virtual machines act separate from each other. These virtual machines boot by executing a master boot record in the root block device of your image.
Paravirtualization (PV)
Paravirtualization-GRUB is the bootloader that boots the PV AMIs. The PV-GRUB chain loads the kernel specified in the menu.
Paravirtualization on HVM
PV on HVM helps operating systems take advantage of storage and network I/O available through the host.
Name some of the AWS services that are not region-specific
AWS services that are not region-specific are:
- IAM
- Route 53
- Web Application Firewall
- CloudFront
What are the differences between NAT Gateways and NAT Instances?
NAT Gateway and NAT Instance are both used in Amazon Web Services (AWS) to allow instances in private subnets to communicate with the internet while still maintaining a secure network environment. However, they have some differences in terms of features, management, and performance:
NAT Gateway:
- Managed Service: NAT Gateway is a fully managed service provided by AWS. It is easy to set up and does not require much configuration or maintenance from the user.
- Performance: NAT Gateway offers higher performance compared to NAT Instance. It is designed to automatically scale as per demand and can handle higher levels of network traffic.
- Availability: NAT Gateway is highly available within an Availability Zone (AZ) and can be associated with multiple subnets in the same AZ for redundancy.
- Elastic IP: A NAT Gateway requires an Elastic IP (EIP) to be associated with it.
NAT Instance:
User-Managed: NAT Instance is a regular EC2 instance that you set up and configure as a NAT device. This means you need to manage its configuration, updates, and scaling manually.
Performance: NAT Instances may have limited performance based on the instance type chosen, and they may become a bottleneck for network traffic if not sized properly.
Availability: NAT Instances are less fault-tolerant as they are tied to a single EC2 instance. To ensure high availability, you need to set up multiple instances across different AZs and manage failover manually.
Elastic IP: Like NAT Gateway, a NAT Instance also requires an Elastic IP (EIP) to be associated with it.
In summary, NAT Gateway is a managed service with better performance and higher availability, while NAT Instance requires more manual configuration and management but may be a suitable choice in specific scenarios where more control is needed or for cost optimization. For most use cases, NAT Gateway is the recommended choice due to its ease of use, scalability, and high availability.
What is CloudWatch?
The Amazon CloudWatch has the following features:
Depending on multiple metrics, it participates in triggering alarms.
Helps in monitoring the AWS environments like CPU utilization, EC2, Amazon RDS instances, Amazon SQS, S3, Load Balancer, SNS, etc.
With specified private IP addresses, can an Amazon Elastic Compute Cloud (EC2) instance be launched? If so, which Amazon service makes it possible?
Yes. Utilizing VPC makes it possible (Virtual Private Cloud).