πŸ”

AZ-204 β€” questions

Page 6 of 7 Β· 139 total questions.

Topic 4 Β· Question 207 Β· Select all that apply

You are developing a solution that will use a multi-partitioned Azure Cosmos DB database. You plan to use the latest Azure Cosmos DB SDK for development. The solution must meet the following requirements: β€’ Send insert and update operations to an Azure Blob storage account. β€’ Process changes to all partitions immediately. β€’ Allow parallelization of change processing. You need to process the Azure Cosmos DB operations. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • ACreate an Azure App Service API and implement the change feed estimator of the SDK. Scale the API by using multiple Azure App Service instances.
  • BCreate a background job in an Azure Kubernetes Service and implement the change feed feature of the SDK.
  • CCreate an Azure Function to use a trigger for Azure Cosmos DB. Configure the trigger to connect to the container. (correct answer)
  • DCreate an Azure Function that uses a FeedIterator object that processes the change feed by using the pull model on the container. Use a FeedRange object to parallelize the processing of the change feed across multiple functions. (correct answer)
Reveal answer & explanation
Correct answer: C, D

The correct answer is C, D. Option C: Create an Azure Function to use a trigger for Azure Cosmos DB. Configure the trigger to connect to the container. Option D: Create an Azure Function that uses a FeedIterator object that processes the change feed by using the pull model on the container. Use a FeedRange object to parallelize the processing of the change feed across multiple...

Explanation

Azure Cosmos DB is a globally distributed, multi-model NoSQL database with single-digit millisecond latency and automatic scaling.

Topic 4 Β· Question 211

You deploy an Azure App Service web app. You create an app registration for the app in Azure Active Directory (Azure AD) and Twitter. The app must authenticate users and must use SSL for all communications. The app must use Twitter as the identity provider. You need to validate the Azure AD request in the app code. What should you validate?

  • AID token header
  • BID token signature (correct answer)
  • CHTTP response code
  • DTenant ID
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: ID token signature.

Topic 4 Β· Question 212

A development team is creating a new REST API. The API will store data in Azure Blob storage. You plan to deploy the API to Azure App Service. Developers must access the Azure Blob storage account to develop the API for the next two months. The Azure Blob storage account must not be accessible by the developers after the two-month time period. You need to grant developers access to the Azure Blob storage account. What should you do?

  • AGenerate a shared access signature (SAS) for the Azure Blob storage account and provide the SAS to all developers. (correct answer)
  • BCreate and apply a new lifecycle management policy to include a last accessed date value. Apply the policy to the Azure Blob storage account.
  • CProvide all developers with the access key for the Azure Blob storage account. Update the API to include the Coordinated Universal Time (UTC) timestamp for the request header.
  • DGrant all developers access to the Azure Blob storage account by assigning role-based access control (RBAC) roles.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Generate a shared access signature (SAS) for the Azure Blob storage account and provide the SAS to all developers.

Explanation

Azure Blob Storage provides durable, scalable object storage for unstructured data. Azure Blob Storage provides durable, scalable object storage with hot, cool, and archive tiers for cost control. An Azure Storage Account is the container that groups blob, file, queue, and table storage with unified access control.

Topic 4 Β· Question 214 Β· Select all that apply

You have a new Azure subscription. You are developing an internal website for employees to view sensitive data. The website uses Azure Active Directory (Azure AD) for authentication. You need to implement multifactor authentication for the website. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AConfigure the website to use Azure AD B2C.
  • BIn Azure AD, create a new conditional access policy. (correct answer)
  • CUpgrade to Azure AD Premium. (correct answer)
  • DIn Azure AD, enable application proxy.
  • EIn Azure AD conditional access, enable the baseline policy.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: In Azure AD, create a new conditional access policy. Option C: Upgrade to Azure AD Premium.

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access. Conditional Access enforces access policies based on user, device, location, and risk signals.

Topic 4 Β· Question 218

You develop and deploy an Azure App Service web app named App1. You create a new Azure Key Vault named Vault1. You import several API keys, passwords, certificates, and cryptographic keys into Vault1. You need to grant App1 access to Vault1 and automatically rotate credentials. Credentials must not be stored in code. What should you do?

  • AEnable App Service authentication for Appl. Assign a custom RBAC role to Vault1.
  • BAdd a TLS/SSL binding to App1.
  • CUpload a self-signed client certificate to Vault1. Update App1 to use the client certificate.
  • DAssign a managed identity to App1. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Assign a managed identity to App1.

Explanation

A Managed Identity lets Azure resources authenticate to services without storing credentials.

Topic 4 Β· Question 219

You are developing a Java application to be deployed in Azure. The application stores sensitive data in Azure Cosmos DB. You need to configure Always Encrypted to encrypt the sensitive data inside the application. What should you do first?

  • ACreate a new container to include an encryption policy with the JSON properties to be encrypted.
  • BCreate a customer-managed key (CMK) and store the key in a new Azure Key Vault instance. (correct answer)
  • CCreate a data encryption key (DEK) by using the Azure Cosmos DB SDK and store the key in Azure Cosmos DB.
  • DCreate an Azure AD managed identity and assign the identity to a new Azure Key Vault instance.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a customer-managed key (CMK) and store the key in a new Azure Key Vault instance.

Explanation

Azure Key Vault securely stores and manages secrets, keys, and certificates with access policies.

Topic 4 Β· Question 222

You are developing a Microsoft Entra ID integrated app that interacts with Microsoft Graph. You must allow GET operations to receive unknown members that might be defined in the future in Microsoft Graph API. You plan to include support for evolvable enumerations in the app. You need to specify the HTTP request header that will provide the evolvable enumerations support in the app. Which header should you specify?

  • AAccept
  • BContent-Type
  • CIf-Match
  • DPrefer (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Prefer.

Topic 4 Β· Question 223 Β· Select all that apply

Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. When you are ready to answer a question, click the Question button to return to the question. Background - Fourth Coffee is a global coffeehouse chain and coffee company recognized as one of the world’s most influential coffee brands. The company is renowned for its specialty coffee beverages, including a wide range of espresso-based drinks, teas, and other beverages. Fourth Coffee operates thousands of stores worldwide. Current environment - The company is developing cloud-native applications hosted in Azure. Corporate website - The company hosts a public website located at http://www.fourthcoffee.com/. The website is used to place orders as well as view and update inventory items. Inventory items - In addition to its core coffee offerings, Fourth Coffee recently expanded its menu to include inventory items such as lunch items, snacks, and merchandise. Corporate team members constantly update inventory. Users can customize items. Corporate team members configure inventory items and associated images on the website. Orders - Associates in the store serve customized beverages and items to customers. Orders are placed on the website for pickup. The application components process data as follows: 1. Azure Traffic Manager routes a user order request to the corporate website hosted in Azure App Service. 2. Azure Content Delivery Network serves static images and content to the user. 3. The user signs in to the application through a Microsoft Entra ID for customers tenant. 4. Users search for items and place an order on the website as item images are pulled from Azure Blob Storage. 5. Item customizations are placed in an Azure Service Bus queue message. 6. Azure Functions processes item customizations and saves the customized items to Azure Cosmos DB. 7. The website saves order details to Azure SQL Database. 8. SQL Database query results are cached in Azure Cache for Redis to improve performance. The application consists of the following Azure services: Requirements - The application components must meet the following requirements: β€’ Azure Cosmos DB development must use a native API that receives the latest updates and stores data in a document format. β€’ Costs must be minimized for all Azure services. β€’ Developers must test Azure Blob Storage integrations locally before deployment to Azure. Testing must support the latest versions of the Azure Storage APIs. Corporate website - β€’ User authentication and authorization must allow one-time passcode sign-in methods and social identity providers (Google or Facebook). β€’ Static web content must be stored closest to end users to reduce network latency. Inventory items - β€’ Customized items read from Azure Cosmos DB must maximize throughput while ensuring data is accurate for the current user on the website. β€’ Processing of inventory item updates must automatically scale and enable updates across an entire Azure Cosmos DB container. β€’ Inventory items must be processed in the order they were placed in the queue. β€’ Inventory item images must be stored as JPEG files in their native format to include exchangeable image file format (data) stored with the blob data upon upload of the image file. β€’ The Inventory Items API must securely access the Azure Cosmos DB data. Orders - β€’ Orders must receive inventory item changes automatically after inventory items are updated or saved. Issues - β€’ Developers are storing the Azure Cosmos DB credentials in an insecure clear text manner within the Inventory Items API code. β€’ Production Azure Cache for Redis maintenance has negatively affected application performance. You need to securely access inventory items when developing the Inventory Items API. What are three possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Exhibit 1 for question 223
  • ACreate a SQL role definition under the Azure Cosmos DB account. Create a user-assigned managed identity and assign the identity to the function app. Assign the user assigned managed identity the SQL role definition. Update the function app code to implement the DefaultAzureCredential class and reference the user-assigned managed identity. (correct answer)
  • BCreate a SQL role definition under the Azure Cosmas DB account. Assign the role to the function apps system-assigned managed identity. Programmatically access the Azure Cosmos DB keys from the function app. (correct answer)
  • CCreate a custom Microsoft Entra role. Assign the custom roe to the Azure Cosmos DB account Update the function app to use certificate-based authentication.
  • DCreate a custom Microsoft Entra role. Assign the custom role to Azure Key Vault. Assign the custom role to the function app. Reference the custom role in the function app code when accessing Azure Key Vault values.
  • ECreate a system-assigned managed ident for the function app with read access to secrets in Azure Key Vault. Store the Azure Cosmos DB primary key and UR in Azure Key Vaults secrets. Use function app settings to reference the secret values. (correct answer)
Reveal answer & explanation
Correct answer: A, B, E

The correct answer is A, B, E. Option A: Create a SQL role definition under the Azure Cosmos DB account. Create a user-assigned managed identity and assign the identity to the function app. Assign the user assigned managed identity the SQL role definition. U... Option B: Create a SQL role definition under the Azure Cosmas DB account. Assign the role to the function apps system-assigned managed identity. Programmatically access the Azure Cosmos DB keys from the function app. Option E: Create a system-assigned managed ident for the function app with read access to secrets in Azure Key Vault. Store the Azure Cosmos DB primary key and UR in Azure Key Vaults secrets. Use function app settings to refere...

Explanation

Azure Cosmos DB is a globally distributed, multi-model NoSQL database with single-digit millisecond latency and automatic scaling. A Managed Identity lets Azure resources authenticate to services without storing credentials. Azure Key Vault securely stores and manages secrets, keys, and certificates with access policies.

Topic 4 Β· Question 224

You manage an Azure Key Vault named kv1 of Standard SKU. You plan to programmatically store in kv1 an asymmetric key pair and use the key pair for encryption and decryption. You must develop an application named app1 that will access the key pair in kv1. You need to configure an object to retrieve a key pair from kv1. Which object should you use?

  • ASecretClient
  • BKeyVaultSettingsClient
  • CCertificateClient
  • DKeyClient (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: KeyClient.

Topic 4 Β· Question 225

You have 100 Azure virtual machines (VMs) with the system-assigned managed identity enabled. You need to identify the value of the object ID attribute for each of the identities. Which command should you use?

  • Aaz ad sp credential list
  • BGet-AzVM
  • CGet-AzureADUser
  • Daz resource show (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: az resource show.

Topic 6 Β· Question 226

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 are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data. Solution: Provision an Azure Event Grid. Configure event filtering to evaluate the device identifier. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 6 Β· Question 229

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 are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data. Solution: Provision an Azure Event Hub. Configure the machine identifier as the partition key and enable capture. Does the solution meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 6 Β· Question 231

You are creating an app that will use CosmosDB for data storage. The app will process batches of relational data. You need to select an API for the app. Which API should you use?

  • AMongoDB API
  • BTable API
  • CSQL API (correct answer)
  • DCassandra API
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: SQL API.

Topic 6 Β· Question 232

A company is developing a solution that allows smart refrigerators to send temperature information to a central location. The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location. You need to complete the configuration. Which Azure CLI or PowerShell command should you run?

  • A
  • B
  • C
  • D (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D.

Topic 6 Β· Question 235

You are developing several Azure API Management (APIM) hosted APIs. You must make several minor and non-breaking changes to one of the APIs. The API changes include the following requirements: β€’ Must not disrupt callers of the API. β€’ Enable roll back if you find issues. β€’ Documented to enable developers to understand what is new. β€’ Tested before publishing. You need to update the API. What should you do?

  • AConfigure and apply header-based versioning.
  • BCreate and publish a product.
  • CConfigure and apply a custom policy.
  • DAdd a new revision to the API. (correct answer)
  • EConfigure and apply query string-based versioning.
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Add a new revision to the API.

Topic 10 Β· Question 237

You need to grant access to the retail store location data for the inventory service development effort. What should you use?

  • AAzure AD access token
  • BAzure RBAC role
  • CShared access signature (SAS) token (correct answer)
  • DAzure AD ID token
  • EAzure AD refresh token
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Shared access signature (SAS) token.

Topic 10 Β· Question 239 Β· Select all that apply

You need to secure the Azure Functions to meet the security requirements. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AStore the RSA-HSM key in Azure Key Vault with soft-delete and purge-protection features enabled. (correct answer)
  • BStore the RSA-HSM key in Azure Blob storage with an immutability policy applied to the container.
  • CCreate a free tier Azure App Configuration instance with a new Azure AD service principal.
  • DCreate a standard tier Azure App Configuration instance with an assigned Azure AD managed identity. (correct answer)
  • EStore the RSA-HSM key in Azure Cosmos DB. Apply the built-in policies for customer-managed keys and allowed locations.
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Store the RSA-HSM key in Azure Key Vault with soft-delete and purge-protection features enabled. Option D: Create a standard tier Azure App Configuration instance with an assigned Azure AD managed identity.

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access. A Managed Identity lets Azure resources authenticate to services without storing credentials. Azure Key Vault securely stores and manages secrets, keys, and certificates with access policies.

Topic 12 Β· Question 246

You need to secure the Shipping Logic App. What should you use?

  • AAzure App Service Environment (ASE)
  • BIntegration Service Environment (ISE) (correct answer)
  • CVNet service endpoint
  • DAzure AD B2B integration
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Integration Service Environment (ISE).

Topic 13 Β· Question 250 Β· Select all that apply

You need to authenticate the user to the corporate website as indicated by the architectural diagram. Which two values should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AID token signature (correct answer)
  • BID token claims
  • CHTTP response code
  • DAzure AD endpoint URI (correct answer)
  • EAzure AD tenant ID
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: ID token signature Option D: Azure AD endpoint URI

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access.

Topic 14 Β· Question 254

You need to ensure the security policies are met. What code do you add at line CS07 of ConfigureSSE.ps1?

  • A""PermissionsToKeys create, encrypt, decrypt
  • B""PermissionsToCertificates create, encrypt, decrypt
  • C""PermissionsToCertificates wrapkey, unwrapkey, get
  • D""PermissionsToKeys wrapkey, unwrapkey, get (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: ""PermissionsToKeys wrapkey, unwrapkey, get.

Showing questions 101–120 of 139 Β· Page 6 of 7