AZ-400 Question 43
Single answerYour team maintains an Azure DevOps Wiki and wants to document a new release workflow with a flowchart. They decide to use Mermaid syntax so the diagram is rendered automatically on the Wiki page. How should they embed the flowchart in the Markdown page?
- A
Wrap the Mermaid code in triple backticks specifying 'mermaid' at the start and then include the flowchart syntax within those backticks.
- B
Upload the Mermaid (.mmd) file as an attachment to the Wiki, then reference the file name in an tag within Markdown.
- C
Create a sequenceDiagram block with only single backticks around both the Mermaid keyword and the flowchart syntax.
- D
Use an HTML
tag to wrap the diagram code, then reference it in the Wiki with a [!Mermaid] directive.
Show answer and explanation
Correct answer: A
Explanation
In Azure DevOps Wikis, Mermaid diagrams are rendered by enclosing your Mermaid code block in triple backticks. You specify 'mermaid' right after the opening backticks, and then include the appropriate flowchart, sequenceDiagram, or other Mermaid syntax. Refer to the official documentation for more details: https://learn.microsoft.com/azure/devops/project/wiki/markdown-guidance#mermaid-diagrams.
- A. Correct.
Correct: Azure DevOps Wikis render Mermaid diagrams by wrapping them in triple backticks along with the 'mermaid' keyword. For example: ``` mermaid flowchart TB A-->B
- B. Incorrect.
Incorrect: Simply uploading a .mmd file and linking it as an image won't render the Mermaid code. Azure DevOps does not automatically render attached Mermaid files as diagrams.
- C. Incorrect.
Incorrect: Mermaid syntax requires triple backticks with 'mermaid'. Using single backticks does not enable the diagram rendering, and sequenceDiagram is just one type of diagram within Mermaid, not a requirement for embedding in Markdown.
- D. Incorrect.
Incorrect: Azure DevOps Wikis do not support
HTML tags for rendering Mermaid syntax. The recognized approach is the Markdown code fence (triple backticks) with the 'mermaid' keyword.