exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 56 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 56
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A rapidly growing company wants to scale for Developer demand for AWS development environments. Development environments are created manually in the
AWS Management Console. The Networking team uses AWS CloudFormation to manage the networking infrastructure, exporting stack output values for the
Amazon VPC and all subnets. The development environments have common standards, such as Application Load Balancers, Amazon EC2 Auto Scaling groups, security groups, and Amazon DynamoDB tables.
To keep up with the demand, the DevOps Engineer wants to automate the creation of development environments. Because the infrastructure required to support the application is expected to grow, there must be a way to easily update the deployed infrastructure. CloudFormation will be used to create a template for the development environments.
Which approach will meet these requirements and quickly provide consistent AWS environments for Developers?

  • A. Use Fn::ImportValue intrinsic functions in the Resources section of the template to retrieve Virtual Private Cloud (VPC) and subnet values. Use CloudFormation StackSets for the development environments, using the Count input parameter to indicate the number of environments needed. use the UpdateStackSet command to update existing development environments.
  • B. Use nested stacks to define common infrastructure components. To access the exported values, use TemplateURL to reference the Networking team's template. To retrieve Virtual Private Cloud (VPC) and subnet values, use Fn::ImportValue intrinsic functions in the Parameters section of the master template. Use the CreateChangeSet and ExecuteChangeSet commands to update existing development environments.
  • C. Use nested stacks to define common infrastructure components. Use Fn::ImportValue intrinsic functions with the resources of the nested stack to retrieve Virtual Private Cloud (VPC) and subnet values. Use the CreateChangeSet and ExecuteChangeSet commands to update existing development environments.
  • D. Use Fn::ImportValue intrinsic functions in the Parameters section of the master template to retrieve Virtual Private Cloud (VPC) and subnet values. Define the development resources in the order they need to be created in the CloudFormation nested stacks. Use the CreateChangeSet and ExecuteChangeSet commands to update existing development environments.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
HazemYousry
Highly Voted 3 years, 7 months ago
Answer is C B and D wrong because of the "intrinsic functions in the Parameters section" A: what is the use of the count input parameters ? and UpdateChangeSet? you need create and execute
upvoted 32 times
un
3 years, 7 months ago
C is correct. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html
upvoted 5 times
...
...
xlFireman
Highly Voted 3 years, 6 months ago
A - Incorrect since StackSets are not needed here. No mention of multi-region/multi-account deployments (although correct usage of intrinsic functions and refs to resource values) B - If you reference the template URL, you wouldn't need to use the intrinsic function Fn:import. You would reference the output of the template URL function i.e. TemplateName.Outputs.VariableName C - Correct D - You do not use Fn:import within the Parameters section. It is solely used within the Resources section to reference stack outputs within nested stacks or other previously deployed stacks. Ergo, answer is C.
upvoted 14 times
...
okm1997_2
Most Recent 2 years, 2 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
saeidp
2 years, 2 months ago
The only answer that has no issue is A Fn::ImportValue is only used in cross stack reference https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html
upvoted 1 times
saeidp
2 years, 2 months ago
Based on kopper2019 explanation C is correct. Stackset is also wrong in A
upvoted 1 times
...
...
Bulti
2 years, 3 months ago
The correct answer is A. There has been a lot of confusion here because the question is not clear on whether each dev env is created in a different region/ account. However other answers are technically incorrect as per the AWS documentation. B and C are incorrect as fn:ImportValue doesn't work with nested stack and only works with cross-stack references. Answer D is incorrect as fn:ImportValue cannot be used in the Parameter section of a CF template. Therefore through method of elimination the correct answer is A.
upvoted 3 times
kopper2019
2 years, 3 months ago
Option C doesn’t mention importing the values between nested stacks. It mentions importing values in nested stack from VPC stack.
upvoted 3 times
kopper2019
2 years, 3 months ago
So C seems bf right.
upvoted 1 times
...
...
...
vagobago
2 years, 8 months ago
Selected Answer: C
Answer C seems to be the most suitable one. Why A is marked to be the right one - no idea. "CloudFormation StackSets" within the answer - fits to multi-account scenarios - in the question is no word about multi-account
upvoted 4 times
...
Elie777
3 years, 6 months ago
For cross-stack references, use Fn::ImportValue to import a value from another template. For nested stacks, use Fn::Ref and Fn::GetAtt to reference the value in your current template. So It can' be C
upvoted 1 times
...
aws_Tamilan
3 years, 6 months ago
ANs: C
upvoted 1 times
...
rlf
3 years, 6 months ago
A is right with stackset and all others are wrong.
upvoted 3 times
...
jackdryan
3 years, 6 months ago
I'll go with C
upvoted 4 times
...
ChauPhan
3 years, 6 months ago
C is the correct one. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html CF of network exports the VPC, subnet or needed information CF of application imports the above information to its stack and UpdateChangeSet/ ExecuteChangeSet
upvoted 1 times
...
nqobza
3 years, 6 months ago
The correct answer is C.
upvoted 1 times
...
PeppaPig
3 years, 7 months ago
A is the correct answer. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stacksets-concepts-stackset C is definitely wrong, and it's why: Fn::ImportValue is used for cross-stacks reference. i.e. You create a VPC in stack B and export the VPC so another stacks can reference it using Fn::ImportValue. To pass values from nested stack to parent stack, you should use Fn::GetAttr in the parent stack
upvoted 1 times
ChauPhan
3 years, 6 months ago
A might be correct if doesn't have sentence "using the Count input parameter to indicate the number of environments needed", there is not needed. What we need is the VPC ID and subnet from Network CF.
upvoted 1 times
...
demon42
3 years, 6 months ago
Option C says: Use Fn::ImportValue intrinsic functions with the resources of the nested stack to retrieve Virtual Private Cloud (VPC) and subnet values. I believe it means that in the resource blocks inside a nested stack you should use Fn::ImportValue function. Which is correct.
upvoted 2 times
...
...
kawara
3 years, 7 months ago
C is the right answer
upvoted 1 times
...
Ebi
3 years, 7 months ago
C is the answer
upvoted 1 times
...
yassu
3 years, 7 months ago
C is correct
upvoted 1 times
...
toshko85
3 years, 7 months ago
voting for C
upvoted 1 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