Exam Details

  • Exam Code
    :DP-420
  • Exam Name
    :Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB
  • Certification
    :Microsoft Certified: Azure Cosmos DB Developer Specialty
  • Vendor
    :Microsoft
  • Total Questions
    :117 Q&As
  • Last Updated
    :Apr 18, 2024

Microsoft Microsoft Certified: Azure Cosmos DB Developer Specialty DP-420 Questions & Answers

  • Question 21:

    After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

    You have an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput.

    You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value.

    Solution: You configure an application to use the change feed processor to read the change feed and you configure the application to trigger the function.

    Does this meet the goal?

    A. Yes

    B. No

  • Question 22:

    You have an Azure Cosmos DB Core (SQL) API account that uses a custom conflict resolution policy. The account has a registered merge procedure that throws a runtime exception.

    The runtime exception prevents conflicts from being resolved.

    You need to use an Azure function to resolve the conflicts.

    What should you use?

    A. a function that pulls items from the conflicts feed and is triggered by a timer trigger

    B. a function that receives items pushed from the change feed and is triggered by an Azure Cosmos DB trigger

    C. a function that pulls items from the change feed and is triggered by a timer trigger

    D. a function that receives items pushed from the conflicts feed and is triggered by an Azure Cosmos DB trigger

  • Question 23:

    You have the following query.

    SELECT * FROM с WHERE c.sensor = "TEMP1" AND c.value < 22 AND c.timestamp >= 1619146031231

    You need to recommend a composite index strategy that will minimize the request units (RUs) consumed by the query.

    What should you recommend?

    A. a composite index for (sensor ASC, value ASC) and a composite index for (sensor ASC, timestamp ASC)

    B. a composite index for (sensor ASC, value ASC, timestamp ASC) and a composite index for (sensor DESC, value DESC, timestamp DESC)

    C. a composite index for (value ASC, sensor ASC) and a composite index for (timestamp ASC, sensor ASC)

    D. a composite index for (sensor ASC, value ASC, timestamp ASC)

  • Question 24:

    You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. Upserts of items in container1 occur every three seconds.

    You have an Azure Functions app named function1 that is supposed to run whenever items are inserted or replaced in container1.

    You discover that function1 runs, but not on every upsert.

    You need to ensure that function1 processes each upsert within one second of the upsert.

    Which property should you change in the Function.json file of function1?

    A. checkpointInterval

    B. leaseCollectionsThroughput

    C. maxItemsPerInvocation

    D. feedPollDelay

  • Question 25:

    You are implementing an Azure Data Factory data flow that will use an Azure Cosmos DB (SQL API) sink to write a dataset. The data flow will use 2,000 Apache Spark partitions. You need to ensure that the ingestion from each Spark partition is balanced to optimize throughput.

    Which sink setting should you configure?

    A. Throughput

    B. Write throughput budget

    C. Batch size

    D. Collection action

  • Question 26:

    You plan to create an Azure Cosmos DB Core (SQL) API account that will use customer-managed keys stored in Azure Key Vault.

    You need to configure an access policy in Key Vault to allow Azure Cosmos DB access to the keys.

    Which three permissions should you enable in the access policy? Each correct answer presents part of the solution.

    NOTE: Each correct selection is worth one point.

    A. Wrap Key

    B. Get

    C. List

    D. Update

    E. Sign

    F. Verify

    G. Unwrap Key

  • Question 27:

    You have an Azure Cosmos DB Core (SQL) API account that is used by 10 web apps.

    You need to analyze the data stored in the account by using Apache Spark to create machine learning models. The solution must NOT affect the performance of the web apps.

    Which two actions should you perform? Each correct answer presents part of the solution.

    NOTE: Each correct selection is worth one point.

    A. In an Apache Spark pool in Azure Synapse, create a table that uses cosmos.olapas the data source.

    B. Create a private endpoint connection to the account.

    C. In an Azure Synapse Analytics serverless SQL pool, create a view that uses OPENROWSETand the CosmosDB provider.

    D. Enable Azure Synapse Link for the account and Analytical store on the container.

    E. In an Apache Spark pool in Azure Synapse, create a table that uses cosmos.oltpas the data source.

  • Question 28:

    You have a database in an Azure Cosmos DB Core (SQL) API account. The database is backed up every two hours.

    You need to implement a solution that supports point-in-time restore.

    What should you do first?

    A. Enable Continuous Backup for the account.

    B. Configure the Backup and Restore settings for the account.

    C. Create a new account that has a periodic backup policy.

    D. Configure the Point In Time Restore settings for the account.

  • Question 29:

    You have a database in an Azure Cosmos DB Core (SQL) API account.

    You need to create an Azure function that will access the database to retrieve records based on a variable named accountnumber. The solution must protect against SQL injection attacks.

    How should you define the command statement in the function?

    A. cmd = "SELECT * FROM Persons pWHERE p.accountnumber = 'accountnumber'"

    B. cmd = "SELECT * FROM Persons pWHERE p.accountnumber = LIKE @accountnumber"

    C. cmd = "SELECT * FROM Persons pWHERE p.accountnumber = @accountnumber"

    D. cmd = "SELECT * FROM Persons pWHERE p.accountnumber = '" + accountnumber + "'"

  • Question 30:

    You need to configure an Apache Kafka instance to ingest data from an Azure Cosmos DB Core (SQL) API account. The data from a container named telemetry must be added to a Kafka topic named iot. The solution must store the data in a

    compact binary format.

    Which three configuration items should you include in the solution? Each correct answer presents part of the solution.

    NOTE: Each correct selection is worth one point.

    A. "connector.class": "com.azure.cosmos.kafka.connect.source.CosmosDBSourceConnector"

    B. "key.converter": "org.apache.kafka.connect.json.JsonConverter"

    C. "key.converter": "io.confluent.connect.avro.AvroConverter"

    D. "connect.cosmos.containers.topicmap": "iot#telemetry"

    E. "connect.cosmos.containers.topicmap": "iot"

    F. "connector.class": "com.azure.cosmos.kafka.connect.source.CosmosDBSinkConnector"

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DP-420 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.