Expert Veri Ed, Online, Free.: Topic 1 - Question Set 1
Expert Veri Ed, Online, Free.: Topic 1 - Question Set 1
Expert Veri Ed, Online, Free.: Topic 1 - Question Set 1
HOTSPOT -
You are implementing a software as a service (SaaS) ASP.NET Core web service that will run as an Azure Web App. The web service will use an on-
premises
SQL Server database for storage. The web service also includes a WebJob that processes data updates. Four customers will use the web service.
✑ Each instance of the WebJob processes data for a single customer and must run as a singleton instance.
✑ Each deployment must be tested by using deployment slots prior to serving production data.
You need to configure the App Service plan for the Web App.
How should you configure the App Service plan? To answer, select the appropriate settings in the answer area.
Hot Area:
Correct Answer:
Number of VM instances: 4 -
The App Service Environment (ASE) is a powerful feature offering of the Azure App Service that gives network isolation and improved scale
capabilities. It is essentially a deployment of the Azure App Service into a subnet of a customerג€™s Azure Virtual Network (VNet).
Reference:
https://azure.microsoft.com/sv-se/blog/announcing-app-service-isolated-more-power-scale-and-ease-of-use/
Question #2 Topic 1
DRAG DROP -
You are a developer for a software as a service (SaaS) company that uses an Azure Function to process orders. The Azure Function currently runs
on an Azure
You are preparing to migrate the Azure Function to Kubernetes using Kubernetes-based Event Driven Autoscaling (KEDA).
You need to configure Kubernetes Custom Resource Definitions (CRD) for the Azure Function.
Which CRDs should you configure? To answer, drag the appropriate CRD types to the correct locations. Each CRD type may be used once, more
than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Correct Answer:
Box 1: Deployment -
To deploy Azure Functions to Kubernetes use the func kubernetes deploy command has several attributes that directly control how our app
scales, once it is deployed to Kubernetes.
Box 2: ScaledObject -
With --polling-interval, we can control the interval used by KEDA to check Azure Service Bus Queue for messages.
kind: ScaledObject
metadata:
name: transformer-fn
namespace: tt
labels:
deploymentName: transformer-fn
spec:
scaleTargetRef:
deploymentName: transformer-fn
pollingInterval: 5
minReplicaCount: 0
maxReplicaCount: 100
Box 3: Secret -
-g $RG_NAME \
--namespace-name $SBN_NAME \
--queue-name inbound \
-n keda-scaler \
--query "primaryConnectionString" \
-o tsv)
--from-literal KedaScaler=$KEDA_SCALER_CONNECTION_STRING \
--namespace tt
Reference:
https://www.thinktecture.com/en/kubernetes/serverless-workloads-with-keda/
Question #3 Topic 1
HOTSPOT -
You are creating a CLI script that creates an Azure web app and related services in Azure App Service. The web app uses the following variables:
You need to automatically deploy code from GitHub to the newly created web app.
How should you complete the script? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Question #4 Topic 1
The azure group creates command successfully returns JSON result. Now we can use resource group to create a azure app service plan
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
Box 2: az webapp create -
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 develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos
Box 3: --plan $webappname -
in Azure
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-
Box 4: az webapp deployment -
friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
az webapp deployment source config --name firstsamplewebsite1 --resource-group websites--repo-url $gitrepo --branch master --git-token
Solution: Trigger the photo processing from Blob storage events.
$token
Reference:
A.
Yes
https://medium.com/@satish1v/devops-your-way-to-azure-web-apps-with-azure-cli-206ed4b3e9b1
B.
No
Correct Answer:
B
You need to catch the triggered event, so move the photo processing to an Azure Function triggered from the blob upload.
Note: Azure Storage events allow applications to react to events. Common Blob storage event scenarios include image or video processing,
search indexing, or any file-oriented workflow.
Events are pushed using Azure Event Grid to subscribers such as Azure Functions, Azure Logic Apps, or even to your own http listener.
Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. Storage (general purpose v1)
does not support integration with Event Grid.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
Question #5 Topic 1
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 develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional
deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the
scripts.
A.
No
B.
Yes
Correct Answer:
A
Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets you
specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot. Here's a
sample web.config fragment.
<system.webServer>
<applicationInitialization>
</applicationInitialization>
</system.webServer>
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
Next Questions
-
Expert Verified, Online, Free.
Question #6 Topic 1
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 develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional
deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Enable auto swap for the Testing slot. Deploy the app to the Testing slot.
A.
No
B.
Yes
Correct Answer:
B
Instead update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the
scripts.
Note: Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets
you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot.
Here's a sample web.config fragment.
<system.webServer>
<applicationInitialization>
</applicationInitialization>
</system.webServer>
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
Question #7 Topic 1
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 develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional
deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Disable auto swap. Update the app with a method named statuscheck to run the scripts. Re-enable auto swap and deploy the app to the
Production slot.
A.
No
B.
Yes
Correct Answer:
B
Instead update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the
scripts.
Note: Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets
you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot.
Here's a sample web.config fragment.
<system.webServer>
<applicationInitialization>
</applicationInitialization>
</system.webServer>
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
Question #8 Topic 1
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 develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos
in Azure
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-
friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
A.
Yes
B.
No
Correct Answer:
B
Not necessary to convert the account, instead move photo processing to an Azure Function triggered from the blob upload..
Azure Storage events allow applications to react to events. Common Blob storage event scenarios include image or video processing, search
indexing, or any file- oriented workflow.
Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. Storage (general purpose v1)
does not support integration with Event Grid.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
Question #9 Topic 1
HOTSPOT -
You are developing an Azure Web App. You configure TLS mutual authentication for the web app.
You need to validate the client certificate in the web app. To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
If you are using ASP.NET and configure your app to use client certificate authentication, the certificate will be available through the
HttpRequest.ClientCertificate property. For other application stacks, the client cert will be available in your app through a base64 encoded value
in the "X-ARR-ClientCert" request header. Your application can create a certificate from this value and then use it for authentication and
authorization purposes in your application.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth
Question #10 Topic 1
DRAG DROP -
You are developing a Docker/Go using Azure App Service Web App for Containers. You plan to run the container in an App Service on Linux. You
identify a
None of your current resource groups reside in a location that supports Linux. You must minimize the number of resource groups required.
Which three Azure CLI commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands
to the answer area and arrange them in the correct order.
Correct Answer:
You can host native Linux applications in the cloud by using Azure Web Apps. To create a Web App for Containers, you must run Azure CLI
commands that create a group, then a service plan, and finally the web app itself.
In the Cloud Shell, create a resource group with the az group create command.
In the Cloud Shell, create an App Service plan in the resource group with the az appservice plan create command.
In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command. Don't forget to replace
with a unique app name, and <docker-ID> with your Docker ID.
Reference:
https://docs.microsoft.com/mt-mt/azure/app-service/containers/quickstart-docker-go?view=sql-server-ver15
Previous Questions Next Questions
-
Expert Verified, Online, Free.
DRAG DROP -
Fourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the www.fourthcoffee.com domain.
You need to provision an App Service Web App to host this docker image and map the custom domain to the App Service web app.
A resource group named FourthCoffeePublicWebResourceGroup has been created in the WestUS region that contains an App Service Plan named
AppServiceLinuxDockerPlan.
Which order should the CLI commands be used to develop the solution? To answer, move all of the Azure CLI commands from the list of
commands to the answer area and arrange them in the correct order.
Correct Answer:
Step 1: #bin/bash -
Create a web app. In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command.
In Create a web app, you specified an image on Docker Hub in the az webapp create command. This is good enough for a public image. To use
a private image, you need to configure your Docker account ID and password in your Azure web app.
In the Cloud Shell, follow the az webapp create command with az webapp config container set.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image https://docs.microsoft.com/en-us/azure/app-
service/tutorial-custom-container?pivots=container-linux https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-
domain
Question #12 Topic 1
DRAG DROP -
You are developing a serverless Java application on Azure. You create a new Azure Key Vault to work with secrets from a new Azure Functions
application.
✑ Dynamically add and remove instances of the Azure Functions host based on the number of incoming application events.
✑ Ensure that instances are perpetually warm to avoid any cold starts.
✑ Connect to a VNet.
✑ Authentication to the Azure Key Vault instance must be removed if the Azure Function application is deleted.
You need to grant the Azure Functions application access to the Azure Key Vault.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and
arrange them in the correct order.
Correct Answer:
Step 1: Create the Azure Functions app with a Consumption plan type.
Key Vault references currently only support system-assigned managed identities. User-assigned identities cannot be used.
Step 3: Create an access policy in Key Vault for the application identity.
Create an access policy in Key Vault for the application identity you created earlier. Enable the "Get" secret permission on this policy. Do not
configure the
"authorized application" or applicationId settings, as this is not compatible with a managed identity.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references
You develop a website. You plan to host the website in Azure. You expect the website to experience high traffic volumes after it is published.
You must ensure that the website remains available and responsive while minimizing cost.
A.
Deploy the website to a virtual machine. Configure the virtual machine to automatically scale when the CPU load is high.
B.
Deploy the website to an App Service that uses the Shared service tier. Configure the App Service plan to automatically scale when the CPU
load is high.
C.
Deploy the website to a virtual machine. Configure a Scale Set to increase the virtual machine instance count when the CPU load is high.
D.
Deploy the website to an App Service that uses the Standard service tier. Configure the App Service plan to automatically scale when the
CPU load is high.
Correct Answer:
D
Windows Azure Web Sites (WAWS) offers 3 modes: Standard, Free, and Shared.
Standard mode carries an enterprise-grade SLA (Service Level Agreement) of 99.9% monthly, even for sites with just one instance.
Standard mode runs on dedicated instances, making it different from the other ways to buy Windows Azure Web Sites.
Incorrect Answers:
B: Shared and Free modes do not offer the scaling flexibility of Standard, and they have some important limits.
Shared mode, just as the name states, also uses shared Compute resources, and also has a CPU limit. So, while neither Free nor Shared is likely
to be the best choice for your production environment due to these limits.
Question #14 Topic 1
HOTSPOT -
A company is developing a Java web app. The web app code is hosted in a GitHub repository located at https://github.com/Contoso/webapp.
The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot named staging.
You need to create the web app and deploy the code.
How should you complete the commands? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Box 1: group -
# Create an App Service plan in STANDARD tier (minimum required by deployment slots). az appservice plan create --name $webappname --
resource-group myResourceGroup --sku S1
Box 3: webapp -
--plan $webappname
--slot staging
Reference:
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-staging-environment
Question #15 Topic 1
HOTSPOT -
You have a web service that is used to pay for food deliveries. The web service uses Azure Cosmos DB as the data store.
You plan to add a new feature that allows users to set a tip amount. The new feature requires that a property named tip on the document in
Cosmos DB must be present and contain a numeric value.
There are many existing websites and mobile apps that use the web service that will not be updated to set the tip property for some time.
Hot Area:
Correct Answer:
-
Expert Verified, Online, Free.
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 develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.
The app continues to time out after four minutes. The app must process the blob data.
You need to ensure the app does not time out and processes the blob data.
Solution: Use the Durable Function async pattern to process the blob data.
A.
Yes
B.
No
Correct Answer:
B
Instead pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate
HTTP success response.
Note: Large, long-running functions can cause unexpected timeout issues. General best practices include:
Whenever possible, refactor large functions into smaller function sets that work together and return responses fast. For example, a webhook or
HTTP trigger function might require an acknowledgment response within a certain time limit; it's common for webhooks to require an
immediate response. You can pass the
HTTP trigger payload into a queue to be processed by a queue trigger function. This approach lets you defer the actual work and return an
immediate response.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices
Question #17 Topic 1
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 develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.
The app continues to time out after four minutes. The app must process the blob data.
You need to ensure the app does not time out and processes the blob data.
Solution: Pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate
HTTP success response.
A.
Yes
B.
No
Correct Answer:
A
Large, long-running functions can cause unexpected timeout issues. General best practices include:
Whenever possible, refactor large functions into smaller function sets that work together and return responses fast. For example, a webhook or
HTTP trigger function might require an acknowledgment response within a certain time limit; it's common for webhooks to require an
immediate response. You can pass the
HTTP trigger payload into a queue to be processed by a queue trigger function. This approach lets you defer the actual work and return an
immediate response.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices
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 develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.
The app continues to time out after four minutes. The app must process the blob data.
You need to ensure the app does not time out and processes the blob data.
Solution: Configure the app to use an App Service hosting plan and enable the Always On setting.
A.
Yes
B.
No
Correct Answer:
B
Instead pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate
HTTP success response.
Note: Large, long-running functions can cause unexpected timeout issues. General best practices include:
Whenever possible, refactor large functions into smaller function sets that work together and return responses fast. For example, a webhook or
HTTP trigger function might require an acknowledgment response within a certain time limit; it's common for webhooks to require an
immediate response. You can pass the
HTTP trigger payload into a queue to be processed by a queue trigger function. This approach lets you defer the actual work and return an
immediate response.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices
Question #19 Topic 1
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 develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos
in Azure
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-
friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Move photo processing to an Azure Function triggered from the blob upload.
A.
Yes
B.
No
Correct Answer:
A
Azure Storage events allow applications to react to events. Common Blob storage event scenarios include image or video processing, search
indexing, or any file- oriented workflow.
Events are pushed using Azure Event Grid to subscribers such as Azure Functions, Azure Logic Apps, or even to your own http listener.
Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. Storage (general purpose v1)
does not support integration with Event Grid.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
The application must read the transaction logs of all the changes that occur to the blobs and the blob metadata in the storage account for
auditing purposes. The changes must be in the order in which they occurred, include only create, update, delete, and copy operations and be
retained for compliance reasons.
A.
Process all Azure Blob storage events by using Azure Event Grid with a subscriber Azure Function app.
B.
Enable the change feed on the storage account and process all changes for available events.
C.
Process all Azure Storage Analytics logs for successful blob events.
D.
Use the Azure Monitor HTTP Data Collector API and scan the request body for successful blob events.
Correct Answer:
B
The purpose of the change feed is to provide transaction logs of all the changes that occur to the blobs and the blob metadata in your storage
account. The change feed provides ordered, guaranteed, durable, immutable, read-only log of these changes. Client applications can read these
logs at any time, either in streaming or in batch mode. The change feed enables you to build efficient and scalable solutions that process
change events that occur in your Blob Storage account at a low cost.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed
-
Expert Verified, Online, Free.
DRAG DROP -
You plan to create a Docker image that runs an ASP.NET Core application named ContosoApp. You have a setup script named setupScript.ps1 and
a series of application files including ContosoApp.dll.
You need to create a Dockerfile document that meets the following requirements:
The Dockerfile document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored.
Which five commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands to the
answer area and arrange them in the correct order.
Correct Answer:
Bxo 4: COPY ./ .
You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container.
Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process
images when the
A.
Use an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.
B.
Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.
C.
Use a Consumption plan. Configure the Function App to use a Timer trigger.
D.
Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.
E.
Use a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger.
Correct Answer:
B
The Blob storage trigger starts a function when a new or updated blob is detected. The blob contents are provided as input to the function.
The Consumption plan limits a function app on one virtual machine (VM) to 1.5 GB of memory.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger
Question #23 Topic 1
HOTSPOT -
The environment requires a Virtual Machine Scale Set (VMSS), several storage accounts, and networking components.
The VMSS must not be created until the storage accounts have been successfully created and an associated load balancer and virtual network is
configured.
How should you complete the Azure Resource Manager template? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Box 1: copyIndex -
Notice that the name of each resource includes the copyIndex() function, which returns the current iteration in the loop. copyIndex() is zero-
based.
Box 2: copy -
By adding the copy element to the resources section of your template, you can dynamically set the number of resources to deploy.
Box 3: dependsOn -
Example:
"type": "Microsoft.Compute/virtualMachineScaleSets",
"apiVersion": "2020-06-01",
"name": "[variables('namingInfix')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('vmSku')]",
"tier": "Standard",
"capacity": "[parameters('instanceCount')]"
},
"dependsOn": [
"[resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName'))]",
"[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]"
],
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/copy-resources https://docs.microsoft.com/en-us/azure/virtual-
machine-scale-sets/quick-create-template-windows
Question #24 Topic 1
HOTSPOT -
You are developing an Azure Function App by using Visual Studio. The app will process orders input by an Azure Web App. The web app places the
order information into Azure Queue Storage.
You need to review the Azure Function App code shown below.
Hot Area:
Correct Answer:
Box 1: No -
InsertionTime - The time that the message was added to the queue.
Box 2: Yes -
maxDequeueCount - The number of times to try processing a message before moving it to the poison queue. Default value is 5.
Box 3: Yes -
When there are multiple queue messages waiting, the queue trigger retrieves a batch of messages and invokes function instances concurrently
to process them.
By default, the batch size is 16. When the number being processed gets down to 8, the runtime gets another batch and starts processing those
messages. So the maximum number of concurrent messages being processed per function on one virtual machine (VM) is 24.
Box 4: Yes -
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue
DRAG DROP -
You are developing a solution for a hospital to support the following use cases:
✑ The most recent patient status details must be retrieved even if multiple users in different locations have updated the patient record.
✑ Patient health monitoring data retrieved must be the current version or the prior version.
✑ After a patient is discharged and all charges have been assessed, the patient billing record contains the final charges.
You provision a Cosmos DB NoSQL database and set the default consistency level for the database account to Strong. You set the value for
Indexing Mode to
Consistent.
You need to minimize latency and any impact to the availability of the solution. You must override the default consistency level at the query level
to meet the required consistency guarantees for the scenarios.
Which consistency levels should you implement? To answer, drag the appropriate consistency levels to the correct requirements. Each
consistency level may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Correct Answer:
Box 1: Strong -
Strong: Strong consistency offers a linearizability guarantee. The reads are guaranteed to return the most recent committed version of an item.
A client never sees an uncommitted or partial write. Users are always guaranteed to read the latest committed write.
Bounded staleness: The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K"
versions (that is
"updates") of an item or by "t" time interval. When you choose bounded staleness, the "staleness" can be configured in two ways:
The time interval (t) by which the reads might lag behind the writes
Box 3: Eventual -
Eventual: There's no ordering guarantee for reads. In the absence of any further writes, the replicas eventually converge.
Incorrect Answers:
Consistent prefix: Updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix guarantees that reads never
see out-of-order writes.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
-
Expert Verified, Online, Free.
HOTSPOT -
You are configuring a development environment for your team. You deploy the latest Visual Studio image from the Azure Marketplace to your
Azure subscription.
The development environment requires several software development kits (SDKs) and third-party components to support application development
across the organization. You install and customize the deployed virtual machine (VM) for your development team. The customized VM must be
saved to allow provisioning of a new team member development environment.
Which tools or services should you use? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Creating an image directly from the VM ensures that the image includes all of the disks associated with the VM, including the OS disk and any
data disks.
Before you begin, make sure that you have the latest version of the Azure PowerShell module.
You use Sysprep to generalize the virtual machine, then use Azure PowerShell to create the image.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource#create-an-image-of-a-vm-using-powershell
You are preparing to deploy a website to an Azure Web App from a GitHub repository. The website includes static content generated by a script.
You plan to use the Azure Web App continuous deployment feature.
You need to run the static generation script before the website starts serving traffic.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
A.
Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.
B.
Add a PreBuild target in the websites csproj project file that runs the static content generation script.
C.
Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.
D.
Create a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website.
Correct Answer:
AD
A: In Azure, you can run your functions directly from a deployment package file in your function app. The other option is to deploy your files in
the d:\home\site
To enable your function app to run from a package, you just add a WEBSITE_RUN_FROM_PACKAGE setting to your function app settings.
Note: The host.json metadata file contains global configuration options that affect all functions for a function app.
You just need to add a file to the root of your repository with the name .deployment and the content:
[config]
this command can be just running a script (batch file) that has all that is required for your deployment, like copying files from the repository to
the web root directory for example.
Reference:
https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script https://docs.microsoft.com/bs-latn-ba/azure/azure-functions/run-
functions-from-deployment-package
Question #28 Topic 1
DRAG DROP -
You are developing an application to use Azure Blob storage. You have configured Azure Blob storage to include change feeds.
A copy of your storage account must be created in another region. Data must be copied from the current storage account to the new storage
account directly between the storage servers.
You need to create a copy of the storage account in another region and copy the data.
In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the
correct order.
Correct Answer:
To move a storage account, create a copy of your storage account in another region. Then, move your data to that account by using AzCopy, or
another tool of your choice.
✑ Export a template.
✑ Modify the template by adding the target region and storage account name.
Note: You must enable the change feed on your storage account to begin capturing and recording changes. You can enable and disable
changes by using Azure
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-move https://docs.microsoft.com/en-
us/azure/storage/blobs/storage-blob-change-feed
Question #29 Topic 1
DRAG DROP -
The VMs that run the application have the following requirements:
✑ When a VM is provisioned the firewall must be automatically configured before it can access Azure resources.
✑ Supporting services must be installed by using an Azure PowerShell script that is stored in Azure Storage.
Which features should you use? To answer, drag the appropriate features to the correct requirements. Each feature may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Correct Answer:
Reference:
https://docs.microsoft.com/en-us/azure/automation/automation-hybrid-runbook-worker https://docs.microsoft.com/en-us/azure/virtual-
machines/windows/run-command
Question #30 Topic 1
HOTSPOT -
A company is developing a Node.js web app. The web app code is hosted in a GitHub repository located at
https://github.com/TailSpinToys/webapp.
The web app must be reviewed before it is moved to production. You must deploy the initial code release to a deployment slot named review.
You need to create the web app and deploy the code.
How should you complete the commands? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Box 1: New-AzResourceGroup -
Box 2: New-AzAppServicePlan -
The New-AzAppServicePlan cmdlet creates an Azure App Service plan in a given location
Box 3: New-AzWebApp -
The New-AzWebApp cmdlet creates an Azure Web App in a given a resource group
Box 4: New-AzWebAppSlot -
Reference:
https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroup?view=azps-2.3.2 https://docs.microsoft.com/en-
us/powershell/module/az.websites/new-azappserviceplan?view=azps-2.3.2 https://docs.microsoft.com/en-
us/powershell/module/az.websites/new-azwebapp?view=azps-2.3.2 https://docs.microsoft.com/en-us/powershell/module/az.websites/new-
azwebappslot?view=azps-2.3.2
-
Expert Verified, Online, Free.
HOTSPOT -
You are developing an application that needs access to an Azure virtual machine (VM).
The access lifecycle for the application must be associated with the VM service instance.
How should you complete the PowerShell segment? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Box 1: -IdentityType -
To enable a system-assigned managed identity, use the -IdentityType switch on the Update-AzVM cmdlet (see below).
Box 2: $SystemAssigned -
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-powershell-windows-vm
Question #32 Topic 1
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 develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos
in Azure
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-
friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload.
A.
Yes
B.
No
Correct Answer:
A
In the Consumption hosting plan, resources are added dynamically as required by your functions.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function
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 develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional
deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Update the app with a method named statuscheck to run the scripts. Update the app settings for the app. Set the
WEBSITE_SWAP_WARMUP_PING_PATH and WEBSITE_SWAP_WARMUP_PING_STATUSES with a path to the new method and appropriate response
codes.
A.
No
B.
Yes
Correct Answer:
A
These are valid warm-up behavior options, but are not helpful in fixing swap problems.
Instead update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the
scripts.
Note: Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets
you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot.
Here's a sample web.config fragment.
<system.webServer>
<applicationInitialization>
</applicationInitialization>
</system.webServer>
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
Question #34 Topic 1
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No,
Hot Area:
Correct Answer:
Box 1: No -
Box 2: Yes -
Note: New-AzScheduledQueryRuleTriggerCondition creates an object of type Trigger Condition. This object is to be passed to the command that
creates Alerting
Action object.
Box 3: No -
The New-AzAscheduledQueryRuleSchedule command creates an object of type Schedule. This object is to be passed to the command that
creates Log Alert
Rule.
Reference:
https://docs.microsoft.com/en-us/powershell/module/az.monitor/new-azscheduledqueryrule https://docs.microsoft.com/en-
us/powershell/module/az.monitor/new-azscheduledqueryruletriggercondition
Question #35 Topic 1
DRAG DROP -
Which Azure Function app features should you use? To answer, drag the appropriate features to the correct requirements. Each feature may be
used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Correct Answer:
Custom handlers can be used to create functions in any language or runtime by running an HTTP server process, for example Go or Rust.
Box 2: Trigger -
Functions are invoked by a trigger and can have exactly one. In addition to invoking the function, certain triggers also serve as bindings. You
may also define multiple bindings in addition to the trigger. Bindings provide a declarative way to connect data to your code.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-other https://docs.microsoft.com/en-
us/dotnet/architecture/serverless/azure-functions
-
Expert Verified, Online, Free.
HOTSPOT -
You are developing an ASP.NET Core web application. You plan to deploy the application to Azure Web App for Containers.
The application needs to store runtime diagnostic data that must be persisted across application restarts. You have the following code:
You need to configure the application settings so that diagnostic data is stored as required.
How should you configure the web appג€™s settings? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Box 1: If WEBSITES_ENABLE_APP_SERVICE_STORAGE
If WEBSITES_ENABLE_APP_SERVICE_STORAGE setting is unspecified or set to true, the /home/ directory will be shared across scale instances,
and files written will persist across restarts
Box 2: /home -
Reference:
https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-faq
Question #37 Topic 1
You are developing a web app that is protected by Azure Web Application Firewall (WAF). All traffic to the web app is routed through an Azure
Application
Gateway instance that is used by multiple web apps. The web app address is contoso.azurewebsites.net.
All traffic must be secured with SSL. The Azure Application Gateway instance is used by multiple web apps.
You need to configure the Azure Application Gateway for the web app.
Which two actions should you perform? Each correct answer presents part of the solution.
A.
In the Azure Application Gatewayג€™s HTTP setting, enable the Use for App service setting.
B.
Convert the web app to run in an Azure App service environment (ASE).
C.
Add an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway.
D.
In the Azure Application Gatewayג€™s HTTP setting, set the value of the Override backend path option to contoso22.azurewebsites.net.
Correct Answer:
AD
D: The ability to specify a host override is defined in the HTTP settings and can be applied to any back-end pool during rule creation.
The ability to derive the host name from the IP or FQDN of the back-end pool members. HTTP settings also provide an option to dynamically
pick the host name from a back-end pool member's FQDN if configured with the option to derive host name from an individual back-end pool
member.
A (not C): SSL termination and end to end SSL with multi-tenant services.
In case of end to end SSL, trusted Azure services such as Azure App service web apps do not require whitelisting the backends in the
application gateway.
Reference:
https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-web-app-overview
Question #38 Topic 1
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 develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos
in Azure
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-
friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Use the Azure Blob Storage change feed to trigger photo processing.
A.
Yes
B.
No
Correct Answer:
B
The change feed is a log of changes that are organized into hourly segments but appended to and updated every few minutes. These segments
are created only when there are blob change events that occur in that hour.
Instead catch the triggered event, so move the photo processing to an Azure Function triggered from the blob upload.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed https://docs.microsoft.com/en-
us/azure/storage/blobs/storage-blob-event-overview
HOTSPOT -
A company develops a series of mobile games. All games use a single leaderboard service.
✑ Each record must consist of a playerId, gameId, score, and time played.
✑ When users reach a new high score, the system will save the new score using the SaveScore function below.
You plan to store customer information in Azure Cosmos DB. The following data already exists in the database:
You develop the following code to save scores in the data store. (Line numbers are included for reference only.)
You develop the following code to query the database. (Line numbers are included for reference only.)
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
Correct Answer:
Box 1: Yes -
Create a table.
A CloudTableClient object lets you get reference objects for tables and entities. The following code creates a CloudTableClient object and uses
it to create a new
CloudStorageAccount storageAccount =
CloudStorageAccount.parse(storageConnectionString);
Box 2: No -
New records are inserted with TableOperation.insert. Old records are not updated.
Box 3: No -
Box 4: Yes -
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-java
Question #2 Topic 2
HOTSPOT -
You are developing a solution that uses the Azure Storage Client library for .NET. You have the following code: (Line numbers are included for
reference only.)
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
Correct Answer:
Box 1: Yes -
leaseTime is a TimeSpan representing the span of time for which to acquire the lease, which will be rounded down to seconds. If null, an infinite
lease will be acquired. If not null, this must be 15 to 60 seconds.
Box 2: No -
The GetBlockBlobReference method just gets a reference to a block blob in this container.
Box 3: Yes -
The BreakLeaseAsync method initiates an asynchronous operation that breaks the current lease on this container.
Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.acquireleaseasync
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.getblockblobreference
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.breakleaseasync
Previous Questions Next Questions
-
Expert Verified, Online, Free.
Question #3 Topic 2
You are building a website that uses Azure Blob storage for data storage. You configure Azure Blob storage lifecycle to move all blobs to the
archive tier after 30 days.
Customers have requested a service-level agreement (SLA) for viewing data older than 30 days.
A.
at least two days
B.
between one and 15 hours
C.
at least one day
D.
between zero and 60 minutes
Correct Answer:
B
The archive access tier has the lowest storage cost. But it has higher data retrieval costs compared to the hot and cool tiers. Data in the archive
tier can take several hours to retrieve depending on the priority of the rehydration. For small objects, a high priority rehydrate may retrieve the
object from archive in under 1 hour.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers?tabs=azure-portal
Question #4 Topic 2
HOTSPOT -
The storage solution for the application must meet the following requirements:
✑ Accept reservations even when localized network outages or other unforeseen failures occur.
✑ Process reservations in the exact sequence as reservations are submitted to minimize overbooking or selling the same seat to multiple
travelers.
✑ Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window.
You provision a resource group named airlineResourceGroup in the Azure South-Central US region.
You need to provision a SQL API Cosmos DB account to support the app.
How should you complete the Azure CLI commands? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Box 1: BoundedStaleness -
Bounded staleness: The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K"
versions (that is,
"updates") of an item or by "T" time interval. In other words, when you choose bounded staleness, the "staleness" can be configured in two
ways:
The time interval (T) by which the reads might lag behind the writes
Incorrect Answers:
Strong -
Strong consistency offers a linearizability guarantee. Linearizability refers to serving requests concurrently. The reads are guaranteed to return
the most recent committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read the
latest committed write.
For multi-region Cosmos accounts that are configured with a single-write region, enable automatic-failover by using Azure CLI or Azure portal.
After you enable automatic failover, whenever there is a regional disaster, Cosmos DB will automatically failover your account.
Question: Accept reservations event when localized network outages or other unforeseen failures occur.
Need multi-region.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels https://github.com/MicrosoftDocs/azure-
docs/blob/master/articles/cosmos-db/manage-with-cli.md
Question #5 Topic 2
HOTSPOT -
You are preparing to deploy a Python website to an Azure Web App using a container. The solution will use multiple containers in the same
container group. The
You build a container by using the following command. The Azure Container Registry instance named images is a private registry.
The Web App must always run the same version of the website regardless of future builds.
How should you complete the commands? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
--hyper-v
--deployment-source-url -u
The Web App must always run the same version of the website regardless of future builds.
Incorrect:
--deployment-container-image-name -i
Linux only. Container image name from Docker Hub, e.g. publisher/image-name:tag.
Box 3: az webapp config container set -url https://images.azurecr.io -u admin -p admin az webapp config container set
Paremeter: --docker-registry-server-url -r
Example:
Reference:
https://docs.microsoft.com/en-us/cli/azure/appservice/plan
Question #6 Topic 2
HOTSPOT -
You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue.
A rule already exists to scale up the App Service when the average queue length of unprocessed and valid queue messages is greater than 1000.
You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met.
How should you configure the Scale rule? To answer, select the appropriate options in the answer area.
Hot Area:
Correct Answer:
Question #7 Topic 2
DRAG DROP -
Which three methods should you use to develop the solution? To answer, move the appropriate methods from the list of methods to the answer
area and arrange them in the correct order.
Select
Box 1:and Place:
You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue.
ActiveMessageCount: Messages in the queue or subscription that are in the active state and ready for delivery.
Box 3: Count -
You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met.
Correct Answer:
Metadata.Add example:
metadata.Add("docType", "textDocuments");
SetMetadataAsync example:
await blob.SetMetadataAsync(metadata);
await blob.SetPropertiesAsync();
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-properties-metadata
Previous Questions Next Questions
-
Expert Verified, Online, Free.
Question #8 Topic 2
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.
Solution: Provision an Azure Event Grid. Configure the machine identifier as the partition key and enable capture.
A.
Yes
B.
No
Correct Answer:
A
Reference:
https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services
Question #9 Topic 2
A .NET application needs to receive a message each time an Azure virtual machine finishes processing data. The messages must NOT persist
after being processed by the receiving application.
You need to implement the .NET object that will receive the messages.
A.
QueueClient
B.
SubscriptionClient
C.
TopicClient
D.
CloudQueueClient
Correct Answer:
D
A queue allows processing of a message by a single consumer. Need a CloudQueueClient to access the Azure VM.
Incorrect Answers:
B, C: In contrast to queues, topics and subscriptions provide a one-to-many form of communication in a publish and subscribe pattern. It's
useful for scaling to large numbers of recipients.
Reference:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions
Question #10 Topic 2
DRAG DROP -
You are maintaining an existing application that uses an Azure Blob GPv1 Premium storage account. Data older than three months is rarely used.
Data newer than three months must be available immediately. Data older than a year must be saved but does not need to be available
immediately.
You need to configure the account to support a lifecycle management rule that moves blob data to archive storage for data not modified in the last
year.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and
arrange them in the correct order.
Correct Answer:
Object storage data tiering between hot, cool, and archive is supported in Blob Storage and General Purpose v2 (GPv2) accounts. General
Purpose v1 (GPv1) accounts don't support tiering.
You can easily convert your existing GPv1 or Blob Storage accounts to GPv2 accounts through the Azure portal.
Step 2: Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account
Step 3: Change the storage account access tier from hot to cool
Cool - Optimized for storing data that is infrequently accessed and stored for at least 30 days.
Archive - Optimized for storing data that is rarely accessed and stored for at least 180 days with flexible latency requirements, on the order of
hours.
Only the hot and cool access tiers can be set at the account level. The archive access tier can only be set at the blob level.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
Question #11 Topic 2
You must connect to a No-SQL globally-distributed database by using the .NET API.
You need to create an object to configure and execute requests in the database.
A.
new Container(EndpointUri, PrimaryKey);
B.
new Database(EndpointUri, PrimaryKey);
C.
new CosmosClient(EndpointUri, PrimaryKey);
Correct Answer:
C
Example:
await this.CreateDatabaseAsync();
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-get-started
You have an existing Azure storage account that stores large volumes of data across multiple containers.
You need to copy all data from the existing storage account to a new storage account. The copy process must meet the following requirements:
A.
AzCopy
B.
Azure Storage Explorer
C.
Azure portal
D.
.NET Storage Client Library
Correct Answer:
A
You can copy blobs, directories, and containers between storage accounts by using the AzCopy v10 command-line utility.
The copy operation is synchronous so when the command returns, that indicates that all files have been copied.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs-copy