Microsoft Certified Azure Fundamentals · Free Practice Question Easy

Question 2

A company has deployed a virtual machine in Azure. While creating the Network Security Group to enable communication with other resources, the following text is entered into the Tags Text box:

Tag :
Name:CrossSiteScript
Value:<script>Alert("CrossSiteScript")</script>

What happens while deploying the NSG?

  • A

    B. Throws error during deployment

  • B

    A. Input Validation has to be enabled on the controls to avoid error

  • C

    D. Input Validation has to be disabled on the controls to avoid error

  • D

    C. Deploys successfully

Reveal correct answer

Correct answer: D

Explanation

Answer: C


  • Options A, B and D are incorrect because input validation on controls is taken care of by Azure.

  • Option C is CORRECT as the input validation is taken care of by Azure, the script that is entered in Tags Text Control does not throw any error, it would be treated as a raw text. Please see the screenshot, which shows the validation result while creating the Network Security Group

    Reference:

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need