Practice Test

True or False: AWS services have unlimited service quotas.


Explanation: AWS services do have predefined service quotas (previously known as limits) and once the quota is reached, the service will stop.

Which AWS tool would you use to template and provision AWS resources?

  • a) AWS CloudFormation
  • b) AWS Amplify
  • c) AWS S3
  • d) AWS CodeCommit

Answer: a) AWS CloudFormation

Explanation: AWS CloudFormation is a service that helps you model and set up your Amazon Web Services resources so you can spend less time managing those resources and more time focusing on your applications that run in AWS.

True or False: Subnet sizing can negatively impact your deployment in AWS.


Explanation: Subnet sizing is crucial as it determines the number of IP addresses that are available for instances. If you run out of IP addresses, you cannot launch more instances in that subnet.

Which of the following is a common CloudFormation error?

  • a) Insufficient permissions
  • b) Stack overflow
  • c) Outdated AMI
  • d) All of the above

Answer: a) Insufficient permissions

Explanation: Insufficient permissions are a common CloudFormation issue. This occurs when the IAM role used to execute the CloudFormation stack does not have adequate permissions.

What does it mean when an EC2 instance is impaired?

  • a) The instance has been terminated.
  • b) The instance is not responding.
  • c) The instance does not have enough memory.
  • d) The instance has reached its service quota.

Answer: b) The instance is not responding.

Explanation: An instance is impaired when it has become unreachable or is not responding. This could be due to operating system issues, network issues, or physical issues with the host.

True or False: IAM policies can affect deployment.


Explanation: IAM policies are what grant the necessary permissions for deployments. Without the proper IAM policies, deployments may fail.

What is the tool used for managing service quotas in AWS?

  • a) AWS Service Quotas
  • b) AWS Quota Manager
  • c) AWS CloudFormation
  • d) AWS IAM

Answer: a) AWS Service Quotas

Explanation: AWS Service Quotas is the service that enables you to view and manage your quotas for AWS services from a central location.

When you exceed an AWS Service quota, what happens?

  • a) Your account is suspended.
  • b) The service is temporarily disabled.
  • c) An exception is thrown.
  • d) The service automatically scales to accommodate.

Answer: c) An exception is thrown.

Explanation: When you exceed a service quota, your request for the resource fails and an exception is returned indicating that the quota has been exceeded.

True or False: One typical cause of a CloudFormation stack failing to delete is due to dependencies that currently exist on resources within the stack.


Explanation: If dependencies currently exist on resources within the CloudFormation stack, it will fail to delete until those dependencies are removed.

What is one approach to resolve subnet sizing issues?

  • a) Eliminate unused resources
  • b) Allocate more IP addresses to the subnet
  • c) Increase the size of the subnet
  • d) All of the above

Answer: d) All of the above

Explanation: All these approaches can be utilized to solve subnet sizing issues. It might involve removing unused resources, allocating more IP addresses, or increasing the subnet size.

True or False: Service quotas and limits cannot be increased for an AWS Service.


Explanation: You can request a quota increase for an AWS service. This is typically done through the AWS Service Quotas console.

True or False: IAM permissions do not have an impact on CloudFormation.


Explanation: IAM permissions can significantly influence the operation of a CloudFormation stack. If the necessary permissions are not available, CloudFormation cannot create or modify resources.

What error will you likely see if you exceed your EC2 instance limit?

  • a) QuotaExceededException
  • b) InstanceLimitExceeded
  • c) OverQuotaException
  • d) OutOfInstanceError

Answer: b) InstanceLimitExceeded

Explanation: AWS throws the ‘InstanceLimitExceeded’ error when you try to launch more instances than allowed by your current EC2 service quota.

True or False: Subnet sizing can be modified after it’s creation.


Explanation: The size of a subnet cannot be changed after a subnet is created. But, you can create a new one with the desired size and then migrate your resources.

How can you prevent CloudFormation errors due to insufficient permissions?

  • a) By utilising comprehensive IAM policies
  • b) By using large EC2 instances
  • c) By increasing service quotas
  • d) You can’t prevent CloudFormation errors.

Answer: a) By utilising comprehensive IAM policies

Explanation: Proper and comprehensive IAM policies ensure entities have the required permissions for the CloudFormation to carry out different tasks.

Interview Questions

What is a service quota in AWS?

A service quota is the limit on the maximum number of resources you can create in your AWS account for a specific AWS service.

How can you request an increase in a specific service quota?

You can request an increase for a specific service quota directly from the AWS Management Console’s “Service Quotas” interface or you can contact AWS support.

What is subnet sizing in AWS?

Subnet sizing refers to the allocation of IP address ranges to a subnet within an AWS VPC. The size of the subnet determines the total number of IP addresses available for use.

What are CloudFormation errors and how can you rectify them?

CloudFormation errors occur when an AWS CloudFormation stack operation fails due to issues like insufficient permissions, resource limits exceeded, or dependencies between resources. To rectify them, you need to troubleshoot the error message, evaluate the underlying issue(s) and then apply the necessary reparative measures.

What type of permissions do AWS Identity and Access Management (IAM) roles provide?

AWS IAM roles provide permissions that determine what actions can be performed, on which resources, and under what conditions by AWS services or users.

How can you monitor CloudFormation for deployment issues?

AWS CloudWatch can be used to monitor CloudFormation and other AWS resources. You can set alarms to notify you if there are any deployment issues.

What should you do if the AWS service you’re using reaches its service quota?

If a service reaches its quota, you can either delete some of the existing resources to free up capacity within the quota, or request AWS to increase the service quota.

What could be the possible reason if an AWS CloudFormation stack fails to create?

This could occur due to a variety of reasons including insufficient permissions, exceeding resource limits, misconfiguration in the CloudFormation template, or dependency issues among resources.

If you are experiencing permissions errors within your AWS deployment, how should you remediate them?

You should review and adjust the IAM roles and policies associated with the user or resource that is experiencing the error. Ensure that the necessary permissions are in place for the operations to be performed.

How can you effectively manage service quotas to avoid deployment issues?

You can use AWS Service Quotas to view and manage your quotas from a central location to maintain awareness of usage and to request quota increases as necessary.

Why is subnet sizing important in AWS?

Proper subnet sizing is crucial to ensure that there are sufficient IP address ranges allocated for your workloads and to avoid any potential disruptions due to lack of available IP addresses.

How can you prevent exceeding your service quotas in AWS?

Regular monitoring and managing your AWS resources effectively based on your business needs can prevent exceeding your AWS service quotas.

How to troubleshoot if you encounter an error while trying to create a subnet that’s too large?

This is often due to reaching a limit in the total number of IP addresses that can be allocated to a VPC. You may need to increase the size of your VPC or create a new VPC to accommodate the larger subnet.

What may be the reasons for CloudFormation stack update or deletion to fail?

Possible reasons may include permissions issues, dependencies between resources, or issues in the stack’s state following previous failed operations.

What is the primary purpose of permissions in AWS?

Permissions in AWS determine the actions that users or AWS services can carry out, the resources they can carry out these actions on and under what conditions. Thus, they offer a way to enforce security and access control within AWS environments.

Leave a Reply

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