exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 5 question 1 discussion

Actual exam question from Microsoft's DP-420
Question #: 1
Topic #: 5
[All DP-420 Questions]

HOTSPOT -
You have the following Azure Resource Manager (ARM) template.

You plan to deploy the template in incremental mode.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
An account is not a resource in this context.
Note: In incremental mode, Resource Manager leaves unchanged resources that exist in the resource group but aren't specified in the template. Resources in the template are added to the resource group.
The Microsoft.DocumentDB databaseAccounts/sqlDatabases/containers resource type can be deployed to: Resource groups.

Box 2: Yes -
A container is a resource.

Box 3: Yes -
When redeploying an existing resource in incremental mode, all properties are reapplied. The properties aren't incrementally added. A common misunderstanding is to think properties that aren't specified in the template are left unchanged. If you don't specify certain properties, Resource Manager interprets the deployment as overwriting those values. Properties that aren't included in the template are reset to the default values. Specify all non-default values for the resource, not just the ones you're updating. The resource definition in the template always contains the final state of the resource. It can't represent a partial update to an existing resource.
Note: In incremental mode, Resource Manager leaves unchanged resources that exist in the resource group but aren't specified in the template. Resources in the template are added to the resource group.
Reference:
https://docs.microsoft.com/en-us/azure/templates/microsoft.documentdb/databaseaccounts/sqldatabases/containers https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-modes#incremental-mode

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
Internal_Koala
Highly Voted 1 year, 7 months ago
NYN Confirming what DudeWheresMyCar said. Here is a source for this: "Note that you can't change the partition key of a container. If you do need to change it, you need to migrate the container data to a new container with the correct key." https://microsoft.github.io/AzureTipsAndTricks/blog/tip335.html
upvoted 18 times
...
DudeWheresMyCar
Highly Voted 1 year, 7 months ago
NYN A partition key cannot be changed on a container. Instead a live migration must take place to a new container. Even if the ARM template tries to change it, it will fail.
upvoted 8 times
...
Bviljoen
Most Recent 6 months, 4 weeks ago
NYN https://devblogs.microsoft.com/cosmosdb/how-to-change-your-partition-key/ Agree as below.
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago