You have an Azure Cosmos DB for NoSQL account named account1.
You need to create a container named Container1 in account1 by using the Azure Cosmos DB .NET SDK. The solution must ensure that the items in Container1 never expire.
When creating a container de DefaultTimeToLive has to be set to -1 for items to never expire. Overrides are not specified in this question and even if they were, this prop cannot be null, because the SDK is expecting a non-nullable integer.
To create a container named Container1 in account1 using the Azure Cosmos DB .NET SDK and ensure that the items in Container1 never expire, you should configure the DefaultTimeToLive property. Setting the DefaultTimeToLive to -1 ensures that items never expire.
Apologies, the correct choice is option C, setting DefaultTimeToLive to null. This ensures that items in Container1 will never expire.
If you set DefaultTimeToLive to null (option C), the container items will never expire, regardless of any TTL set for individual items.
Option D, setting DefaultTimeToLive to -1, is incorrect because it would prevent the container TTL from expiring, but if you set a TTL for individual items, those items would still expire based on their TTL value.
For more details, please refer to Example 1 and Example 2 in the following link: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/time-to-live
Apologies, the correct choice is option C, setting DefaultTimeToLive to null. This ensures that items in Container1 will never expire.
If you set DefaultTimeToLive to null (option C), the container items will never expire, regardless of any TTL set for individual items.
Option B, setting DefaultTimeToLive to -1, is incorrect because it would prevent the container TTL from expiring, but if you set a TTL for individual items, those items would still expire based on their TTL value.
For more details, please refer to Example 1 and Example 2 in the following link: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/time-to-live
TimeToLivePropertyPath specifies a path within the JSON document that indicates the expiration time. Setting it to null disables time-to-live (TTL) for individual items, while setting it to 0 would immediately expire the items. Both options are not suitable for ensuring items never expire.
DefaultTimeToLive sets the default expiration time for all items in the container. Setting it to -1 signifies that the items will never expire. This is the desired behavior for this scenario.
Apologies, the correct choice is option C, setting DefaultTimeToLive to null. This ensures that items in Container1 will never expire.
If you set DefaultTimeToLive to null (option C), the container items will never expire, regardless of any TTL set for individual items.
Option D, setting DefaultTimeToLive to -1, is incorrect because it would prevent the container TTL from expiring, but if you set a TTL for individual items, those items would still expire based on their TTL value.
For more details, please refer to Example 1 and Example 2 in the following link: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/time-to-live
Apologies, the correct choice is option C, setting DefaultTimeToLive to null. This ensures that items in Container1 will never expire.
If you set DefaultTimeToLive to null (option C), the container items will never expire, regardless of any TTL set for individual items.
Option B, setting DefaultTimeToLive to -1, is incorrect because it would prevent the container TTL from expiring, but if you set a TTL for individual items, those items would still expire based on their TTL value.
For more details, please refer to Example 1 and Example 2 in the following link: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/time-to-live
This section is not available anymore. Please use the main Exam Page.DP-420 Exam Questions
Log in to ExamTopics
Sign in:
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.
bcd_6
Highly Voted 1 year, 6 months agoxRiot007
1 year, 5 months agoxRiot007
1 year, 5 months agoxRiot007
1 year, 5 months agoBlubb1860
Highly Voted 1 year, 5 months agoExamdumps2023
Most Recent 11 months, 2 weeks agoBartus007
1 year, 2 months ago[Removed]
1 year, 3 months ago[Removed]
1 year, 3 months ago[Removed]
1 year, 3 months ago[Removed]
1 year, 3 months ago[Removed]
1 year, 3 months agoSwePha
1 year, 6 months ago