Skip to main content

Posts

AWS Organizations

You can delete AWS Organization in an account through the CLI command below: aws organizations delete-organization --profile a2 As we have the organization deleted, you would see no organization while navigating to the AWS Organization home page. Create an organization. aws organizations create-organization --profile a2 We're not passing anything like name. That means, you can create at most only one organization in an account. Let's go back to the console. That created an Organization. It contains a Root OU and a member account (current account which is the management account). Each organization has a management account where the features of the organization are configured. In our case, a2 is the management account as we have created the organization in a2 account (current account). Root is the top most OU (Organizational Unit). An OU, which is a logical grouping of accounts or other OUs, can have either another OU or an account as its child. An OU can have more than one chil...

AWS Solutions Architect Professional

How to handle peak load of application? - When encountering the phrase "handle peak load traffic" in a question, think of AWS Auto-Scaling. - Use Auto-Scaling with Spot instances  - Use Auto-Scaling with On-Demand instances  What to be used for steady state load of application? - Use Reserved instances What EC2 pricing model should be used for RDS? - Use Reserved instances for RDS Which Route53 record should be used for EC2? - Use a Type A Record without an Alias for EC2 instances Which Route53 record should be used for ELB, CloudFront, S3? - Use a Type A Record with an Alias for ELB, CloudFront, and S3 Which Route53 record should be used for RDS? - Use a CNAME Record with no Alias for RDS Which service should be used to discover and protect sensitive data in AWS using machine-learning and pattern-matching? - Using Amazon Macie Which AWS service should be used to scan Amazon S3 buckets for data security and data privacy? - Using Amazon Macie Where to store encryption keys? - ...

NAT Gateway & NAT Instance

%3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22VPC%22%20style%3D%22points%3D%5B%5B0%2C0%5D%2C%5B0.25%2C0%5D%2C%5B0.5%2C0%5D%2C%5B0.75%2C0%5D%2C%5B1%2C0%5D%2C%5B1%2C0.25%5D%2C%5B1%2C0.5%5D%2C%5B1%2C0.75%5D%2C%5B1%2C1%5D%2C%5B0.75%2C1%5D%2C%5B0.5%2C1%5D%2C%5B0.25%2C1%5D%2C%5B0%2C1%5D%2C%5B0%2C0.75%5D%2C%5B0%2C0.5%5D%2C%5B0%2C0.25%5D%5D%3BoutlineConnect%3D0%3BgradientColor%3Dnone%3Bhtml%3D1%3BwhiteSpace%3Dwrap%3BfontSize%3D12%3BfontStyle%3D0%3Bcontainer%3D1%3BpointerEvents%3D0%3Bcollapsible%3D0%3BrecursiveResize%3D0%3Bshape%3Dmxgraph.aws4.group%3BgrIcon%3Dmxgraph.aws4.group_vpc%3BstrokeColor%3D%23248814%3BfillColor%3Dnone%3BverticalAlign%3Dtop%3Balign%3Dleft%3BspacingLeft%3D30%3BfontColor%3D%23AAB7B8%3Bdashed%3D0%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D%2240%22%20y%3D%22820%22%20width%3D%22511%22%20height%3D%22480%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3CmxCel...

Application Load Balancer (ALB)

The ALB spans all subnets in a VPC i.e., it is not inside a subnet but VPC. ALB is bound to Target Groups (TGs). TGs are bound to subnets.

S3

If the objects from the source bucket in the same region are replicated to another bucket in the same region, it is called same region replication (SRR). If the objects are replicated to a bucket in a different region, it is called cross region replication (CRR). 

AWS DMS (database migration service) - Homogeneous vs. Heterogeneous database migration

If I have an MSSQL server on-premises and I want to migrate that in AWS cloud (as MSSQL server itself), this is called a homogeneous database migration. If I have an MSSQL server on-premises and I want to transform and migrate that to a PostgreSQL database in AWS cloud, this is called a heterogeneous database migration. In this case the schema of the source and target database would be different (and also the datatypes, DB codes as the DB engines are different). So, you have to use a tool called SCT (schema conversion tool) to convert the source schema to the target schema (and also code transformation). After this, the DMS (database migration service) can be used to migrate the on-promises database into the AWS cloud (to RDS/EC2). The major advantage of using DMS service is, the source database would be fully operational while migrating the database. DMS can also move data between SQL, NoSQL and text-based targets.

AWS Route 53 health check

It monitors endpoints by sending HTTP requests at regular intervals. It marks the endpoint 'healthy' if the response is successful, 'unhealthy' otherwise. The endpoint will be marked 'unhealthy' if there is no response. In addition to endpoints, the Route 53 health checks can also be used to monitor other calculated health checks or cloudwatch alarms' state. Question: what is monitoring other health checks? You might want to make sure some minimum number of resources among multiple web servers are healthy. Question: What does monitoring a cloudwatch alarm mean? You could have created a CloudWatch alarm that monitors the number of targets running healthy in the load balancer's target group. The Route 53 health check could monitor such CloudWatch alarms. You can specify the endpoint using an IP address or domain name (the domain name could be configured in Route 53).  Example: The endpoint can be from an API Gateway which has a path parameter using which i...

How will you mitigate read-intensive database workloads?

Suppose you have a database and it has got a products table. And, there are 100 users. 60 users are reading data of product A and the remaining 40 users are reading data of product B. You can do either one of the following: 1. You can create an elasticache cluster. Let the first among 60 users query product A and the remaining 59 users use the data from the cache. ElastiCache is effective in caching frequent requests. 2. Create read replicas to distribute the read-only traffic across multiple database instances this improving the read performance.

AWS CloudWatch Log Agent

Cloudwatch monitors two things: 1. Your AWS resources 2. The applications running on your AWS resources There is something called cloudwatch log agent which you can install on your machine on premises. This can send application logs to cloudwatch logs. You can filter these logs using cloudwatch metric filter. For example, you can filter only the out of memory exception and find the total count of it. These metric filters are monitored by cloudwatch alarms. And then you can notify others using SNS.

AWS Config

You have few AWS resources. You want to compare their current configurations with expected/desired configurations. This can be achieved through an AWS service called AWS Config. It asses, audit and evaluate the configurations of AWS resources.