exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 615 discussion

Exam question from Amazon's AWS-SysOps
Question #: 615
Topic #: 1
[All AWS-SysOps Questions]

A company creates custom AMI images by launching new Amazon EC2 instances from an AWS CloudFormation template. It installs and configures necessary software through AWS OpsWorks, and takes images of each EC2 instance. The process of installing and configuring software can take between 2 to 3 hours, but at times, the process stalls due to installation errors.
The SysOps Administrator must modify the CloudFormation template so if the process stalls, the entire stack will fail and roll back.
Based on these requirements, what should be added to the template?

  • A. Conditions with a timeout set to 4 hours.
  • B. CreationPolicy with a timeout set to 4 hours.
  • C. DependsOn with a timeout set to 4 hours.
  • D. Metadata with a timeout set to 4 hours.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
mukeshs
Highly Voted 2 years, 7 months ago
It should be B. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-creationpolicy.html Use the CreationPolicy attribute when you want to wait on resource configuration actions before stack creation proceeds. For example, if you install and configure software applications on an EC2 instance, you might want those applications to be running before proceeding. In such cases, you can add a CreationPolicy attribute to the instance, and then send a success signal to the instance after the applications are installed and configured.
upvoted 16 times
...
albert_kuo
Most Recent 9 months, 3 weeks ago
Selected Answer: B
The CreationPolicy attribute in CloudFormation allows you to specify a timeout period for resource creation. By adding a CreationPolicy with a timeout set to 4 hours, you are setting a maximum time limit for the installation and configuration process to complete.
upvoted 1 times
...
gulu73
1 year, 2 months ago
Selected Answer: B
B Creation Policy
upvoted 1 times
...
Cyril_the_Squirl
2 years, 5 months ago
The correct answer is C. With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html
upvoted 1 times
...
Huy
2 years, 5 months ago
B. https://aws.amazon.com/blogs/devops/use-a-creationpolicy-to-wait-for-on-instance-configurations/
upvoted 1 times
...
RicardoD
2 years, 6 months ago
B is the answer Creation Policy is to be used when you need to wait for a resource to be configured during the stack creation procedures.
upvoted 2 times
...
Chirantan
2 years, 6 months ago
Answerer is B When you provision an Amazon EC2 instance in an AWS CloudFormation stack, you might specify additional actions to configure the instance, such as install software packages or bootstrap applications. Normally, CloudFormation proceeds with stack creation after the instance has been successfully created. However, you can use a CreationPolicy so that CloudFormation proceeds with stack creation only after your configuration actions are done. That way you’ll know your applications are ready to go after stack creation succeeds. A CreationPolicy instructs CloudFormation to wait on an instance until CloudFormation receives the specified number of signals. This policy takes effect only when CloudFormation creates the instance.
upvoted 1 times
...
abhishek_m_86
2 years, 6 months ago
B. CreationPolicy with a timeout set to 4 hours.
upvoted 2 times
...
narender
2 years, 6 months ago
answer: B
upvoted 1 times
...
jackdryan
2 years, 6 months ago
I'll go with B
upvoted 1 times
...
MFDOOM
2 years, 6 months ago
B. CreationPolicy with a timeout set to 4 hours.
upvoted 1 times
...
waterzhong
2 years, 6 months ago
it is B。。。 "AutoScalingGroup": { "Type": "AWS::AutoScaling::AutoScalingGroup", "Properties": { ... }, "CreationPolicy": { "ResourceSignal": { "Count": "3", "Timeout": "PT5M" } } }
upvoted 4 times
Radhaghosh
2 years, 6 months ago
Great explanation. Thank you
upvoted 1 times
...
...
shammous
2 years, 6 months ago
Answer B is correct: https://aws.amazon.com/blogs/devops/use-a-creationpolicy-to-wait-for-on-instance-configurations/
upvoted 1 times
...
shammous
2 years, 6 months ago
Answer B is correct: https://aws.amazon.com/blogs/devops/use-a-creationpolicy-to-wait-for-on-instance-configurations/
upvoted 2 times
...
Jimmy5
2 years, 6 months ago
The answer is B. This question has a timeout period. It can be set in CreationPolicy. The timeout period starts after AWS CloudFormation starts creating the resource, and the timeout expires no sooner than the time you specify but can occur shortly thereafter. The maximum time that you can specify is 12 hours.
upvoted 1 times
...
gretch
2 years, 6 months ago
A AWS CloudFormation creates a wait condition just like any other resource. When AWS CloudFormation creates a wait condition, it reports the wait condition’s status as CREATE_IN_PROGRESS and waits until it receives the requisite number of success signals or the wait condition’s timeout period has expired. If AWS CloudFormation receives the requisite number of success signals before the time out period expires, it continues creating the stack; otherwise, it sets the wait condition’s status to CREATE_FAILED and rolls the stack back.
upvoted 1 times
...
elies_jebri
2 years, 7 months ago
Should be B Always tricky questions but here's a video that explans why CreationPolicy and not a WaitCondition https://www.youtube.com/watch?v=K9TyYZbI--o
upvoted 1 times
elies_jebri
2 years, 7 months ago
reviewing my post : Waitconditions are used for waiting external conditions, in this case the end of OpsWorks to finish configuring the EC2 instance CreationPloicy is for waiting on the dependent resource (and Amazon recommends this one for EC2 and ASG) So since installation of packages is managed by OpsWorks (external to EC2) and not the init script the ANSWER is A
upvoted 1 times
elies_jebri
2 years, 7 months ago
I'm answering my self first answser speaks about conditions not Waitcondition So CreationPolicy is the answer B
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