nerdexam
CompTIA

CV0-004 · Question #328

A cloud engineer tries to deploy five new cloud instances using code. An error occurs, and the instances are not created. The configuration fails to run. The engineer then receives the following…

The correct answer is C. Missing quotations on. In JSON, string values must be enclosed in quotation marks. The value apac is missing quotes, which causes the JSON parser error. It should be "instance_region": "apac".

Troubleshooting

Question

A cloud engineer tries to deploy five new cloud instances using code. An error occurs, and the instances are not created. The configuration fails to run. The engineer then receives the following error message:

ERROR:Parse error on json line x in config Given the following snippet from the config.json file:

{ "instance_count": 5, "ssd_options" : ["100GB","200GB","300GB"], "instance_region": apac, "instance_code": 255, "start_instance" : true } Which of the following oversights created the error in the configuration file?

Options

  • AIncorrect instance_count
  • BIncorrect ssd_options
  • CMissing quotations on
  • DMissing trailing comma on start_instance

How the community answered

(68 responses)
  • A
    3% (2)
  • B
    6% (4)
  • C
    90% (61)
  • D
    1% (1)

Explanation

In JSON, string values must be enclosed in quotation marks. The value apac is missing quotes, which causes the JSON parser error. It should be "instance_region": "apac".

Topics

#JSON syntax#Configuration errors#Troubleshooting#Cloud instance deployment

Community Discussion

No community discussion yet for this question.

Full CV0-004 Practice