Question 71

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?
  • Question 72

    You are creating a database in an Azure Cosmos DB Core (SQL) API account. The database will be used by an application that will provide users with the ability to share online posts. Users will also be able to submit comments on other users' posts.
    You need to store the data shown in the following table.

    The application has the following characteristics:
    Users can submit an unlimited number of posts.
    The average number of posts submitted by a user will be more than 1,000.
    Posts can have an unlimited number of comments from different users.
    The average number of comments per post will be 100, but many posts will exceed 1,000 comments.
    Users will be limited to having a maximum of 20 interests.
    For each of the following statements, select Yes if the statement is true. Otherwise, select No.
    NOTE: Each correct selection is worth one point.

    Question 73

    You need to select the partition key for con-iot1. The solution must meet the IoT telemetry requirements.
    What should you select?
  • Question 74

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    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 a container named container1 in an Azure Cosmos DB Core (SQL) API account.
    You need to make the contents of container1 available as reference data for an Azure Stream Analytics job.
    Solution: You create an Azure function that uses Azure Cosmos DB Core (SQL) API change feed as a trigger and Azure event hub as the output.
    Does this meet the goal?
  • Question 75

    You have a container named container! in an Azure Cosmos DB for NoSQL account.
    You need to provide a user named User1 with the ability to insert items into container1 by using role-based access The solution must use the principle of least privilege.
    Which roles should you assign to User1?