Font size
WorksheetsAz204 prep2
Total questions: 28
Worksheet time: 42mins
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.NOTE: Each correct selection is worth one point.
Box 1: Service bus queue
Box 2: ActiveMessage Count
Box 3: Count
Box 4: Less than or equal to
Box 5: Decrease count by
Box1:Storage
Box2:Message Count
Box3:Average
Box 4: Less than or equal to
Box 5: Decrease count by
You have an application that uses Azure Blob storage.You need to update the metadata of the blobs.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.
Box1:Metadata.Add
Box2:SetMetadataAsync
Box3:SetPropertiesAsync
Box1:Metadata.Add
Box2:FetchAttributesAsync
Box3:UploadFileStream
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 produce2 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 the machine identifier as the partition key and enable capture.Does the solution meet the goal?
Yes
No
You develop Azure solutions.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.Which object should you use?
QueueClient
SubscriptionClient
TopicClient
CloudQueueClient
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.Select and Place:
BOX1:Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account
BOX2:Change the storage account access tier from hot to cool
BOX3:Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account
BOX1:Create a new GPv2 Standard account and set its default access tier level to cool
BOX2:Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account
BOX3:Change the storage account access tier from hot to cool
BOX1:Upgrade the storage account to GPv2
BOX2:Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account
BOX3:Change the storage account access tier from hot to cool
You develop Azure solutions.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.Which code segment should you use?
new Container(EndpointUri, PrimaryKey);
new Database(EndpointUri, PrimaryKey);
new CosmosClient(EndpointUri, PrimaryKey);
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:✑ Automate data movement.✑ Minimize user input required to perform the operation.✑ Ensure that the data movement process is recoverable.What should you use?
AzCopy
Azure Storage Explorer
Azure portal
.NET Storage Client Library
You are developing a web service that will run on Azure virtual machines that use Azure Storage. You configure all virtual machines to use managed identities.You have the following requirements:✑ Secret-based authentication mechanisms are not permitted for accessing an Azure Storage account.✑ Must use only Azure Instance Metadata Service endpoints.You need to write code to retrieve an access token to access Azure Storage. To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once or not at all. You may need to drag the split bar between panes or scroll to view content.NOTE: Each correct selection is worth one point.
Box 1: http://169.254.169.254/oauth2/token
Box 2: XDocument.Parse(payload);
Box 1: http://169.254.169.254/metadata/identity/oauth2/token
Box 2: JsonConvert.DeserializeObject<Dictionary<string,string>>(payload);
Box 1: http://169.254.169.254/token
Box 2: new MultipartContent(payload);
You are developing a new page for a website that uses Azure Cosmos DB for data storage. The feature uses documents that have the following format:
Box 1: compositeIndexes
Box 2: descending
Box 1: orderBy
Box 2: ascending
Box 1: sortOrder
Box 2: compositeIndex
You are building a traffic monitoring system that monitors traffic along six highways. The system produces time series analysis-based reports for each highway.Data from traffic sensors are stored in Azure Event Hub.Traffic data is consumed by four departments. Each department has an Azure Web App that displays the time series-based reports and contains a WebJob that processes the incoming data from Event Hub. All Web Apps run on App Service Plans with three instances.Data throughput must be maximized. Latency must be minimized.You need to implement the Azure Event Hub.Which settings should you use? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: 3
Box 2: Department
Box 1: 4
Box 2: VM name
Box 1: 6
Box 2: Highway
Box 1: 12
Box 2: Timestamp
You are developing a microservices solution. You plan to deploy the solution to a multinode Azure Kubernetes Service (AKS) cluster.You need to deploy a solution that includes the following features:✑ reverse proxy capabilities✑ configurable traffic routing✑ TLS termination with a custom certificateWhich components should you use? To answer, drag the appropriate components to the correct requirements. Each component 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.
Box 1: Helm
Box 2: kubectl
Box 3: Ingress Controller
Box 1: Brigade
Box 2: Draft
Box 3: Kubectl
Box 1: Helm
Box 2: CoreDNS
Box 3: Virtual Kubelet
Box 1: Draft
Box 2: kubectl
Box 3: Ingress Controller
You are implementing an order processing system. A point of sale application publishes orders to topics in an Azure Service Bus queue. The Label property for the topic includes the following data:
Box1:SQLFilter
Box2:CorrelationFilter
Box3:SQLFilter
Box4:SQLFilter
Box 5:CorrelationFilter
Box1:SQLFilter
Box2:CorrelationFilter
Box3:SQLFilter
Box4:SQLFilter
Box 5:No Filter
Box1:SQLFilter
Box2:CorrelationFilter
Box3:SQLFilter
Box4:NoFilter
Box 5:CorrelationFilter
Your company has several websites that use a company logo image. You use Azure Content Delivery Network (CDN) to store the static image.You need to determine the correct process of how the CDN and the Point of Presence (POP) server will distribute the image and list the items in the correct order.In which order do the actions occur? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.
Box1 :If no edge servers in the POP have the..
Box2:A user requests the image from the CDN URL.The DNS routes the request to the best perorming POP
Box3:The origin server returns the..
Box4:Subsequent requests for..
Box1:If no edge servers in the POP have the..
Box2:The origin server returns the..
Box3:A user requests the image..
Box4:Subsequent requests for..
Box1 :A user requests the image from the CDN URL.The DNS routes the request to the best perorming POP
Box2:If no edge servers in the POP have the..
Box3:The origin server returns the..
Box4:Subsequent requests for..
You are developing an Azure Cosmos DB solution by using the Azure Cosmos DB SQL API. The data includes millions of documents. Each document may contain hundreds of properties.The properties of the documents do not contain distinct values for partitioning. Azure Cosmos DB must scale individual containers in the database to meet the performance needs of the application by spreading the workload evenly across all partitions over time.You need to select a partition key.Which two partition keys can you use? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point.
a single property value that does not appear frequently in the documents
a value containing the collection name
a single property value that appears frequently in the documents
a concatenation of multiple property values with a random suffix appended
a hash suffix appended to a property value
You are developing an Azure-hosted e-commerce web application. The application will use Azure Cosmos DB to store sales orders. You are using the latest SDK to manage the sales orders in the database.You create a new Azure Cosmos DB instance. You include a valid endpoint and valid authorization key to an appSettings.json file in the code project.You are evaluating the following application code: (Line number are included for reference only.)
Box 1: Yes
Box2:Yes
Box3:Yes
Box 1: No
Box2:Yes
Box3:Yes
Box 1: Yes
Box2:Yes
Box3:No
You develop an Azure solution that uses Cosmos DB.The current Cosmos DB container must be replicated and must use a partition key that is optimized for queries.You need to implement a change feed processor solution.Which change feed processor components should you use? To answer, drag the appropriate components to the correct requirements. Each component 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 the content.NOTE: Each correct selection is worth one point.
Box 1: Monitored container
Box 2: Lease container
Box 3: Host
Box 4: Delegate
Box 1: Monitored container
Box 2: Lease container
Box 3: Delegate
Box 4: Host
You are developing a web application that will use Azure Storage. Older data will be less frequently used than more recent data.You need to configure data storage for the application. You have the following requirements:✑ Retain copies of data for five years.✑ Minimize costs associated with storing data that is over one year old.✑ Implement Zone Redundant Storage for application data.What should you do? To answer, select the appropriate options in the answer area.
Box1:Implement Blob Storage
Box2:Set a lifecycle management policy to move blobs to the archive tier
Box1:Implement Blob Storage V2(general purposev2)
Box2:Set a lifecycle management policy to move blobs to the cool tier
Box1:ImplementStorage(general purpose v1)
Box2:Use AzCopy to copy the data to an on-premises device for backup
Box1:ImplementAzure Cosmos DB
Box2:Snapshot blobs and move them to the archive tier
A company develops a series of mobile games. All games use a single leaderboard service.You have the following requirements:✑ Code must be scalable and allow for growth.✑ 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.Each game is assigned an Id based on the series title.You plan to store customer information in Azure Cosmos DB. The following data already exists in the database:
Box 1: Yes
Box 2: No
Box 3: No
Box 4: Yes
Box 1: No
Box 2: No
Box 3: No
Box 4: Yes
Box 1: Yes
Box 2: No
Box 3: Yes
Box 4: Yes
You develop and deploy a web application to Azure App Service. The application accesses data stored in an Azure Storage account. The account contains several containers with several blobs with large amounts of data. You deploy all Azure resources to a single region.You need to move the Azure Storage account to the new region. You must copy all data to the new region.What should you do first?
Export the Azure Storage account Azure Resource Manager template
Initiate a storage account failover
Configure object replication for all blobs
Use the AzCopy command line tool
Create a new Azure Storage account in the current region
You are developing an application to collect the following telemetry data for delivery drivers: first name, last name, package count, item id, and current location coordinates. The app will store the data in Azure Cosmos DB.You need to configure Azure Cosmos DB to query the data.Which values should you use? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: Core (SQL)
Box 2: item id
Box 1: Table API
Box 2: first name
Box 1: Gremlin
Box 2: package count
Box 1: Table API
Box 2: item id
You are implementing an Azure solution that uses Azure Cosmos DB and the latest Azure Cosmos DB SDK. You add a change feed processor to a new container instance.You attempt to read a batch of 100 documents. The process fails when reading one of the documents. The solution must monitor the progress of the change feed processor instance on the new container as the change feed is read. You must prevent the change feed processor from retrying the entire batch when one document cannot be read.You need to implement the change feed processor to read the documents.Which features should you use? To answer, drag the appropriate features to the cored 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.NOTE: Each cored selection is worth one point.
Box 1: Lease container
Box 2: Deployment unit
Box 1: Change feed estimator
Box 2: Dead-letter queue
Box 1: Deployment unit
Box 2: Lease container
An organization deploys Azure Cosmos DB.You need to ensure that the index is updated as items are created, updated, or deleted.What should you do?
Set the indexing mode to Lazy.
Set the value of the automatic property of the indexing policy to False.
Set the value of the EnableScanInQuery option to True.
Set the indexing mode to Consistent.
You are developing a .Net web application that stores data in Azure Cosmos DB. The application must use the Core API and allow millions of reads and writes.The Azure Cosmos DB account has been created with multiple write regions enabled. The application has been deployed to the East US2 and Central US regions.You need to update the application to support multi-region writes.What are two possible ways to achieve this goal? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
Update the ConnectionPolicy class for the Cosmos client and populate the PreferredLocations property based on the geo-proximity of the application.
Update Azure Cosmos DB to use the Strong consistency level. Add indexed properties to the container to indicate region.
Update the ConnectionPolicy class for the Cosmos client and set the UseMultipleWriteLocations property to true.
Create and deploy a custom conflict resolution policy.
. Update Azure Cosmos DB to use the Session consistency level. Send the SessionToken property value from the FeedResponse object of the write action to the end-user by using a cookie
You are developing an application that uses a premium block blob storage account. The application will process a large volume of transactions daily. You enableBlob storage versioning.You are optimizing costs by automating Azure Blob Storage access tiers. You apply the following policy rules to the storage account. (Line numbers are included for reference only.)
Box 1: No
Box 2: No
Box 3: No
Box 4: Yes
Box 1: No
Box 2: No
Box 3: No
Box 4: Yes
Box 1: No
Box 2: No
Box 3: Yes
Box 4: Yes
Box 1: Yes
Box 2: Yes
Box 3: Yes
Box 4: Yes
You are developing a web application by using the Azure SDK. The web application accesses data in a zone-redundant BlockBlobStorage storage account.The application must determine whether the data has changed since the application last read the data. Update operations must use the latest data changes when writing data to the storage account.You need to implement the update operations.Which values should you use? To answer, select the appropriate option in the answer area.NOTE: Each correct selection is worth one point.
Box 1: Last Modified
Box 2: If-Modified-Since
Box 1: Etag
Box 2: If-Match
Box 1: VersionId
Box 2: If-None_Match
An organization deploys a blob storage account. Users take multiple snapshots of the blob storage account over time.You need to delete all snapshots of the blob storage account. You must not delete the blob storage account itself.How should you complete the code segment? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: DeleteIfExists
Box 2: None
Box 1: DeleteSnapshotsOption
Box 2: OnlySnapshots
Box 1: WithSnapshot
Box 2: IncludeSnapshots
An organization deploys a blob storage account. Users take multiple snapshots of the blob storage account over time.You need to delete all snapshots of the blob storage account. You must not delete the blob storage account itself.How should you complete the code segment? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: delete_conteiner
Box 2: Include
Box 1: delete_snapshots
Box 2: only
Box 1: snapshot_blob
Box 2: False
Box 1: snapshot_present
Box 2: only
You are developing an application to store business-critical data in Azure Blob storage.The application must meet the following requirements:• Data must not be modified or deleted for a user-specified interval.• Data must be protected from overwrites and deletes.• Data must be written once and allowed to be read many times.You need to protect the data in the Azure Blob storage account.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
Configure a time-based retention policy for the storage account.
Create an account shared-access signature (SAS).
Enable the blob change feed for the storage account.
Enable version-level immutability support for the storage account.
Create a service shared-access signature (SAS).
