SOA-C02 Question 145
Single answerYou are deploying an application using AWS CloudFormation, but the stack creation fails with an error stating 'The requested subnet does not have sufficient IP address capacity to satisfy the request.' How can you identify and remediate this issue?
- A
Check the subnet's CIDR block and ensure that it has enough available IP addresses.
- B
Increase the size of the subnet's CIDR block by modifying it in the VPC configuration.
- C
Update the CloudFormation template to deploy resources into a different subnet with sufficient address capacity.
- D
Manually allocate additional IP addresses to the existing subnet.
Show answer and explanation
Correct answer: A
Explanation
The error indicates that the subnet does not have enough remaining IP addresses to allocate for the requested resources. The first step in resolving this is to verify the subnet's CIDR block and its available IP addresses. If the subnet is indeed full, you may need to create a new subnet with a larger CIDR block or modify your deployment to use a different subnet.
- A. Correct.
Correct: Checking the subnet's CIDR block and ensuring it has enough available IP addresses is the first step to identify if the subnet's capacity is the issue.
- B. Incorrect.
Incorrect: Subnet CIDR blocks are immutable after creation. You cannot increase the size of the CIDR block for an existing subnet.
- C. Incorrect.
Incorrect: While deploying resources into a different subnet with sufficient capacity could work as a workaround, this doesn't directly address the issue with the current subnet.
- D. Incorrect.
Incorrect: You cannot manually allocate additional IP addresses to a subnet. IP addresses are automatically assigned based on the subnet's CIDR block.