AZ-203 Microsoft Certified Azure Developer practice exams Set 1

A development team has developed an application that is based on docker containers. The applications need to be deployed to Azure Kubernetes service. You have to prepare the environment and deploy the Kubernetes cluster to a resource group called XYZ-rg. You need to issue the right command to create the cluster.

You decide to issue the following command

az aks createe --resource-group XYZ-rg --name XYZcluster --node-count 1 --enable-addons monitoring --generate-ssh-keys

Would this command create the cluster?


Options are :

  • Yes (Correct)
  • No

Answer :Yes

AZ-300 Microsoft Azure Architect Technologies Prc. Tests Set 6

A development team has developed an application that is based on docker containers. The applications need to be deployed to Azure Kubernetes service. You have to prepare the environment and deploy the Kubernetes cluster to a resource group called XYZ-rg. You need to issue the right command to createe the cluster.

You decide to issue the following command

az kubectl createe --resource-group XYZ-rg --name XYZcluster --node-count 1 --enable-addons monitoring --generate-ssh-keys

Would this command create the cluster?


Options are :

  • Yes
  • No (Correct)

Answer :No

A development team has developed an application that is based on docker containers. The applications need to be deployed to Azure Kubernetes service. You have to prepare the environment and deploy the Kubernetes cluster to a resource group called XYZ-rg. You need to issue the right command to create the cluster.

You decide to issue the following command

kubectl createe --resource-group XYZ-rg --name XYZcluster --node-count 1 --enable-addons monitoring --generate-ssh-keys

Would this command create the cluster?


Options are :

  • Yes
  • No (Correct)

Answer :No

A development team is using the Azure Batch service to process and convert files stored in a storage account. Code is being developed to start the batch job.

The following variables are in place for the code

You have to ensure that files processed by the batch job are placed in the container referenced by XYZ_outputcontainerSASURL' variable. And all files that fail the conversion are stored in the container referenced by XYZ_failedcontainerSASURL'.

Snippets of code are given below. You have to complete the code

Which of the following would go into Slot1?


Options are :

  • Getjob
  • GetTask
  • Enablejob
  • createJob (Correct)

Answer :createJob

AZ-300 Microsoft Azure Architect Technologies Prc. Tests Set 5

A development team is using the Azure Batch service to process and convert files stored in a storage account. Code is being developed to start the batch job.

The following variables are in place for the code

You have to ensure that files processed by the batch job are placed in the container referenced by XYZ_outputcontainerSASURL' variable. And all files that fail the conversion are stored in the container referenced by XYZ_failedcontainerSASURL'.

Snippets of code are given below. You have to complete the code

Which of the following would go into Slot2?


Options are :

  • TaskFailure
  • TaskSuccess (Correct)
  • TaskCompletion
  • TaskDone

Answer :TaskSuccess

A development team is using the Azure Batch service to process and convert files stored in a storage account. Code is being developed to start the batch job.

The following variables are in place for the code

You have to ensure that files processed by the batch job are placed in the container referenced by XYZ_outputcontainerSASURL' variable. And all files that fail the conversion are stored in the container referenced by XYZ_failedcontainerSASURL'.

Snippets of code are given below. You have to complete the code

Which of the following would go into Slot3?


Options are :

  • TaskFailure (Correct)
  • TaskSuccess
  • TaskCompletion
  • TaskDone

Answer :TaskFailure

A development team is using the Azure Batch service to process and convert files stored in a storage account. Code is being developed to start the batch job.

The following variables are in place for the code

You have to ensure that files processed by the batch job are placed in the container referenced by XYZ_outputcontainerSASURL' variable. And all files that fail the conversion are stored in the container referenced by XYZ_failedcontainerSASURL'.

Snippets of code are given below. You have to complete the code

Which of the following would go into Slot4?


Options are :

  • OutPutFiles (Correct)
  • FileStorage
  • ResurceFiles
  • InputFiles

Answer :OutPutFiles

AZ-400 Microsoft Azure DevOps Solutions Practice Tests Set 4

A development team is developing a mobile application for a company. The application needs to adhere to the below requirements

*)Support offline data synchronization

*)Update the latest messages during normal synchronization cycles.

You have to implement the Offline Data Sync functionality.

Which of the below 2 actions would you implement as part of the code?



Options are :

  • Retrieve records from Offline Data Sync on every call to the PullAsync method
  • Retrieve records from Offline Data Sync using an Incremental Sync. (Correct)
  • Push records to Offline Data Sync using an Incremental Sync.
  • Return the updatedAt column from the Mobile Service Backend and implement sorting by using the column. (Correct)
  • Return the updatedAt column from the Mobile Service Backend and implement sorting by the message id.

Answer :Retrieve records from Offline Data Sync using an Incremental Sync. Return the updatedAt column from the Mobile Service Backend and implement sorting by using the column.

CASE STUDY

The code has a bug and willl insert an additional copy of the Game record with a new GameID?


Options are :

  • Yes
  • No (Correct)

Answer :No

CASE STUDY

The code has a bug and willl insert the wrong GameID value?


Options are :

  • Yes
  • No (Correct)

Answer :No

AZ-400 Microsoft Azure DevOps Solutions Practice Tests Set 5

A team is developing an API solution. The backend is going to be hosted in the Azure App Service as a Web App. The API backend has been implemented as RESTful service.

To implement a secure API, which of the following would you configure as the Target?


Options are :

  • Azure Resource
  • HTTPS Endpoint (Correct)
  • Basic
  • Client cert

Answer :HTTPS Endpoint

A team is developing an API solution. The backend is going to be hosted in the Azure App Service as a Web App. The API backend has been implemented as RESTful service.

To implement a secure API, which of the following would you configure as the Gateway credentials?


Options are :

  • Azure Resource
  • HTTPS Endpoint
  • Basic
  • Client cert (Correct)

Answer :Client cert

CASE STUDY

PROCESSING.CS

DATABASE.CS

You need to secure the database string in the Database.cs class file. You need to complete the database string as shown below

Which of the following willl go into Slot1?


Options are :

  • Integrated Security=SSPI (Correct)
  • Trusted_Connection=False
  • Network Library=DBNSSOCN
  • MultipleActiveResultSets=True

Answer :Integrated Security=SSPI

AZ-400 Microsoft Azure DevOps Solutions Practice Tests Set 5

CASE STUDY

PROCESSING.CS

DATABASE.CS

You need to secure the database string in the Database.cs class file. You need to complete the database string as shown below

Which of the following willl go into Slot2?


Options are :

  • Encrypt=True (Correct)
  • Integrated Security=True
  • Failover Partner = False
  • Named Pipes = True

Answer :Encrypt=True

CASE STUDY

PROCESSING.CS

DATABASE.CS

You are ensuring that the right script is in place to ensure that the storage account can use customer managed keys in the key vault. You need to complete the below script

Which of the following would go into Slot1 to complete the script?


Options are :

  • -PermissionsToKeys wrapkey, unwrapkey, get (Correct)
  • -PermissionsToKeys create, encrypt, decrypt
  • -PermissionsToCertificates wrapkey, unwrapkey, get
  • -PermissionsToCertificates create, encrypt, decrypt

Answer :-PermissionsToKeys wrapkey, unwrapkey, get

CASE STUDY

PROCESSING.CS

DATABASE.CS


You have to ensure that the database.cs class has the necessary code for ensuring retries are in place in case of any database related failure. You need to complete the following code segment

Which of the following would go into Slot1?


Options are :

  • Policy (Correct)
  • RetryPolicy
  • RetryOptions
  • ReconnectRetryPolicy

Answer :Policy

AZ-300 Microsoft Azure Architect Technologies Prc. Tests Set 2

CASE STUDY

PROCESSING.CS

DATABASE.CS

You have to ensure that the database.cs class has the necessary code for ensuring retries are in place in case of any database related failure. You need to complete the following code segment

Which of the following would go into Slot2?


Options are :

  • .Retry(3)
  • CircuitBreaker(3,TimeSpace.fromMilliseconds(1000));
  • WaitAndRetryAsync(3,a=>TimeSpan.FromMilliseconds(100));
  • WaitAndRetryAsync(3,a=>TimeSpan.FromMilliseconds(200 * Math.Pow(2, attempt - 1)); (Correct)

Answer :WaitAndRetryAsync(3,a=>TimeSpan.FromMilliseconds(200 * Math.Pow(2, attempt - 1));

CASE STUDY

PROCESSING.CS

DATABASE.CS

You have to ensure you use the right technique to get valid links for the processing reports.

Which of the following would you implement for this?


Options are :

  • createe a SharedAccessBlobPolicy and add it to the containers SharedAccessPolicies. Call GetSharedAccessSignature on the blob and use the resulting link.
  • createe a SharedAccessBlobPolicy and set the expiry time to two weeks from today. Call GetSharedAccessSignature on the blob and use the resulting link (Correct)
  • createe a SharedAccessAccountPolicy and call GetsharedAccessSignature on storage account and use the resulting link.
  • createe a SharedAccessBlobPolicy and set the expiry time to two weeks from today. Call GetSharedAccessSignature on the container and use the resulting link.

Answer :createe a SharedAccessBlobPolicy and set the expiry time to two weeks from today. Call GetSharedAccessSignature on the blob and use the resulting link

CASE STUDY

PROCESSING.CS

DATABASE.CS

The team is complaining on Log capacity issues due the amount of trace messages provided by Application Insights. Which of the following could be used to resolve the issue?


Options are :

  • Implement Application Insights Sampling. (Correct)
  • Change the minimum log level in the host.json file for the function.
  • createe an Application Insights Telemetry Filter.
  • Set a LogCategoryFilter during startup.

Answer :Implement Application Insights Sampling.

Azure AZ-500 Security Technologies Practice Test Set 2

CASE STUDY

PROCESSING.CS

DATABASE.CS

You have to implement the GetCredentials method to get the access tokens via the Managed Service Identity. You have to complete the below code segment

Which of the following would go into Slot1?


Options are :

  • GetAccessTokenAsync()
  • AzureServiceTokenProvider() (Correct)
  • MSITokenProvider()
  • GetAuthenticationHeaderAsync()

Answer :AzureServiceTokenProvider()

CASE STUDY

PROCESSING.CS

DATABASE.CS

You have to implement the GetCredentials method to get the access tokens via the Managed Service Identity. You have to complete the below code segment

Which of the following would go into Slot2?


Options are :

  • GetAccessTokenAsync() (Correct)
  • AzureServiceTokenProvider()
  • MSITokenProvider()
  • GetAuthenticationHeaderAsync()

Answer :GetAccessTokenAsync()

CASE STUDY

PROCESSING.CS

DATABASE.CS

You need to implement data masking for the Expense Account column so that the users would see the values in the following format XXXX-XXX-1234

So, the last 4 numbers would be shown for the user

What would you select as the "Exposed Prefix"?


Options are :

  • 0 (Correct)
  • 4
  • 7
  • 9

Answer :0

AZ-203 Microsoft Certified Azure Developer practice exams Set 13

CASE STUDY

PROCESSING.CS

DATABASE.CS


You need to implement data masking for the Expense Account column so that the users would see the values in the following format XXXX-XXX-1234

So, the last 4 numbers would be shown for the user

What would you select as the "Exposed Suffix"?


Options are :

  • 0
  • 4 (Correct)
  • 7
  • 9

Answer :4

You have to develop an Azure CLI script to work with the Azure Batch service to run a number of jobs. The following snippets for the Azure CLI script are in place

You have to run the snippets in the right order. Which of the following is the right order to run the scripts?


Options are :

  • 1,2,3,4
  • 2,4,3,1 (Correct)
  • 1,3,4,2
  • 2,3,1,4

Answer :2,4,3,1

A development team is developing an application that works with Azure Table storage. Below is the table structure

If you need to retrieve the row where the First Name = "James",

which of the following statement would you issue from a C# program?


Options are :

  • TableQuery query = new TableQuery().Where(TableQuery.GenerateFilterCondition("FirstName", QueryComparisons.Equal, "James"));
  • TableQuery query = new TableQuery().Where(TableQuery.GenerateFilterCondition("FirstName", Equal, "James"));
  • TableQuery query = new TableQuery().Where(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "James")); (Correct)
  • TableQuery query = new TableQuery().Where(TableQuery.GenerateFilterCondition("PartitionKey",Equal, "James"));

Answer :TableQuery query = new TableQuery().Where(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "James"));

Azure AZ-500 Security Technologies Practice Test Set 2

A development team is developing an application that works with Azure Table storage. Below is the table structure


You have the following code statement from a C# program 

Would this return all the entities where the RowKey is [email protected]?


Options are :

  • Yes
  • No (Correct)

Answer :No

A development team is developing an application that works with Azure Table storage. Below is the table structure


Is the below.Net Code query

Same as executing the below REST API call along with a valid Shared Access Signature https://XYZstore.table.core.windows.net/Customer(PartitionKey='James',RowKey='Smith')


Options are :

  • Yes (Correct)
  • No

Answer :Yes

As a developer you need to create a Dockerfile for an application. The application willl be based on ASP.Net core. The application has the following requirements

*)Ensure that the application XYZApp.dll runs at the startup of the docker container

*)Run a powershell script called XYZcsript.ps1 in the Docker container

The XYZApp.dll and the XYZcsript.ps1 are in the same location as the DockerFile. Which of the following commands would you place in the DockerFile?


Options are :

  • FROM microsoft/dotnet:2.2-aspnetcore-runtime (Correct)
  • EXPOSE XYZApp.dll ,XYZcsript.ps1
  • ENTRYPOINT ["dotnet", "XYZApp.dll "] (Correct)
  • ENTRYPOINT ["XYZApp.dll" ,"XYZcsript.ps1"]
  • RUN powershell "XYZcsript.ps1" (Correct)
  • RUN "XYZApp.dll","XYZcsript.ps1"

Answer :FROM microsoft/dotnet:2.2-aspnetcore-runtime ENTRYPOINT ["dotnet", "XYZApp.dll "] RUN powershell "XYZcsript.ps1"

AZ-400 Microsoft Azure DevOps Solutions Practice Tests Set 1

A company is developing a solution that allows smart devices to send information to a central location. The solution must receive and store messages until they can be processed. You have to createe a service bus queue in the specified service bus namespace "XYZ" 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?


Options are :

  • New-AzureRmServiceBusQueue -ResourceGroupName "XYZ-rg" -NamespaceName XYZ -Name XYZqueue -EnablePartitioning $False (Correct)
  • az group createe --name "XYZ-rg" --location "Central US"
  • New-AzureRmResourceGroup -Name "XYZ-rg" -Location "Central US"
  • New-AzureRmServiceBusNamespace -ResourceGroup "XYZ-rg" -NamespaceName XYZ -Location WestUS -SkuName "Standard"

Answer :New-AzureRmServiceBusQueue -ResourceGroupName "XYZ-rg" -NamespaceName XYZ -Name XYZqueue -EnablePartitioning $False

CASE STUDY

A team has set an index in the Azure Search Service. Some of the fields of the index are given below

The index is pointing to a table in an Azure SQL database with the following rows


A team member is trying to do a free text search to get the document where Company Name=A Bike Store, but is getting the below result in the Search Explorer

You need to ensure the team member can search the index for the criteria Company Name- A Bike Store.

If the team member search for the entire string of "A Bike Store" instead of just "Bike", they willl get the required result.


Options are :

  • Yes
  • No (Correct)

Answer :No

Which command is necessary to obtain security context to run kubectl (the Kubernetes command-line client)?


Options are :

  • az aks show
  • az aks list
  • az aks get-credentials (Correct)
  • az aks update-credentials

Answer :az aks get-credentials

In Azure Kubernetes Service (AKS), what is used to grant permissions to cluster resources outside of a particular namespace?


Options are :

  • Roles
  • ClusterRoles
  • RoleBindings (Correct)
  • ClusterRoleBindings

Answer :RoleBindings

AZ-103 Microsoft Azure Administrator Practice Exam Questions Set 4

What enables you to group collections of images that relate to a specific application?


Options are :

  • registries
  • repositories (Correct)
  • regions
  • Docker container image builds

Answer :repositories

You are testing a solution in the Azure Kubernetes Service (AKS). You need to minimize the cost of the testing. Which scaling strategy should you use?


Options are :

  • scale manually (Correct)
  • horizontal pod autoscaler
  • cluster autoscaler
  • burst to Azure Container Instances

Answer :scale manually

You deploy an Azure Kubernetes Service (AKS) cluster and need to connect to it. Which command should you run first?


Options are :

  • az aks get-credentials (Correct)
  • kubectl get nodes
  • az aks browse
  • kubectl get pod

Answer :az aks get-credentials

Ms Azure Administrator - Mock Test Set 8

You have created an Azure Container Registry (ACR and need to push an image. Which command should you run first?


Options are :

  • az acr login (Correct)
  • docker push
  • docker tag
  • az acr list

Answer :az acr login

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions