AWS Certification: AWS CloudFormation Questions

AWS CloudFormation

Overview
AWS CloudFormation provides a common language for you to model and provision AWS and third party application resources in your cloud environment. AWS CloudFormation allows you to use programming languages or a simple text file to model and provision, in an automated and secure manner, all the resources needed for your applications across all regions and accounts. This gives you a single source of truth for your AWS and third party resources.
1. A company has an entire infrastructure hosted on AWS. It wants to create code templates used to provision the same set of resources in another region in case of a disaster in the primary region. Which of the following services can help in this regard?

A. AWS Beanstalk

B. AWS CloudFormation

C. AWS CodeBuild

D. AWS CodeDeploy

Answer
B. AWS CloudFormation

2. A company requires to provision test environments in a short duration. Also required is an ability to tear them down easily for cost optimization. How can this be achieved?

A. Use CloudFormation templates to provision the resources accordingly.

B. Use a custom script to create and tear down the resources.

C. Use IAM Policies for provisioning the resources and tearing them downaccordingly.

D. Use Auto Scaling groups to provision the resources on demand.

Answer
A. Use CloudFormation templates to provision the resources accordingly.

3. A company wants to create standard templates for deployment of their Infrastructure. These would also be used to provision resources in another region during disaster recovery scenarios. Which AWS service can be used in this regard?

A. Amazon Simple Workflow Service

B. AWS Elastic Beanstalk

C. AWS CloudFormation

D. AWS OpsWorks

Answer
C. AWS CloudFormation

4. A company wants to setup a template for deploying resources to AWS. They want this to be dynamic in nature so that the template can pick up parameters and then spin up resources based on those parameters. Which of the following AWS services would be ideal for this requirement?

A. AWS Beanstalk

B. AWS CloudFormation

C. AWS CodeBuild

D. AWS CodeDeploy

Answer
B. AWS CloudFormation

5. A consulting firm repeatedly builds large architectures for their customers using AWS resources from several AWS services including IAM, Amazon EC2, Amazon RDS, DynamoDB and Amazon VPC. The consultants have architecture diagrams for each of their architectures, and are frustrated that they cannot use them to automatically create their resources.

Which service should provide immediate benefits to the organization?


A. AWS Beanstalk

B. AWS CloudFormation

C. AWS CodeBuild

D. AWS CodeDeploy

Answer
B. AWS CloudFormation

6. There is a website hosted in AWS that might get a lot of traffic over the next couple of weeks. If the application experiences a natural disaster in the future, which of the following can be used to reduce potential disruption to users?

A. Use an ELB to divert traffic to an Infrastructure hosted in another region.

B. Use an ELB to divert traffic to an Infrastructure hosted in another AZ.

C. Use CloudFormation to create backup resources in another AZ.

D. Use Route53 to route to static web site.

Answer
C. Use CloudFormation to create backup resources in another AZ.

7. Your company’s management team has asked you to devise a disaster recovery strategy for the current resources hosted in AWS. They want to minimize costs, but be able to spin up the infrastructure when needed in another region. How could you accomplish this with the LEAST costs in mind?

A. Create a duplicate of the entire infrastructure in another region.

B. Create a Pilot Light infrastructure in another region.

C. Use Elastic Beanstalk to create another copy of the infrastructure in anotherregion if a disaster occurs in the primary region.

D. Use CloudFormation to spin up resources in another region if a disaster occurs inthe primary region.

Answer
D. Use CloudFormation to spin up resources in another region if a disaster occurs inthe primary region.