BlackFriday 2024! 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
5 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
5 months ago
I agree with the # symbol is used to indicate comments in YAML.
upvoted 0 times
...
Jina
5 months ago
No, it should be E) #cloud-config to indicate that it's a cloud-config YAML file.
upvoted 0 times
...
Viola
5 months ago
I think the first line should be A) cloud-config:
upvoted 0 times
...
Minna
5 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
5 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
6 months ago
I think those options might work too, but starting with a comment might be more common practice
upvoted 0 times
...
Dylan
6 months ago
But what about options A) cloud-config and B) --- cloud-config?
upvoted 0 times
...
Jacklyn
6 months ago
I agree, starting with a comment indicator makes sense for YAML configuration in cloud-init
upvoted 0 times
...
Ming
6 months ago
I think the first line should be E) #cloud-config
upvoted 0 times
Stefany
5 months ago
A) cloud-config:
upvoted 0 times
...
Jose
6 months ago
B) --- cloud-config
upvoted 0 times
...
Johna
6 months ago
E) #cloud-config
upvoted 0 times
...
...
Ellsworth
7 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
7 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
7 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
7 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
7 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
7 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