Question 18 — AZ-104 Practice Exam 5
Identify the accurate statements about Azure Policy definition elements. (Select two answers)
Resource Provider modes like Microsoft.Kubernetes.Data are limited to built-in policies.
Parameters can constrain assignment choices by specifying allowedValues.
The metadata object supports only version and category properties.
The utcNow() function in policy rules is allowed only within defaultValue.
Built-in definitions cannot host multiple versions under the same definitionId.
Correct answers
Resource Provider modes like Microsoft.Kubernetes.Data are limited to built-in policies.
Parameters can constrain assignment choices by specifying allowedValues.
Explanations
Correct:
Resource Provider modes like Microsoft.Kubernetes.Data are limited to built-in policies. The text specifies RP modes are limited to Built-in policies (fully supported or preview).
Parameters can constrain assignment choices by specifying allowedValues. Parameter definitions support allowedValues to limit what can be selected at assignment time.
Wrong:
The metadata object supports only version and category properties. Metadata may also include preview, deprecated, and portalReview, among others.
The utcNow() function in policy rules is allowed only within defaultValue. In Azure Policy (unlike ARM templates), utcNow() can be used outside defaultValue and returns an ISO 8601 string.
Built-in definitions cannot host multiple versions under the same definitionId. Built-in policies can host multiple versions; if no version is specified, the latest is shown.