exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 27 discussion

Actual exam question from Microsoft's AZ-400
Question #: 27
Topic #: 9
[All AZ-400 Questions]

You have an Azure subscription.

You create two Bicep templates named Template1 and Template2 that will be used to create a virtual machine and a website.

You need to create a template named Template3 that will reuse logic from Template1 and Template2.

What should you define first?

  • A. outputs
  • B. resources
  • C. modules
  • D. parameters
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mousavi
4 weeks, 1 day ago
Selected Answer: C
In Bicep, modules are used to reuse logic from other Bicep templates. If you already have Template1.bicep and Template2.bicep (for a virtual machine and a website), and you want to create a new Template3.bicep that reuses those, you do that by referencing them as modules.
upvoted 1 times
...
p2006
9 months, 2 weeks ago
Selected Answer: C
https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/modules
upvoted 1 times
...
Mattt
10 months ago
Selected Answer: C
Just like Terraform we should define modules to make the code reusable
upvoted 1 times
...
uncledana
11 months, 2 weeks ago
C is answer
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...