BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - 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

Posted by Eileen on Jun 21, 2026 at 07:46 AM

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?

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.


Get Premium NSE7_CDS_AR-7.6 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
15 comments · newest first
GA
Gayla 3 months ago
D sounds complicated for just a comment.
EL
Elke 3 months ago
Plus, YAML conversion seems unnecessary.
EL
Elvera 3 months ago
Right, C is clear for everyone.
GA
Gayla 3 months ago
I feel like option A could work too, but it's not as straightforward.
EL
Elke 3 months ago
Yeah, adding a comment with # is simple.
EL
Elvera 3 months ago
I think option C is the best.
NU
Nu 4 months ago
Converting to YAML isn't necessary for comments, so B is wrong.
SE
Sean 4 months ago
Wait, can you really just use #? That seems too easy!
EI
Eileen 4 months ago
Not sure about that, I thought you needed to update the version first.
TA
Tamra 4 months ago
I think option C is definitely the way to go!
XE
Xenia 4 months ago
You can add comments with the # character in YAML.
IS
Isabella 5 months ago
Updating the AWSTemplateFormatVersion seems unrelated to adding comments, but I could be mistaken about the requirements for comments in templates.
DE
Denny 5 months ago
I feel like the aws cloudformation update-stack command wouldn't allow for comments to be added directly in the template.
DE
Derrick 5 months 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.
DA
Danica 5 months 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.
0/2000 characters

Save Cancel