exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 51 discussion

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 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 root 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 root 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
ipsingh
Highly Voted 1 year, 5 months ago
C is Correct. B is WRONG because intrinsic functions can't be used in Parameter as per AWS documentation. https://repost.aws/knowledge-center/cloudformation-template-validation
upvoted 14 times
aksliveswithaws
1 year, 1 month ago
You can use intrinsic functions only in specific parts of a template. Currently, you can use intrinsic functions in resource properties, outputs, metadata attributes, and update policy attributes Refer https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html
upvoted 2 times
...
...
seetpt
Most Recent 5 months, 4 weeks ago
Selected Answer: C
C seems right
upvoted 1 times
...
thanhnv142
9 months ago
C is correct: use nested stacks and Fn::ImportValue intrinsic functions with the resources of the nested stack A: no mention of nested stack B and D: Fn::ImportValue intrinsic function is used on child template to import values from parent template. So it should not be used on root template, which is the universal parent tempalte of all other templates
upvoted 4 times
...
madperro
1 year, 4 months ago
Selected Answer: C
C is the best answer. B is wrong as you need to use Fn::ImportValue in Resource section to import CFN template outputs.
upvoted 2 times
...
ducluanxutrieu
1 year, 4 months ago
Selected Answer: C
I will go with C
upvoted 3 times
...
tartarus23
1 year, 4 months ago
Selected Answer: B
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 root template. Use the CreateChangeSet and ExecuteChangeSet commands to update existing development environments. Nested stacks allow you to modularize and reuse CloudFormation code. For this case, this is helpful because you have common infrastructure components that are shared across environments. The Fn::ImportValue function is used to import values that have been exported in another stack. Since the networking team exports the VPC and subnet information, this can be used in the CloudFormation stack to reference those values.
upvoted 2 times
fanq10
1 year, 2 months ago
B is WRONG, you cannot use `TemplateURL` to retrieve Network Stack export values.
upvoted 4 times
...
sb333
1 year, 3 months ago
B is incorrect. One of the reasons is that intrinsic functions are not allowed in the Parameters section. https://repost.aws/knowledge-center/cloudformation-template-validation
upvoted 2 times
...
...
bakamon
1 year, 4 months ago
Selected Answer: C
C is the correct answer
upvoted 2 times
...
lunt
1 year, 5 months ago
Selected Answer: C
C ipsingh is absolutely correct
upvoted 2 times
...
2pk
1 year, 5 months ago
Selected Answer: C
Im 50/50 C or B, but B doesn't provide a clear approach for retrieving the exported values and placing position of Parameters section of the root template, which is not required to place it there, it must declare inside resource. So i think Answer C make sense.
upvoted 2 times
bcx
1 year, 5 months ago
The template URL in B makes it wrong IMHO. You import the values from an exiting template importing the parameter exported by it.
upvoted 1 times
...
...
ParagSanyashiv
1 year, 5 months ago
Selected Answer: C
C makes more sense
upvoted 2 times
...
meisme
1 year, 5 months ago
Selected Answer: C
c is correct
upvoted 2 times
...
haazybanj
1 year, 5 months ago
Selected Answer: B
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 root template. Use the CreateChangeSet and ExecuteChangeSet commands to update existing development environments. This approach is a good fit because it allows the developer to define reusable infrastructure components as nested stacks. To retrieve VPC and subnet values, the intrinsic function Fn::ImportValue is used in the Parameters section of the root template, which retrieves the values from the output of the networking team’s CloudFormation stack. To update existing environments, the CreateChangeSet and ExecuteChangeSet commands are used, which provides a way to easily update the deployed infrastructure. Additionally, the use of nested stacks helps to ensure consistency across environments.
upvoted 1 times
sb333
1 year, 3 months ago
B is incorrect. One of the reasons is that intrinsic functions are not allowed in the Parameters section. https://repost.aws/knowledge-center/cloudformation-template-validation
upvoted 2 times
...
...
herohiro
1 year, 6 months ago
Selected Answer: B
Option B is correct. Using nested stacks, the common infrastructure components can be defined in separate templates that can be referenced by the root template. This allows for easy updates and maintenance of the common components. The networking team’s CloudFormation template can be used to export the VPC and subnet values, which can be referenced in the root template using Fn::ImportValue intrinsic functions in the Parameters section. The CreateChangeSet and ExecuteChangeSet commands can be used to update the existing development environments. Option C is not the best choice because using Fn::ImportValue intrinsic functions with the resources of the nested stack can lead to circular dependencies and make it difficult to manage the infrastructure.
upvoted 2 times
...
alce2020
1 year, 6 months ago
Selected Answer: C
C is correct
upvoted 2 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