New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 701-100 Topic 12 Question 62 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 62
Topic #: 12
[All 701-100 Questions]

What must be the first line of a plain text user-data configuration containing YAML configuration for cloud-init?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Tresa
6 months ago
I believe it should be B) --- cloud-config because the three dashes indicate the start of a new document.
upvoted 0 times
...
Evangelina
6 months ago
I agree with the # symbol is used to indicate comments in YAML.
upvoted 0 times
...
Jina
6 months ago
No, it should be E) #cloud-config to indicate that it's a cloud-config YAML file.
upvoted 0 times
...
Viola
6 months ago
I think the first line should be A) cloud-config:
upvoted 0 times
...
Minna
6 months ago
I'm going to go with option E) #cloud-config for the first line, seems like the safest choice
upvoted 0 times
...
Josefa
6 months ago
I believe starting with a comment is the most clear and standard way to begin a YAML configuration for cloud-init
upvoted 0 times
...
Carmen
7 months ago
I think those options might work too, but starting with a comment might be more common practice
upvoted 0 times
...
Dylan
7 months ago
But what about options A) cloud-config and B) --- cloud-config?
upvoted 0 times
...
Jacklyn
7 months ago
I agree, starting with a comment indicator makes sense for YAML configuration in cloud-init
upvoted 0 times
...
Ming
7 months ago
I think the first line should be E) #cloud-config
upvoted 0 times
Stefany
7 months ago
A) cloud-config:
upvoted 0 times
...
Jose
7 months ago
B) --- cloud-config
upvoted 0 times
...
Johna
7 months ago
E) #cloud-config
upvoted 0 times
...
...
Ellsworth
8 months ago
You make a good point, Joye. I could see that working as well. Cloud-init might be flexible enough to accept either of those.
upvoted 0 times
...
Joye
8 months ago
Hmm, I'm not so sure. Option B with the '--- cloud-config' looks like it might be valid too. That's the YAML document separator, right?
upvoted 0 times
...
Barrett
8 months ago
Yep, I was thinking the same thing. That's the syntax I've seen used in all the examples and documentation I've come across.
upvoted 0 times
...
Elvera
8 months ago
I think option E is the correct answer. '#cloud-config' is the standard way to start a cloud-init configuration file.
upvoted 0 times
...
Chantay
8 months ago
Yeah, I agree. It's important to get the first line right, as that sets the tone for the whole configuration.
upvoted 0 times
...
Rasheeda
8 months ago
Hmm, this question seems like it's testing our knowledge of cloud-init configuration syntax. I wonder if they're trying to catch us out with some tricky options.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77