exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 106 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 106
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer uses a single AWS CloudFormation template to configure the test environment and the production environment for an application. The developer handles environment-specific requirements in the CloudFormation template.
The developer decides to update the Amazon EC2 Auto Scaling launch template with new Amazon Machine Images (AMIs) for each environment. The
CloudFormation update for the new AMIs is successful in the test environment, but the update fails in the production environment.
What are the possible causes of the CloudFormation update failure in the production environment? (Choose two.)

  • A. The new AMIs do not fulfill the specified conditions in the CloudFormation template.
  • B. The service quota for the number of EC2 vCPUs in the AWS Region has been exceeded.
  • C. The security group that is specified in the CloudFormation template does not exist.
  • D. CloudFormation does not recognize the template change as an update.
  • E. CloudFormation does not have sufficient IAM permissions to make the changes.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sumanshu
1 week, 1 day ago
Selected Answer: AC
B) Eliminated - While it’s possible that hitting a service limit (like EC2 vCPUs) could affect provisioning, this is generally more related to resource availability, not a typical failure during a CloudFormation
upvoted 1 times
sumanshu
1 week ago
A & E - I think C) - Eliminated - Since the developer is simply updating the AMI and not modifying any security group settings, this shouldn't be the reason for failure. The security group would have already been in place and functioning for the EC2 instances running the old AMI
upvoted 1 times
...
...
lozou
5 months, 3 weeks ago
Selected Answer: AB
Condition on template and limitation on vCPU are existing https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html#ec2-on-demand-instances-limits
upvoted 1 times
...
xdkonorek2
1 year ago
Selected Answer: CE
A - not possible, conditions are the same for both environments B - not possible, there is no such a quota C - possible, someone deleted SG outside of template D - not possible, CF should detect this change E - possible, IAM permissions could be edited outside of template
upvoted 2 times
...
sara_exam_topics
1 year, 2 months ago
Selected Answer: AB
As they mentioned, they just upgrading the AMI, if there was an issue with IAM or security, this issue would be present even before upgrading right.
upvoted 1 times
...
AswinDe
1 year, 5 months ago
Selected : CE Coludformation Update stack – Failure reason: 1. Delete stack fails 2. Error parsing parameter when passing a list 3. Insufficient IAM permissions 4. Invalid value or unsupported resource property 5. Resource Quota exceeded 6. Nested stacks are stuck in UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, or UPDATE_ROLLBACK_IN_PROGRESS 7. No updates to perform 8. Resource failed to stabilize during a create, update, or delete stack operation 9. Security group does not exist in VPC 10. Update rollback failed 11. Wait condition didn't receive the required number of signals from an Amazon EC2 instance 12. Resource removed from stack but not deleted
upvoted 3 times
...
pranay_2406
1 year, 7 months ago
Selected Answer: AC
A. The new AMIs do not fulfill the specified conditions in the CloudFormation template: The CloudFormation template may have specific conditions or requirements for the AMIs used in the production environment. If the new AMIs do not meet those conditions, the update may fail. C. The security group that is specified in the CloudFormation template does not exist: If the specified security group does not exist in the production environment, the update that references it will fail.
upvoted 2 times
pranay_2406
1 year, 7 months ago
It's important to note that the other options (B, D, E) are not directly related to the failure of the CloudFormation update for the new AMIs: B. The service quota for the number of EC2 vCPUs in the AWS Region has been exceeded: This quota limitation would impact the ability to launch new EC2 instances, but it wouldn't cause the CloudFormation update to fail specifically due to updating the AMIs. D. CloudFormation does not recognize the template change as an update: If CloudFormation doesn't recognize the template change, it would result in a no-op update rather than a failure.
upvoted 1 times
pranay_2406
1 year, 7 months ago
E. CloudFormation does not have sufficient IAM permissions to make the changes: If CloudFormation lacks sufficient permissions, it would result in an error or insufficient access message, but it wouldn't specifically cause the update to fail for the new AMIs.
upvoted 1 times
...
...
...
Syre
1 year, 8 months ago
Selected Answer: AC
A and C are correct. E is very incorrect E is not a likely cause of the CloudFormation update failure, as the CloudFormation update was successful in the test environment. If CloudFormation did not have sufficient IAM permissions, the update would have failed in both the test and production environments.
upvoted 1 times
...
captainpike
1 year, 9 months ago
A and B IMO this question is based on https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html D is impossible because the update fails, meaning it recognized the change and the update ran. I am going to assume the the stack ran succesfully in the first time it ran (creation). So that C and E could not be since the SG worked in the first time and IAM permissions was OK in the first time.
upvoted 2 times
...
pancman
1 year, 10 months ago
Selected Answer: AB
A and B is correct. For those who are saying A&E: If it was an error due to IAM permissions, the update wouldn't succeed in the test environment either. So E can't be correct.
upvoted 1 times
captainpike
1 year, 9 months ago
Why? Let's say the permisions were granted in the test env and not in prod. Wouldn't that be possible?
upvoted 1 times
captainpike
1 year, 9 months ago
Changing my mind, but not for the reason of "the update wouldn't succeed in the test environment". I think it cannot be E by the fact that the stack ran succesfully in the 1st time (creation) and now this is just an update. So IAM permissions worked fine.
upvoted 1 times
...
...
...
Rups79
1 year, 10 months ago
Selected Answer: AB
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html
upvoted 1 times
...
michele_scar
1 year, 11 months ago
Selected Answer: AE
Excluding B, C and D, the only acceptable are A and E. In B, C and D there are information that aren't mentioned in the questions, so useless for the test.
upvoted 1 times
...
ayoubmk
1 year, 11 months ago
Selected Answer: AB
A and B are more logic for me. Application is already work and we just maded a change so it's dosen't make sense an SG is not available or CF haven't the permissions
upvoted 1 times
...
KT_Yu
1 year, 11 months ago
A and B: for B: Verify that you didn't reach a resource quota. For example, the default maximum number of Amazon EC2 On-Demand instances that you can launch is 5. If try to create more Amazon EC2 On-Demand instances than your account quota, the instance creation fails and you receive the error Status=start_failed. To view the default AWS quotas by service, see AWS service quotas in the AWS General Reference. For AWS CloudFormation quotas and tweaking strategies, see AWS CloudFormation quotas. Also, during an update, if a resource is replaced, AWS CloudFormation creates new resource before it deletes the old one. This replacement might put your account over the resource quota, which would cause your update to fail. You can delete excess resources or request a quota increase. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-limit-exceeded
upvoted 3 times
Phinx
1 year, 11 months ago
This makes sense to me.
upvoted 2 times
...
isshin
1 year, 10 months ago
Usually you have separate accounts for each environment. And quotas are per account per region.
upvoted 1 times
...
...
HieuTT
2 years ago
A E
upvoted 1 times
...
gpit
2 years ago
Selected Answer: CE
A is probable, but B is more
upvoted 1 times
gpit
2 years ago
Sorry, C is more.
upvoted 1 times
...
...
arun00028
2 years, 2 months ago
Selected Answer: AE
A and E
upvoted 2 times
...
habros
2 years, 2 months ago
Selected Answer: AE
A and E. AMIs can only be used on specific region. Either both environments running on different regions, or permissions insufficient. IAM access deny exception is common issue. Easiest way to allow or deny AWS resources to user. So when user does not have permission to run template on production environment, it’s obvious. Security group is more for networking (open ports). If fail means written wrongly.
upvoted 4 times
KT_Yu
1 year, 11 months ago
The question never mention different region for prod and test
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago