CloudFormation Interview Questions for Freshers/CloudFormation Interview Questions and Answers for Freshers & Experienced

If one of the instances becomes unhealthy which is registered with the ELB, which of the services will ensure that it replaces instance with a new one?

When ELB detects that an instance is unhealthy, it stops sending traffic to other instance and allows the in-flight requests to be completed. Connection Draining ensures that the unhealthy instance is terminated after the in-flight request and a new instance is created and traffic starts flowing into the new instance.

Posted Date:- 2021-11-23 13:45:26

What are the various scaling plans in Autoscaling?

Manual Scaling is done manually whenever there is a requirement of increasing or decreasing the instances based on the load. Scaling could be also be done automatically based on the load/demand on the EC2 instance, one can define the Maximum and Minimum EC2 instance details based on the various metrics. Last option is Based on Schedule wherein one can define a specific duration or time in which how many minimum and maximum instances must be running irrespective of demand.

Posted Date:- 2021-11-23 13:44:07

How to decide the type of load balancer to be used?

Elastic Load Balancing supports three types of load balancers -Classic, Application and Network. You can select the appropriate load balancer based on your application needs. If an application requires complex capabilities like Path-based and Host-based routing, recommended is Application Load Balancer. If extreme performance and static IP is needed for your application then we recommend you to use Network Load Balancer. If application requires basic features Classic Load Balancer is recommended.

Posted Date:- 2021-11-23 13:42:08

I have created an RDS DB Instance as a Multi-AZ deployment, can I use the standby DB Instance for read or write operations along with primary DB instance?

No, Standby DB instance cannot be used for read or write operations, the secondary instance could be used only when the primary DN instance goes down.

Posted Date:- 2021-11-23 13:41:06

What happens when one of the resources in a stack cannot be created successfully?

If the resource in the stack cannot be created, then the CloudFormation automatically rolls back and terminates all the resources that were created in the CloudFormation template. This is a handy feature when you accidentally exceed your limit of Elastic IP addresses or don’t have access to an EC2 AMI.

Posted Date:- 2021-11-23 13:39:34

What happens to Automated backups and manual DB Snapshots if DB Instance is deleted?

While deleting a DB Instance, you have an option of creating a final DB snapshot, which is recommended. RDS retains this user-created DB snapshot along with all other manually created DB snapshots after the instance is deleted, also automated backups are deleted and only manually created DB Snapshots are retained.

Posted Date:- 2021-11-23 13:38:27

What are the elements of an AWS CloudFormation template?

AWS CloudFormation templates are YAML or JSON formatted text files that are comprised of five essential elements, they are:

* Template parameters
* Output values
* Data tables
* Resources
* File format version

Posted Date:- 2021-11-23 13:36:42

What are the different types of EC2 instances based on their costs?

The three types of EC2 instances based on the costs are:

* On-Demand Instance - These instances are prepared as and when needed. Whenever you feel the need for a new EC2 instance, you can go ahead and create an on-demand instance. It is cheap for the short-time but not when taken for the long term.

* Spot Instance - These types of instances can be bought through the bidding model. These are comparatively cheaper than On-Demand Instances.

* Reserved Instance - On AWS, you can create instances that you can reserve for a year or so. These types of instances are especially useful when you know in advance that you will be needing an instance for the long term. In such cases, you can create a reserved instance and save heavily on costs.

Posted Date:- 2021-11-23 13:35:13

What is the relation between the Availability Zone and Region?

An AWS Availability Zone is a physical location where an Amazon data center is located. On the other hand, an AWS Region is a collection or group of Availability Zones or Data Centers.

This setup helps your services to be more available as you can place your VMs in different data centers within an AWS Region. If one of the data centers fails in a Region, the client requests still get served from the other data centers located in the same Region. This arrangement, thus, helps your service to be available even if a Data Center goes down.

Posted Date:- 2021-11-23 13:34:07

How can you send a request to Amazon S3?

Amazon S3 is a REST Service, and you can send a request by using the REST API or the AWS SDK wrapper libraries that wrap the underlying Amazon S3 REST API.

Posted Date:- 2021-11-23 13:33:17

How does Amazon Route 53 provide high availability and low latency?

Amazon Route 53 uses the following to provide high availability and low latency:

* Globally Distributed Servers - Amazon is a global service and consequently has DNS Servers globally. Any customer creating a query from any part of the world gets to reach a DNS Server local to them that provides low latency.
* Dependency - Route 53 provides a high level of dependability required by critical applications.
* Optimal Locations - Route 53 serves the requests from the nearest data center to the client sending the request. AWS has data-centers across the world. The data can be cached on different data-centers located in different regions of the world depending on the requirements and the configuration chosen. Route 53 enables any server in any data-center which has the required data to respond. This way, it enables the nearest server to serve the client request, thus reducing the time taken to serve.

Posted Date:- 2021-11-23 13:32:12

How is AWS CloudFormation different from AWS Elastic Beanstalk?

AWS CloudFormation helps you provision and describe all of the infrastructure resources that are present in your cloud environment. On the other hand, AWS Elastic Beanstalk provides an environment that makes it easy to deploy and run applications in the cloud.
AWS CloudFormation supports the infrastructure needs of various types of applications, like legacy applications and existing enterprise applications. On the other hand, AWS Elastic Beanstalk is combined with the developer tools to help you manage the lifecycle of your applications.

Posted Date:- 2021-11-23 13:26:23

If you would like to transfer vast amounts of data, which is the best option among Snowball, Snowball Edge, and Snowmobile?

AWS Snowball is basically a data transport solution for moving high volumes of data into and out of a specified AWS region. On the other hand, AWS Snowball Edge adds additional computing functions apart from providing a data transport solution. The snowmobile is an exabyte-scale migration service that allows you to transfer data up to 100 PB.

Posted Date:- 2021-11-23 13:25:41

What is RTO and RPO in AWS?

RTO or Recovery Time Objective is the maximum time your business or organization is willing to wait for a recovery to complete in the wake of an outage. On the other hand, RPO or Recovery Point Objective is the maximum amount of data loss your company is willing to accept as measured in time.

Posted Date:- 2021-11-23 13:24:59

What are the factors to consider while migrating to Amazon Web Services?

Here are the factors to consider during AWS migration:

* Operational Costs - These include the cost of infrastructure, ability to match * demand and supply, transparency, and others.
* Workforce Productivity
* Cost avoidance
* Operational resilience
* Business agility

Posted Date:- 2021-11-23 13:24:10

What is the AWS CloudFormation Registry?

The CloudFormation registry lists the extensions, both private and public (AWS), that are available for use in your CloudFormation account. An extension is an artifact, registered in the CloudFormation Registry, which augments the functionality of CloudFormation in a native manner.
Third-party resource types must be registered before they can be used to provision resources with AWS CloudFormation templates. Please see Using the AWS CloudFormation registry in our in the documentation for details.

Posted Date:- 2021-11-23 13:21:44

What are the steps involved in a CloudFormation Solution?

Here are the steps involved in a CloudFormation solution:

* Create or use an existing CloudFormation template using JSON or YAML format.
* Save the code in an S3 bucket, which serves as a repository for the code.
* Use AWS CloudFormation to call the bucket and create a stack on your template.
* CloudFormation reads the file and understands the services that are called the relationship between the services, and provisions the services one after the other.

Posted Date:- 2021-11-23 13:20:05

What can developers do with AWS CloudFormation?

AWS CloudFormation is a service that gives developers and businesses a possible way to create a collection of related AWS and third-party resources, and provision and manage them in an orderly and predictable fashion.
Developers can deploy and update compute, database, and many other resources in a simple, declarative style that abstracts away the complexity of specific resource APIs. AWS CloudFormation is designed to allow resource lifecycles to be managed repeatably, predictable, and safely, while allowing for automatic rollbacks, automated state management, and management of resources across accounts and regions.

Posted Date:- 2021-11-23 13:18:43

What happens when one of the resources in a stack cannot be created successfully?

By default, the automatic rollback on error feature is enabled. This will direct CloudFormation to only create or update all resources in your stack if all individual operations succeed. If they do not, CloudFormation reverts the stack to the last known stable configuration.
For example,if you accidentally exceed your default limit of Elastic IP addresses, or you don not have access to an EC2 AMI that you are trying to run. This feature enables you to rely on the fact that stacks are created either fully or not at all, which simplifies system administration and layered solutions built on top of CloudFormation.

Posted Date:- 2021-11-23 13:18:05

How do you monitor Amazon VPC?

You can monitor VPC by using:

* CloudWatch and CloudWatch logs
* VPC Flow Logs

Posted Date:- 2021-11-23 13:15:55

Name and explain some security products and features available in VPC?

Here is a selection of security products and features:

* Security groups - This acts as a firewall for the EC2 instances, controlling inbound and outbound traffic at the instance level.

* Network access control lists - It acts as a firewall for the subnets, controlling inbound and outbound traffic at the subnet level.

* Flow logs - These capture the inbound and outbound traffic from the network interfaces in your VPC.

Posted Date:- 2021-11-23 13:14:39

VPC is not resolving the server through DNS. What might be the issue, and how can you fix it?

To fix this problem, you need to enable the DNS hostname resolution, so that the problem resolves itself.

Posted Date:- 2021-11-23 13:13:28

How do you allow a user to gain access to a specific bucket?

You need to follow the four steps provided below to allow access. They are:

1. Categorize your instances
2. Define how authorized users can manage specific servers.
3. Lockdown your tags
4. Attach your policies to IAM users

Posted Date:- 2021-11-23 13:08:57

How can you recover/login to an EC2 instance for which you have lost the key?

Follow the steps provided below to recover an EC2 instance if you have lost the key:

1. Verify that the EC2Config service is running
2. Detach the root volume for the instance
3. Attach the volume to a temporary instance
4. Modify the configuration file
5. Restart the original instance

Posted Date:- 2021-11-23 13:07:14

What are the common types of AMI designs?

There are many types of AMIs, but some of the common AMIs are:

* Fully Baked AMI
* Just Enough Baked AMI (JeOS AMI)
* Hybrid AMI

Posted Date:- 2021-11-23 13:06:21

Difference between SAM template and Cloudformation template?

SAM templates are an extension of AWS CloudFormation templates, with some additional components that make them easier to work with. For the full reference for AWS CloudFormation templates, see AWS CloudFormation Template Reference in the AWS CloudFormation User Guide.
Cloudformation template is a declaration of the AWS resources that make up a stack. The template is stored as a text file whose format complies with the JavaScript Object Notation (JSON) or YAML standard.In the template, you declare the AWS resources you want to create and configure.

Posted Date:- 2021-11-23 13:05:22

What are Solaris and AIX operating systems? Are they available with AWS?

Solaris is an operating system that uses SPARC processor architecture, which is not supported by the public cloud currently.

AIX is an operating system that runs only on Power CPU and not on Intel, which means that you cannot create AIX instances in EC2.

Since both the operating systems have their limitations, they are not currently available with AWS.

Posted Date:- 2021-11-23 13:04:47

How do you set up SSH agent forwarding so that you do not have to copy the key every time you log in?

Here’s how you accomplish this:

1. Go to your PuTTY Configuration
2. Go to the category SSH -> Auth
3. Enable SSH agent forwarding to your instance

Posted Date:- 2021-11-23 13:03:21

What are the different types of EC2 instances based on their costs?

The three types of EC2 instances are:

* On-demand Instance

It is cheap for a short time but not when taken for the long term

* Spot Instance

It is less expensive than the on-demand instance and can be bought through bidding.

* Reserved Instance

If you are planning to use an instance for a year or more, then this is the right one for you.

Posted Date:- 2021-11-23 13:02:40

What is the difference between stopping and terminating an EC2 instance?

While you may think that both stopping and terminating are the same, there is a difference. When you stop an EC2 instance, it performs a normal shutdown on the instance and moves to a stopped state. However, when you terminate the instance, it is transferred to a stopped state, and the EBS volumes attached to it are deleted and can never be recovered.

Posted Date:- 2021-11-23 13:01:39

What are the differences between NAT Gateways and NAT Instances?

While both NAT Gateways and NAT Instances serve the same function, they still have some key differences.

Posted Date:- 2021-11-23 13:01:02

Name some of the AWS services that are not region-specific

AWS services that are not region-specific are:

* Route 53
* Web Application Firewall
* CloudFront

Posted Date:- 2021-11-23 13:00:34

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.

Posted Date:- 2021-11-23 12:59:26

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

Posted Date:- 2021-11-23 12:57:55

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.

Posted Date:- 2021-11-23 12:57:16

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
* Amazon Route53
* Amazon CloudFront

Posted Date:- 2021-11-23 09:25:51

How does AWS Cloud Pipeline interact with CloudFormation?

You can use AWS CodePipeline to trigger a Cloud Formation template to run in the deployment phase.

The pipeline has following stages:
>> Source phase: Fetch the latest commit.
>> Build phase: Build the code into a docker image and push it to ECR.
>> Deploy phase: Take the latest docker image from ECR, deploy it to ECS

Posted Date:- 2021-11-23 09:25:12

How can you create and delete stacks of AWS?

<> In AWS CloudFormation related resources are managed as a single unit called a stack.
<> It is possible to create, update, and delete a collection of resources by creating, updating, and deleting stacks.
<> All the resources in a stack are defined by the stack's AWS CloudFormation template.

Posted Date:- 2021-11-23 09:20:57

How to solve circular dependency error in AWS CloudFormation?

When two are dependent on one another we will get a circular dependency error because AWS CloudFormation is unable to clearly determine which resource should be created first
The first step is to examine the resources that are outlined and make sure that AWS CloudFormation can determine what resource order it should take.
To resolve a dependency error, add a DependsOn attribute to resources that depend on other resources in your template.
Using DependsOn, we can specify that a particular resource needs to be created before the other resource.

Posted Date:- 2021-11-23 09:19:58

What is a circular dependency in AWS CloudFormation?

There is interleaved dependency between two resources.

* Resource X is dependent on Resource Y, and Resource Y is dependent on Resource X.
* When this type of situation occurs, you will get a circular dependency error because AWS CloudFormation is unable to clearly determine which resource should be created first.
* The AWS CloudFormation circular dependency can be caused by interactions between services that cause them to be mutually dependent.

Posted Date:- 2021-11-23 09:17:52

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.

Posted Date:- 2021-11-23 09:16:30

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.

Posted Date:- 2021-11-23 09:15:58

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
* Eclipse

Posted Date:- 2021-11-23 09:15:09

What are benefits of AWS CloudFormation ?

<> Infrastructure as a code : treat your infrastructure as a simplifying code that facilitates modification and changes.
<> Automated provisioning : We don't have to work on resources, we just have to improve his application. CloudFormation takes care of both the provision and control of resources
<> Safety controls : The inspections are automated to minimize stress and improve quality and efficiency.
<> Extensibility: CloudFormation Stack offers an expandable framework for our own extensions and adding them to the CloudFormation template. For a third party resource, customized extension provisioning can be created.
<> Centerlize Control : You can model a whole AWS infrastructure in a text file and construct multiple infrastructures with a single code using that design.

Posted Date:- 2021-11-23 09:12:19

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.

Posted Date:- 2021-11-23 09:10:39

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:

Posted Date:- 2021-11-23 09:07:46

What are the steps involved in a CloudFormation Solution?

Here are the steps involved in a CloudFormation solution:

<> Create or use an existing CloudFormation template using JSON or YAML format.

<> Save the code in an S3 bucket, which serves as a repository for the code.
<> Use AWS CloudFormation to call the bucket and create a stack on your template.
<> CloudFormation reads the file and understands the services that are called, their order, the relationship between the services, and provisions the services one after the other.

Posted Date:- 2021-11-23 09:05:21

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.

Posted Date:- 2021-11-23 09:03:09

What is the relation between the Availability Zone and Region?

AWS regions are separate geographical areas, like the US-West 1 (North California) and Asia South (Mumbai). On the other hand, availability zones are the areas that are present inside the regions. These are generally isolated zones that can replicate themselves whenever required.

Posted Date:- 2021-11-23 09:02:34

Define and explain the three basic types of cloud services and the AWS products that are built based on them?

The three basic types of cloud services are:

* Computing
* Storage
* Networking

Here are some of the AWS products that are built based on the three cloud service types:

Computing - These include EC2, Elastic Beanstalk, Lambda, Auto-Scaling, and Lightsat.

Storage - These include S3, Glacier, Elastic Block Storage, Elastic File System.

Networking - These include VPC, Amazon CloudFront, Route53

Posted Date:- 2021-11-23 09:02:19

R4R Team
R4R provides CloudFormation Freshers questions and answers (CloudFormation Interview Questions and Answers) .The questions on website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,CloudFormation Interview Questions for Freshers,CloudFormation Freshers & Experienced Interview Questions and Answers,CloudFormation Objetive choice questions and answers,CloudFormation Multiple choice questions and answers,CloudFormation objective, CloudFormation questions , CloudFormation answers,CloudFormation MCQs questions and answers R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for CloudFormation fresher interview questions ,CloudFormation Experienced interview questions,CloudFormation fresher interview questions and answers ,CloudFormation Experienced interview questions and answers,tricky CloudFormation queries for interview pdf,complex CloudFormation for practice with answers,CloudFormation for practice with answers You can search job and get offer latters by studing .learn in easy ways .