SOA-C02 Question 147
Select 2You are deploying an application using AWS CloudFormation in a VPC with multiple subnets. The deployment fails with the error: 'CREATE_FAILED: The specified subnet does not have enough IP address capacity to create new resources.' What steps can you take to resolve the issue?
- A
Increase the subnet size by modifying the VPC and expanding the CIDR block.
- B
Delete unused resources in the subnet to free up IP addresses.
- C
Create a new subnet with a larger CIDR block and update the CloudFormation template to use this new subnet.
- D
Increase the Service Quota for Elastic IP addresses.
- E
Modify the CloudFormation template to use a different availability zone.
Show answer and explanation
Correct answers: B, C
Explanation
The error indicates that the specified subnet does not have enough IP address capacity to create new resources. To resolve this, you can either free up IP addresses in the existing subnet by deleting unused resources or create a new subnet with a larger CIDR block and update the CloudFormation template to use it. Expanding a VPC's CIDR block does not directly solve the issue for an existing subnet, and increasing Service Quotas or changing availability zones are unrelated to the problem.
- A. Incorrect.
You cannot directly increase a subnet's size after it has been created. However, you can expand the VPC's CIDR block and create new subnets, but this does not resolve the current issue with the existing subnet.
- B. Correct.
Deleting unused resources in the subnet can free up IP addresses, allowing the CloudFormation deployment to proceed successfully.
- C. Correct.
Creating a new subnet with a larger CIDR block and updating the CloudFormation template to use the new subnet is a valid solution as it provides the needed IP capacity.
- D. Incorrect.
Increasing the Service Quota for Elastic IP addresses is unrelated to the issue of subnet IP capacity and would not resolve the error.
- E. Incorrect.
Changing the availability zone in the CloudFormation template does not address the root cause of the issue, which is insufficient IP address capacity.