Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

AWS CloudFormation Assessment Test

Topics Covered

  • Templates Environment
  • Coding and Functions
  • Intrinsic Functions
  • Capabilities and Validation
  • Configuration
  • Limits
  • Cost
  • Automation
  • Quality assurance

Useful for hiring

  • Cloud DevOps Engineer (AWS)
  • AWS Cloud Engineer  

Start hiring job-fit candidates using this assessment

GET A DEMO

"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"

Rehana Nisar, Gartner,
Global Product & Services Recruitment Head
Question

You've got a CloudFormation template that brings up an auto-scaling group. It has the below instance profile and associated role and policy. Is there any way to also add an existing IAM role to the InstanceProfile?

Note: There can be multiple correct answers to this question.

Answer
    • Yes, you can add IAM role to the instanceProfile by following the normal rules

    • You can then create and attach the following policies to that Role: CodeDeployInstance (allow that instance to accept code deployments), DomainJoinInstance (permissions that allow the instance to join the domain), and AppCredentialsInstance (allow the instance to access app credentials via a secured S3 bucket). You can attach up to 10 policies to a Role in this way.

    • Currently, a maximum of one role can be assigned to an instance profile.

Question

You have designed a CloudFormation script to automatically deploy a database server running on EC2 with an attached database volume. This CloudFormation script will run automatically when a predefined event takes place. The database volume must have provisioned IOPS, and cannot have any kind of performance degradation after being deployed. What should you do to achieve this?

Answer
    • Test the CloudFormation script several times, and load-test it to a value matching the anticipated maximum peak load.

    • Test the CloudFormation Template several times, and load-test it to a value matching the anticipated maximum average load.

    • Test the CloudFormation Template several times, and load-test it to a value matching the peak load.

    • None of the mentioned

Question

You were concerning about the stack deployment rollback issue of CloudFormation. As most of the DevOps in your company does not have a clear idea about it. Which of the following will not cause a CloudFormation stack deployment to rollback?

Answer
    • When the database instance is deleted inside the AWS CloudFormation

    • The template contains invalid JSON syntax

    • The template contains wrong Lambda code

    • Template with error Client Request Token

Question

You've got a CloudFormation template that brings up an auto-scaling group. It has the below instance profile and associated role and policy. Is there any way to also add an existing IAM role to the InstanceProfile?

Note: There can be multiple correct answers to this question.

Answer
    • Yes, you can add IAM role to the instanceProfile by following the normal rules

    • You can then create and attach the following policies to that Role: CodeDeployInstance (allow that instance to accept code deployments), DomainJoinInstance (permissions that allow the instance to join the domain), and AppCredentialsInstance (allow the instance to access app credentials via a secured S3 bucket). You can attach up to 10 policies to a Role in this way.

    • Currently, a maximum of one role can be assigned to an instance profile.

Question

You have designed a CloudFormation script to automatically deploy a database server running on EC2 with an attached database volume. This CloudFormation script will run automatically when a predefined event takes place. The database volume must have provisioned IOPS, and cannot have any kind of performance degradation after being deployed. What should you do to achieve this?

Answer
    • Test the CloudFormation script several times, and load-test it to a value matching the anticipated maximum peak load.

    • Test the CloudFormation Template several times, and load-test it to a value matching the anticipated maximum average load.

    • Test the CloudFormation Template several times, and load-test it to a value matching the peak load.

    • None of the mentioned

Question

You were concerning about the stack deployment rollback issue of CloudFormation. As most of the DevOps in your company does not have a clear idea about it. Which of the following will not cause a CloudFormation stack deployment to rollback?

Answer
    • When the database instance is deleted inside the AWS CloudFormation

    • The template contains invalid JSON syntax

    • The template contains wrong Lambda code

    • Template with error Client Request Token

Question

You have designed a CloudFormation script to automatically deploy a database server running on EC2 with an attached database volume. This CloudFormation script will run automatically when a predefined event takes place. The database volume must have provisioned IOPS, and cannot have any kind of performance degradation after being deployed. What should you do to achieve this?

Answer
    • Test the CloudFormation script several times, and load-test it to a value matching the anticipated maximum peak load.

    • Test the CloudFormation Template several times, and load-test it to a value matching the anticipated maximum average load.

    • Test the CloudFormation Template several times, and load-test it to a value matching the peak load.

    • None of the mentioned

Question

You've got a CloudFormation template that brings up an auto-scaling group. It has the below instance profile and associated role and policy. Is there any way to also add an existing IAM role to the InstanceProfile?

Note: There can be multiple correct answers to this question.

Answer
    • Yes, you can add IAM role to the instanceProfile by following the normal rules

    • You can then create and attach the following policies to that Role: CodeDeployInstance (allow that instance to accept code deployments), DomainJoinInstance (permissions that allow the instance to join the domain), and AppCredentialsInstance (allow the instance to access app credentials via a secured S3 bucket). You can attach up to 10 policies to a Role in this way.

    • Currently, a maximum of one role can be assigned to an instance profile.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO