SOA-C02 Question 146
Select 2An application stack is being deployed using AWS CloudFormation. The stack creation consistently fails with the error message: CREATE_FAILED, AWS::EC2::Instance, MyInstance, The requested instance type exceeds your account's On-Demand instance limit. What steps should you take to resolve this issue?
- A
Check the AWS Service Quotas to confirm the On-Demand instance limit for your account.
- B
Increase the On-Demand instance limit using the Service Quotas console or AWS Support Center.
- C
Modify the CloudFormation template to use a different instance type.
- D
Deploy the stack in a different AWS Region with higher instance limits.
- E
Add a DependsOn attribute in the CloudFormation template to delay instance creation.
Show answer and explanation
Correct answers: A, B
Explanation
The error message indicates that the On-Demand instance limit for the account has been exceeded. To resolve this, you must first verify the current service quota for On-Demand instances and then request an increase if needed. Modifying the template, switching regions, or adjusting the order of resource creation will not address the quota issue.
- A. Correct.
Correct. The error indicates that the limit for On-Demand instances has been reached. Verifying the current quota is the first step to identifying this issue.
- B. Correct.
Correct. If the quota is insufficient, you can request an increase to resolve the issue.
- C. Incorrect.
Incorrect. Modifying the instance type does not address the underlying quota issue. The error is related to limits, not the instance type itself.
- D. Incorrect.
Incorrect. Instance limits are specific to an account in a region. Simply switching regions does not guarantee higher limits, and it does not address the core issue.
- E. Incorrect.
Incorrect. The DependsOn attribute controls the order of resource creation but does not resolve quota-related failures.