Search Header Logo

exam prep az204 quiz4

Authored by Faith Muwishi

Professional Development

Professional Development

Used 11+ times

exam prep az204 quiz4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

You develop Azure Web Apps for a commercial diving company. Regulations require that all divers fill out a health questionnaire every 15 days after each diving job starts.You need to configure the Azure Web Apps so that the instance count scales up when divers are filling out the questionnaire and scales down after they are complete.You need to configure autoscaling.What are two possible auto scaling configurations to achieve this goal? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point.

Recurrence profile

CPU usage-based autoscaling

Fixed date profile

Predictive autoscaling

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

You are developing an online game that allows players to vote for their favorite photo that illustrates a word. The game is built by using Azure Functions and uses durable entities to track the vote count.The voting window is 30 seconds. You must minimize latency.You need to implement the Azure Function for voting.How should you complete the code? To answer, select the appropriate options in the answer area.

Box 1:[DurableClient]|DurableEntityClient

Box2:SignalEntity Async

Box1:SignalEntity Async

Box 2:[DurableClient]|DurableEntityClient

Box1:CallEntity Async

Box2:[DurableClient]|DurableOrchestrationClient

Answer explanation

3.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

You are updating an application that stores data on Azure and uses Azure Cosmos DB for storage. The application stores data in multiple documents associated with a single username.The application requires the ability to update multiple documents for a username in a single ACID operation.You need to configure Azure Cosmos DB.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.

Create a collection sharded on username to store documents.

Configure Azure Cosmos DB to use the Gremlin API.

Create an unsharded collection to store documents.

Configure Azure Cosmos DB to use the MongoDB API.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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?

A. database_name = 'MyDatabase' database = client.create_database_if_not_exists(id=database_name)

B. client = CosmosClient(endpoint, key)

C. container_name = 'MyContainer' container = database.create_container_if_not_exists( id=container_name, partition_key=PartitionKey(path="/lastName"), offer_throughput=400 )

5.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

You develop a web application that provides access to legal documents that are stored on Azure Blob Storage with version-level immutability policies. Documents are protected with both time-based policies and legal hold policies. All time-based retention policies have the AllowProtectedAppendWrites property enabled.You have a requirement to prevent the user from attempting to perform operations that would fail only when a legal hold is in effect and when all other policies are expired.You need to meet the requirement.Which two operations should you prevent? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point.

adding data to documents

deleting documents

creating documents

overwriting existing documents

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

You provisioned an Azure Cosmos DB for NoSQL account named account1 with the default consistency level.You plan to configure the consistency level on a per request basis. The level needs to be set for consistent prefix for read and write operations to account1.You need to identify the resulting consistency level for read and write operations.Which levels should you configure? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.

Box 1:strong

Box2: session

Box 1:Consistent prefix

Box2: session

Box :1session

Box2: consistent prefix

Answer explanation

Media Image

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

You are developing an application to store millions of images in Azure blob storage. The images are uploaded to an Azure blob storage container named companyimages contained in an Azure blob storage account named companymedia. The stored images are uploaded with multiple blob index tags across multiple blobs in the container.You must find all blobs whose tags match a search expression in the container. The search expression must evaluate an index tag named status with a value of final.You need to construct the GET method request URI.How should you complete the URI? To answer, drag the appropriate parameters to the correct request URI targets. Each parameter 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.

Box1:Status='Final'

Box2:companymedia

Box3:companyimages

Box1:companymedia

Box2companyimages

Box3:Status = 'Final'

Answer explanation

Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?