AWS Deployment Quiz

Q1. Which AWS service is a declarative way of managing AWS resources by treating infrastructure as code?

AWS CloudFormation is a declarative way of outlining the AWS infrastructure, for any resources. It creates the resources as per the order and configuration specified in it’s template file.


Q2. Which is NOT a feature of AWS CloudFormation?

A. It supports declarative programming
B. It allows manual provisioning of servers
C. It supports infrastructure as code
D. It allows deletion of an infrastructure on the cloud

Answer

Option B is correct.

AWS CloudFormation is declarative way of specifying resources you want it to create in a JSON- or YAML-formatted template and it creates the desired cloud resources for you. As it is not for manual provisioning, option B is not a feature of AWS CloudFormation and hence incorrect.

As AWS CloudFormation is used for managing AWS and third-party resources by treating infrastructure as code, option C is also incorrect.

CloudFormation allows you to define deletion policies for resources in the template. So option D is incorrect.

Q3. Which IS not true about AWS CDK?

A. It can be used to define cloud infrastructure using a language like Java
B. CDK code can be compiled into a CloudFormation template
C. CDK code can be specified in JSON/YAML
D. It can be used to define cloud infrastructure as code

Answer
C

AWS CDK is a Devops tool used to define cloud application resources using familiar programming languages such as Python and Java.
The code then gets compiled into a CloudFormation template which is in JSON/YAML. Hence, option C is incorrect.

Reference

https://aws.amazon.com/cloudformation/

Leave a Reply

Your email address will not be published. Required fields are marked *