Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Fortinet NSE7_CDS_AR-7.6 Exam - Topic 1 Question 13 Discussion

Refer to the exhibit.A senior administrator in a multinational organization needs to include a comment in the template shown in the exhibit to ensure that administrators from other regions change the Amazon Machine Image (AMI) ID to one that is valid in their location.How can the administrator add the required comment in that section of the file?
B) The administrator must convert the template file to YAML format to add a comment.
A) The administrator can include the comment with the aws cloudformation update-stack command.
C) The administrator can add the comment starting with the # character next to the 'Resources' section.
D) The administrator must update the AWSTemplateFormatVersion to the latest version.

Fortinet NSE7_CDS_AR-7.6 Exam - Topic 1 Question 13 Discussion

Actual exam question for Fortinet's NSE7_CDS_AR-7.6 exam
Question #: 13
Topic #: 1
[All NSE7_CDS_AR-7.6 Questions]

Refer to the exhibit.

A senior administrator in a multinational organization needs to include a comment in the template shown in the exhibit to ensure that administrators from other regions change the Amazon Machine Image (AMI) ID to one that is valid in their location.

How can the administrator add the required comment in that section of the file?

Show Suggested Answer Hide Answer
Suggested Answer: B

According to the FortiOS 7.6 AWS Administration Guide and the Fortinet 7.4 Public Cloud Security study materials regarding infrastructure as code (IaC) for cloud deployments:

JSON Format Limitations (Option B): The exhibit shows an AWS CloudFormation template in JSON (JavaScript Object Notation) format. JSON, by its official specification, does not support comments. There is no native syntax (like // or /* */) to include remarks that are ignored by the CloudFormation parser.

YAML Support: To add descriptive comments---such as instructing other regional administrators to update the AMI ID---the administrator must convert the template into YAML format. YAML is a superset of JSON and specifically supports comments using the # character.

Best Practice for Multinational Deployments: For organizations operating across multiple AWS regions, using YAML is the recommended standard because it allows for inline documentation, making templates more maintainable and easier for different teams to understand regional requirements.

Why other options are incorrect:

Option A: Comments are part of the template file itself, not a parameter or flag within the aws cloudformation update-stack CLI command.

Option C: While # is the correct character for comments in YAML, it is invalid syntax in JSON and would cause the CloudFormation stack creation to fail with a parsing error.

Option D: The AWSTemplateFormatVersion '2010-09-09' is currently the only valid version for CloudFormation templates; updating it does not add JSON comment support.


Contribute your Thoughts:

0/2000 characters
Isabella
3 hours ago
Updating the AWSTemplateFormatVersion seems unrelated to adding comments, but I could be mistaken about the requirements for comments in templates.
upvoted 0 times
...
Denny
5 days ago
I feel like the aws cloudformation update-stack command wouldn't allow for comments to be added directly in the template.
upvoted 0 times
...
Derrick
10 days ago
I remember a practice question where we had to update a CloudFormation template, and I think converting to YAML was mentioned, but I don't see why it would be necessary here.
upvoted 0 times
...
Danica
16 days ago
I think adding a comment with the # character is the right way, but I'm not completely sure if it applies to JSON format too.
upvoted 0 times
...

Save Cancel