0% found this document useful (0 votes)
424 views163 pages

AZ 203 Udemy

The document contains questions and answers from a practice test about developing solutions for Microsoft Azure. It includes multiple choice questions about deploying an application to Azure Kubernetes Service, creating an Azure Kubernetes cluster using the correct CLI command, using Azure Batch service to process files stored in Azure storage, and implementing offline data synchronization in a mobile application. The correct answers are provided along with explanations referring to Microsoft documentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
424 views163 pages

AZ 203 Udemy

The document contains questions and answers from a practice test about developing solutions for Microsoft Azure. It includes multiple choice questions about deploying an application to Azure Kubernetes Service, creating an Azure Kubernetes cluster using the correct CLI command, using Azure Batch service to process files stored in Azure storage, and implementing offline data synchronization in a mobile application. The correct answers are provided along with explanations referring to Microsoft documentation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 163

AZ-203 : Developing Solutions for MS Azure : Practice Test 1

Question 1: Correct
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 montana-rg.
You need to issue the right command to create the cluster.
You decide to issue the following command:

1. az aks create --resource-group montana-rg --name montanacluster --node-count 1 --enable-addons


monitoring --generate-ssh-keys

Would this command create the cluster?

Yes

(Correct)

No

Explanation
Correct Answer – A
Yes, this is the right command. This is also mentioned in the Microsoft documentation
For more information on creating a cluster, one can go to the below link
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
Question 2: Correct
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 montana-rg.
You need to issue the right command to create the cluster.
You decide to issue the following command:

1. az kubectl create --resource-group montana-rg --name montanacluster --node-count 1 --enable-ad


dons monitoring --generate-ssh-keys

Would this command create the cluster?

Yes

No

(Correct)

Explanation
Correct Answer – B
No, this is not the right command.
The right way to create the cluster is mentioned in the Microsoft documentation

For more information on creating a cluster, one can go to the below link
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
Question 3: Correct
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 montana-rg.
You need to issue the right command to create the cluster.
You decide to issue the following command:

1. kubectl create --resource-group montana-rg --name montanacluster --node-count 1 --enable-add o


ns monitoring --generate-ssh-keys

Would this command create the cluster?

Yes

No

(Correct)

Explanation
Correct Answer – B
No, this is not the right command.
The right way to create the cluster is mentioned in the Microsoft documentation
For more information on creating a cluster, one can go to the below link
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
Question 4: Correct
A development is 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:
Larger image
You have to ensure that files processed by the batch job are placed in the container
referenced by ‘montana_outputcontainerSASURL’ variable. And all files that fail the
conversion are stored in the container referenced by ‘montana_failedcontainerSASURL’.
Snippets of code are given below.
Larger image

You have to complete the code Which of the following would go into Slot1?

GetJob

GetTask

EnableJob

CreateJob

(Correct)

Explanation
Correct Answer – D
We have to use the Create Job method to create a job. This is also mentioned in the Microsoft
documentation.
Since this is clearly given in the Microsoft documentation, all other options are invalid
For more information on using .Net for Azure Batch jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
Question 5: Correct
A development is 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:
Larger image
You have to ensure that files processed by the batch job are placed in the container
referenced by ‘montana_outputcontainerSASURL’ variable. And all files that fail the
conversion are stored in the container referenced by ‘montana_failedcontainerSASURL’.
Snippets of code are given below.
Larger image

You have to complete the code Which of the following would go into Slot2?

TaskFailure

TaskSuccess

(Correct)

TaskCompletion

TaskDone

Explanation
Correct Answer – B
For all files that complete processing, we should set the status as TaskSuccess. An example is
also given in the Microsoft documentation
Since this is clearly given in the Microsoft documentation, all other options are invalid
For more information on using .Net for Azure Batch jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
Question 6: Correct
A development is 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:
Larger image

You have to ensure that files processed by the batch job are placed in the container
referenced by ‘montana_outputcontainerSASURL’ variable. And all files that fail the
conversion are stored in the container referenced by ‘montana_failedcontainerSASURL’.
Snippets of code are given below.
Larger image
You have to complete the code Which of the following would go into Slot3?

TaskFailure

(Correct)

TaskSuccess

TaskCompletion

TaskDone

Explanation
Correct Answer – A
For any task that fails, we can use the TaskFailure property
The right property is TaskFailure and hence all other options are incorrect.
For more information on using .Net for Azure Batch jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
Question 7: Correct
A development is 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:
Larger image

You have to ensure that files processed by the batch job are placed in the container
referenced by ‘montana_outputcontainerSASURL’ variable. And all files that fail the
conversion are stored in the container referenced by ‘montana_failedcontainerSASURL’.
Snippets of code are given below.
Larger image
You have to complete the code Which of the following would go into Slot4?

OutputFiles

(Correct)

FileStorage

ResourceFiles

InputFiles

Explanation
Correct Answer – A
You have to use the OutputFiles property for mentioning all the OutputFiles. An example is also
given in the Microsoft documentation
Since this is clearly given in the Microsoft documentation, all other options are invalid
For more information on using .Net for Azure Batch jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
Question 8: Correct
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?

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.

Explanation
Correct Answers – B and D
Since you need to update the latest messages during the normal synchronization cycles, you can
use the incremental sync operation. You can also use the sorting for the updatedAt column. This
is also mentioned in the Microsoft documentation as given below.

Since this is given in the Microsoft documentation, all other options are incorrect
For more information on the app service mobile offline data sync, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-offline-data-sync
Question 9: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Will the code successfully insert a player record?

Yes

No

(Correct)

Explanation
Correct Answer – B
The code will actually throw an exception. This is because of the following

We are first getting a handle to an existing Game via the GameID


And then next we are trying to add a Player record, but again trying to add a new Game with an
existing GameID. This will throw a primary key exception in the Game table.
For more information on the entity framework, one can go to the below link
https://entityframework.net/ef-version-history
Question 10: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

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

Yes

No

(Correct)
Explanation
Correct Answer – B
The code does have a bug, but it will not insert an additional copy of the Game record
The code is trying to add a game with an existing GameID which will throw an exception
For more information on the entity framework, one can go to the below link
https://entityframework.net/ef-version-history
Question 11: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

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

Yes

No

(Correct)

Explanation
Correct Answer -B
The code does have a bug, but it will not insert a Game record
The code is trying to add a game with an existing GameID which will throw an exception
For more information on the entity framework, one can go to the below link
https://entityframework.net/ef-version-history
Question 12: Correct
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?

Azure Resource

HTTPS Endpoint

(Correct)

Basic

Client cert

Explanation
Correct Answer – B
An example of this is given in the Microsoft documentation
Since this is clearly mentioned, all other options are incorrect
For more information on how to use mutual certificates with API management, one can go to the
below link
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-
certificates
Question 13: Correct
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?

Azure Resource

HTTPS Endpoint

Basic

Client cert

(Correct)

Explanation
Correct Answer – D
An example of this is given in the Microsoft documentation
Since this is clearly mentioned, all other options are incorrect
For more information on how to use mutual certificates with API management, one can go to the
below link
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-
certificates
Question 14: Correct
A software company is developing a software solution. The software solution is for a food
delivery-based company. The software needs to adhere to the following workflow:
- A driver selects the restaurants for which they will deliver orders.-
- Orders are sent to all available drivers in an area.
- Only orders for the selected restaurants will appear for the driver.
- The first driver to accept an order removes it from the list of available orders.
The application needs to make use of the Azure Service Bus service.
Which of the following actions would you implement for this requirement? Choose 3
answers from the options given below

Create a Service Bus topic for each restaurant for which a driver can receive messages.

Create a single Service Bus topic

(Correct)

Create a single Service Bus subscription

Create a single Service Bus Namespace

(Correct)

Create a Service Bus Namespace for each restaurant for which a driver can receive messages.

Create a Service Bus Subscription for each restaurant for which a driver can receive messages.

(Correct)

Explanation
Correct Answers – B, D and F
You should first create a Service Bus Namespace. Option E is incorrect since creating a
namespace for each restaurant would just be a maintenance overhead and difficult to keep track
via a program.
Here since the driver needs to choose the restaurant, that means the driver can be a subscriber.
Here you should have just one Topic. If you have multiple topics, then an order needs to be sent
to all topics. Then deleting an order once it has been picked by a driver will an issue. So, Option
A gets ruled out.
You can create subscriptions and create rules based on driver and area.
For more information on Azure Service Bus, one can go to the below link
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview
Question 15: Correct
A company has an application that provides product data to external consultants.
Azure API Management is used to publish API's to the consultants.
The API needs to meet the following requirements:
- Support alternative input parameters.
- Remove formatting text from responses.
- Provide additional context to back-end services.

Which type of policy would you use for the following requirement "Rewrite the request
URL to match to the format expected by the web service"

Inbound

(Correct)

Outbound

Backend

Error

Explanation
Correct Answer – A
An example of this is given in the Microsoft documentation

Since this is clearly mentioned, all other options are incorrect


For more information on API management transformation URL’s, one can go to the below link
https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-
policies
Question 16: Correct
A company has an application that provides product data to external consultants.
Azure API Management is used to publish API's to the consultants.
The API needs to meet the following requirements:
- Support alternative input parameters.
- Remove formatting text from responses.
- Provide additional context to back-end services.

Which type of policy would you use for the following requirement "Remove formatting text
from responses"

Inbound

Outbound

(Correct)

Backend

Error

Explanation
Correct Answer - B
You can use policy expressions and find and replace to format the text in the response. An
example of this is given in the Microsoft documentation
Since this is clearly mentioned, all other options are incorrect
For more information on API management transformation URL’s and a blog article on the same,
one can go to the below link
https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-
policies
https://azure.microsoft.com/fr-fr/blog/policy-expressions-in-azure-api-management/
Question 17: Correct
A company has an application that provides product data to external consultants.
Azure API Management is used to publish API's to the consultants.
The API needs to meet the following requirements:
- Support alternative input parameters.
- Remove formatting text from responses.
- Provide additional context to back-end services.

Which type of policy would you use for the following requirement "Forward the user ID
that is associated with the subscription key for the original request to the back-end service"

Inbound

(Correct)

Outbound

Backend

Error

Explanation
Correct Answer - A
An example of this is given in the Microsoft documentation
Since this is clearly mentioned, all other options are incorrect
For more information on API management transformation URL’s, one can go to the below link
https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-
policies
Question 18: Correct
A development team has published a Web App to the Azure Web App Service. They are
also using Application Insights for the Web App for monitoring purposes. They have to
ensure that the cost for Application Insights does not exceed a pre-set budget.
Which of the following would you implement to adhere to this requirement?

Implement ingestion sampling using the Azure portal.

Set a daily cap for the Application Insights instance.

(Correct)

Implement adaptive sampling using the Azure portal.


Implement adaptive sampling using the Application Insights SDK.

Implement ingestion sampling using the Application Insights SDK.

Explanation
Correct Answer – B
In Application Insights, if you go to Usage and estimated costs, you have the option to set a
Daily cap. This can allow you to control costs for the Application Insights resource.

Since this is clear from the implementation, all other options are incorrect
For more information on managing costs for Application Insights, one can go to the below link
https://docs.microsoft.com/en-us/azure/azure-monitor/app/pricing
Question 19: Correct
A development team is developing an application. The application will be working with
customer data. The application will also be making use of Azure Redis Cache. You need to
invalidate the cache when the customer data is changed. You have to complete the below
code to comply with the requirement:
Larger image
Which of the following will go into Slot1?

IDatabase cache=Connection.GetDatabase();

(Correct)

IDatabase cache=Connection.GetCache();

ICache cache=Connection.GetDatabase();

ICache cache=Connection.GetCache();

Explanation
Correct Answer – A
The right way is to use the IDatabase interface. Also you need to use the GetDatabase() method.
This is also mentioned in the Microsoft documentation.
Since this is clearly given in the Microsoft documentation, all other options are incorrect
For more information on an example on how to work with Azure Redis from .Net, one can go to
the below link
https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-dotnet-how-to-use-azure-
redis-cache
Question 20: Correct
A development team is developing an application. The application will be working with
customer data. The application will also be making use of Azure Redis Cache. You need to
invalidate the cache when the customer data is changed. You have to complete the below
code to comply with the requirement:
Larger image

Which of the following will go into Slot2?

cache.KeyDelete(p_Customer);

(Correct)

cache.ValueDelete(p_Customer);

cache.StringGet(p_Customer);

cache.StringSet(p_Customer);
Explanation
Correct Answer – A
Since you have to invalidate the cache, you have to delete the Key itself
Option B is incorrect since you need to work with keys and not the values
Option C is incorrect this is used to get the string value
Option D is incorrect this is used to set the string value
For more information on an example on how to work with Azure Redis from .Net, one can go to
the below link
https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-dotnet-how-to-use-azure-
redis-cache
Question 21: Correct
A company is creating an application to carry out restaurant bookings. The data will be
indexed by the Azure Search service.
The solution in Azure Search must meet the following requirements:
- Users must be able to search for restaurants by name, description, location, and cuisine.
- Users must be able to narrow the results further by location, cuisine, rating, and family-
friendliness.
- All words in descriptions must be included in searches.

You need to add annotations to the restaurant class.


Larger image
Which of the following would be the right annotation for Slot1?

[IsSearchable,IsFilterable]

[IsFilterable,IsFacetable,Required]

[IsSearchable]

(Correct)


[IsSearchable,Required]

Explanation
Correct Answer – C
Since the name field only needs to be searchable, we can just add the [IsSearchable] filter
The Microsoft documentation mention the below features on each Index attribute

Since this is the ideal approach, all other options are incorrect
For more information on an index in the Azure Search service, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-what-is-an-index
Question 22: Correct
A company is creating an application to carry out restaurant bookings. The data will be
indexed by the Azure Search service.
The solution in Azure Search must meet the following requirements:
- Users must be able to search for restaurants by name, description, location, and cuisine.
- Users must be able to narrow the results further by location, cuisine, rating, and family-
friendliness.
- All words in descriptions must be included in searches.

You need to add annotations to the restaurant class.


Larger image
Which of the following would be the right annotation for Slot2?

[IsSearchable,IsFilterable]

[IsFilterable,IsFacetable,Required]

[IsSearchable]

[IsSearchable,Required]
(Correct)

Explanation
Correct Answer – D
Since the description field needs to be included in the search, we need to ensure we also have the
Required annotation in addition to the IsSearchable index attribute
The Microsoft documentation mention the below features on each Index attribute

Since this is the ideal approach, all other options are incorrect
For more information on an index in the Azure Search service, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-what-is-an-index
Question 23: Correct
A company is creating an application to carry out restaurant bookings. The data will be
indexed by the Azure Search service.
The solution in Azure Search must meet the following requirements:
- Users must be able to search for restaurants by name, description, location, and cuisine.
- Users must be able to narrow the results further by location, cuisine, rating, and family-
friendliness.
- All words in descriptions must be included in searches.

You need to add annotations to the restaurant class.


Larger image
Which of the following would be the right annotation for Slot3?

[IsSearchable,IsFilterable]

(Correct)

[IsFilterable,IsFacetable,Required]

[IsSearchable]


[IsSearchable,Required]

Explanation
Correct Answer – A
Since we need to ensure that we can both make the field searchable and can filter the results, we
need to include both the IsSearchable and the IsFilterable index attribute
The Microsoft documentation mention the below features on each Index attribute

Since this is the ideal approach, all other options are incorrect
For more information on an index in the Azure Search service, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-what-is-an-index
Question 24: Correct
A company is creating an application to carry out restaurant bookings. The data will be
indexed by the Azure Search service.
The solution in Azure Search must meet the following requirements:
- Users must be able to search for restaurants by name, description, location, and cuisine.
- Users must be able to narrow the results further by location, cuisine, rating, and family-
friendliness.
- All words in descriptions must be included in searches.

You need to add annotations to the restaurant class.


Larger image
Which of the following would be the right annotation for Slot4?

[IsSearchable,IsFilterable]

(Correct)

[IsFilterable,IsFacetable,Required]

[IsSearchable]


[IsSearchable,Required]

Explanation
Correct Answer – A
Since we need to ensure that we can both make the field searchable and can filter the results, we
need to include both the IsSearchable and the IsFilterable index attribute
The Microsoft documentation mention the below features on each Index attribute

Since this is the ideal approach, all other options are incorrect
For more information on an index in the Azure Search service, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-what-is-an-index
Question 25: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You have to ensure that the requirements for the Security PIN in the table in the Azure
SQL database are met.
You propose the following solution
“Using the Azure Portal, add Data Masking to the SecurityPin column, and exclude the dbo
user. Add a SQL security policy with a filter predicate based on the user identity”

Does the solution meet the requirement?

Yes

No

(Correct)

Explanation
Correct Answer – B
Data Masking is normally used when you want to mask certain parts of a column data value.
Here we need to ensure that the Security PIN cannot be deciphered at all.
For more information on Dynamic Data masking, one can go to the below link
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dynamic-data-masking-get-
started
Question 26: Incorrect
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You have to ensure that the requirements for the Security PIN in the table in the Azure
SQL database are met.
You propose the following solution:
“Enable Always Encrypted for the SecurityPin column using a certificate based on a trusted
certificate authority. Ensure users are given instructions to ensure that the certificate is
installed on user machines”
Does the solution meet the requirement?

Yes

(Correct)

No

(Incorrect)

Explanation
Correct Answer – A
Yes, you can use certificates from a valid certificate authority for enabling Always on
Encryption. An example is also given in the Microsoft documentation.

You have to also ensure that the certificate is installed on other user’s system as well.
For more information on Always Encrypted using a certificate store, one can go to the below link
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-always-encrypted
Question 27: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You propose the following solution:
“Enable Always Encrypted for the SecurityPin column using a certificate contained in Azure
Key Vault and grant the WebAppldentity service principal access to the certificate”

Does the solution meet the requirement?

Yes

(Correct)

No

Explanation
Correct Answer – A
Yes, this is the right way to implement security for the underlying Security PIN column. An
example is also given in the Microsoft documentation.

For more information on always encryption, one can go to the below link
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-always-encrypted-azure-key-
vault
Question 28: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You need to secure the database string in the Database.cs class file. You need to complete
the database string as shown below:
Larger image
Which of the following will go into Slot1?

Integrated Security=SSPI

(Correct)

Trusted_Connection=False

Network Library=DBNSSOCN

MultipleActiveResultSets=True

Explanation
Correct Answer – A
Having the Integrated Security=SSPI ensures that we use Window authentication which is a
more secure way of authentication
The Microsoft documentation mentions the following
Option B is incorrect since this would mean that we need to specify a user name and password to
connect to the database

Option C is incorrect since this is used for specifying the network library
Option D is incorrect since this is used for enabling multiple active result sets
For more information on the connection string syntax, one can go to the below link
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-syntax
Question 29: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

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

Which of the following will go into Slot2?

Encrypt=True

(Correct)

Integrated Security=True


Failover Partner = False

Named Pipes = True

Explanation
Correct Answer – A
Since we need to encrypt data in transit as part of the case study, we have to set the Encrypt Key
word to True

Option B is incorrect since we are already using the Integrated Security=SSPI in the prior option
Option C is incorrect since this is used to specify the name of the failover partner server where
database mirroring is configured.
Option D is incorrect since this is used to specify a local address for the database
For more information on the connection string syntax, one can go to the below link
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-string-syntax
Question 30: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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:
Larger image
Which of the following would go into Slot1 to complete the script?

-PermissionsToKeys wrapkey, unwrapkey, get

(Correct)

-PermissionsToKeys create, encrypt, decrypt

-PermissionsToCertificates wrapkey, unwrapkey, get

-PermissionsToCertificates create, encrypt, decrypt

Explanation
Correct Answer - A
An example of this is given in the Microsoft documentation. Here the required permissions for
accessing the key from the Key vault for the Azure storage account are carried out via
powershell
Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on using customer encryption keys with the storage account, one can go to
the below link
https://docs.microsoft.com/en-us/azure/storage/common/storage-service-encryption-customer-
managed-keys
Question 31: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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:
Larger image
Which of the following would go into Slot1?

Policy

(Correct)

RetryPolicy

RetryOptions

ReconnectRetryPolicy

Explanation
Correct Answer – A
An example of this is given in the Microsoft documentation.
Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on best practices for retry options for various Azure services, one can go to
the below link
https://docs.microsoft.com/en-us/azure/architecture/best-practices/retry-service-specific
Question 32: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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:
Larger image
Which of the following would go into Slot2?

.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)

Explanation
Correct Answer – D
An example of this is given in the Microsoft documentation.
Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on best practices for retry options for various Azure services, one can go to
the below link
https://docs.microsoft.com/en-us/azure/architecture/best-practices/retry-service-specific
Question 33: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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?

Create a SharedAccessBlobPolicy and add it to the containers SharedAccessPolicies. Call


GetSharedAccessSignature on the blob and use the resulting link.

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

(Correct)


Create a SharedAccessAccountPolicy and call GetsharedAccessSignature on storage account and use
the resulting link.

Create a SharedAccessBlobPolicy and set the expiry time to two weeks from today. Call
GetSharedAccessSignature on the container and use the resulting link.

Explanation
Correct Answer – B
An example of this is given in the Microsoft documentation

Option A is incorrect because you cannot add the policy to the container
Option C is incorrect because you need to create a Shared Blob policy
Option D is incorrect because you should create a Shared Access Signature on the BLOB for a
least privilege approach
For more information on using shared access signatures from .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-dotnet-shared-access-signature-
part-2
Question 34: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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?

Implement Application Insights Sampling.

(Correct)

Change the minimum log level in the host.json file for the function.

Create an Application Insights Telemetry Filter.

Set a LogCategoryFilter during startup.

Explanation
Correct Answer – A
The Microsoft documentation mentions the following
Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on Application Insights sampling, one can go to the below link
https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling
Question 35: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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:
Larger image

Which of the following would go into Slot1?


GetAccessTokenAsync()

AzureServiceTokenProvider()

(Correct)

MSITokenProvider()

GetAuthenticationHeaderAsync()

Explanation
Answer – B
An example of this is given in the Microsoft documentation

Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on how to generate tokens for managed identities, one can go to the below
link
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-
to-use-vm-token
Question 36: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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:
Larger image

Which of the following would go into Slot2?

GetAccessTokenAsync()

(Correct)

AzureServiceTokenProvider()

MSITokenProvider()

GetAuthenticationHeaderAsync()

Explanation
Answer – A
An example of this is given in the Microsoft documentation

Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on how to generate tokens for managed identities, one can go to the below
link
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-
to-use-vm-token
Question 37: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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.
Larger image
What would you select as the “Exposed Prefix”?

(Correct)

Explanation
Correct Answer – A
Since we should not expose the prefix we need to make the Prefix as 0.
Since this is the right approach all other options are incorrect
For more information on dynamic data masking, one can go to the below link
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dynamic-data-masking-get-
started
Question 38: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
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.
Larger image

What would you select as the “Exposed Suffix”?

(Correct)

9
Explanation
Correct Answer – B
Since we should expose the last four digits we need to make the suffix as 4.
Since this is the right approach all other options are incorrect
For more information on dynamic data masking, one can go to the below link
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dynamic-data-masking-get-
started
Question 39: Correct
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.
Larger image

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


1,2,3,4

2,4,3,1

(Correct)

1,3,4,2

2,3,1,4

Explanation
Correct Answer – B
The right order is given in the Microsoft documentation as shown below
Since the right order is given in the Microsoft documentation, all other options are incorrect
For more information on creating Azure batch jobs via the CLI, one can go to the below link
https://docs.microsoft.com/en-us/azure/batch/quick-create-cli
Question 40: Correct
A development team is developing an application that works with Azure Table storage.
Below is the table structure:
Larger image

Below are some of the rows in the table:


Larger image
If you need to retrieve the row where the First Name = “James”, which of the following
statement would you issue from a C# program

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"));

Explanation
Correct Answer – C
Since the First Name is the partition Key, we need to use the Partition Key to retrieve the entity.
Options A and B are incorrect since we need to use the Partition Key to query the entity
Option D is incorrect since we need to use QueryComparisons.Equal clause
For more information accessing table storage from .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 41: Correct
A development team is developing an application that works with Azure Table storage.
Below is the table structure:
Larger image

Below are some of the rows in the table:


Larger image

You have the following code statement from a C# program:


Larger image

Would this return all the entities where the RowKey is Smith?

Yes

No
(Correct)

Explanation
Correct Answer – B
Here since we have the AND operator, we need both of the conditions to be fulfilled.

And this is not fulfilled with the following row

For more information on accessing table storage from .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 42: Correct
A development team is developing an application that works with Azure Table storage.
Below is the table structure:
Larger image

Below are some of the rows in the table:


Larger image
Is the below .Net Code query
Larger image

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

Yes

(Correct)

No

Explanation
Correct Answer – A
Yes, this is the same. Below is an example of the request sent from a POSTMAN tool. Here you
can see the valid output of the entity.
For more information on accessing table storage from REST API, one can go to the below link
https://docs.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities
Question 43: Correct
As a developer you need to create a Dockerfile for an application. The application will be
based on ASP.Net core. The application has the following requirements:
- Ensure that the application montanaApp.dll runs at the startup of the docker container
- Run a powershell script called montanascript.ps1 in the Docker container

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

FROM microsoft/dotnet:2.2-aspnetcore-runtime

(Correct)

EXPOSE montanaApp.dll ,montanascript.ps1

ENTRYPOINT ["dotnet", " montanaApp.dll"]

(Correct)


ENTRYPOINT ["montanaApp.dll" ,"montanascript.ps1"]

RUN powershell "montanascript.ps1"

(Correct)

RUN "montanaApp.dll","montanascript.ps1"

Explanation
Correct Answers - A,C and E
Examples of DockerFiles are given in the Microsoft documentation. The below example shows
how to define the base image and run an application on startup of the docker container

And the below example shows how to run a powershell script


Based on the examples given in the documentation, all other options are incorrect
For more information on a complete docker application workflow, one can go to the below link
https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/docker-application-
development-process/docker-app-development-workflow
Question 44: Correct
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 create an Azure Service Bus instance by providing a name, pricing tier, subscription,
resource group, and location.
You need to complete the configuration.
Which Azure CLI or PowerShell command should you run?

New-AzureRmServiceBusQueue -ResourceGroupName "montana-rg" -NamespaceName montana -


Name montanaqueue -EnablePartitioning $False

(Correct)

az group create --name "montana-rg" --location "Central US"

New-AzureRmResourceGroup -Name "montana-rg" -Location "Central US"


New-AzureRmServiceBusNamespace -ResourceGroup "montana-rg" -NamespaceName montana -
Location WestUS -SkuName "Standard"

Explanation
Correct Answer – A
Since the question already states that we have a resource group and namespace in place, we can
just use the “New-AzureRmServiceBusQueue” to create a new queue in the namespace
Since all of the other resources are already in place as per the question, all other options are
invalid
For more information on using the Azure CLI for working with the Azure Service Bus, one can
go to the below link
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli
Question 45: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy3
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
If the team member search for the entire string of “A Bike Store” instead of just
“Bike”, will they get the required result?

Yes

No

(Correct)

Explanation
Correct Answer – B
Here the underlying issue is that the Company name attribute is not marked as searchable so you
will not be able to search for values in the attribute Company Name
For more information on creating an index in Azure Search, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-create-index-portal
Question 46: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy3
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Can you just mark the Company name field with the ‘Searchable’ attribute and run the
query again?

Yes

No

(Correct)

Explanation
Correct Answer – B
You will need to rebuild the entire index again to make searches against the Company name field
Below is an excerpt from the Microsoft documentation on one of the conditions that would
required the entire Index to be rebuilt again.

For more information on how to re-index, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-howto-reindex
Question 47: Correct
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt1-casestudy3
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Can you create a new index with the Company Name attribute marked as ‘Searchable’?

Yes

(Correct)

No

Explanation
Correct Answer – A
Yes, once you mark the field as searchable, then you can search based on the Company Name.
An example is shown below
Here we have created a new index with the Company Name attribute marked as searchable

Then we can use the Search explorer to search based on the Company Name

For more information on creating an index in Azure Search, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-create-index-portal
Question 48: Correct
A team needs to create an Azure CosmosDB account and ensure that regional failover’s are
in place for the account. Which of the following is a valid CLI command for creation of the
CosmosDB account?


az cosmosdb update \ --name "montanacosmosdb" \ --resource-group "montana-rg" \ --locations
"South Central US"=0 "North Central US"=1 "East US"=2

(Correct)

az cosmosdb update \ --name "montanacosmosdb" \ --resource-group "montana-rg" \ --locations 3

az cosmosdb update \ --name "montanacosmosdb" \ --resource-group "montana-rg" \ --locations


"South Central US"=3

az cosmosdb update \ --name "montanacosmosdb" \ --resource-group "montana-rg" \ --enable-


locations

Explanation
Correct Answer – A
The Microsoft documentation mentions the correct CLI command to use for ensuring a Cosmos
DB account is created in multiple regions
Since this is clearly mentioned, all other options are incorrect
For more information on how to enable multi-region for CosmosDB, one can go to the below
link
https://docs.microsoft.com/en-us/azure/cosmos-db/scripts/scale-multiregion-cli
Question 49: Correct
A developer has setup a web application in Azure and also setup Azure CDN to route
requests to the Web App. One of the requirements is to ensure that if users make requests
based on passing an ID parameter, then those requests should always be served from a
Point of Presence.
An example of the URL is given below:
https://montana.com/Customer.aspx?ID=1

Which of the following mode should be set for the query string setting for the CDN service?

Ignore query strings


Default setting

Bypass caching

Cache every unique URL

(Correct)

Explanation
Correct Answer - D
Below are the different settings available for the CDN when it comes to caching of the query
string.
Since we need to ensure that query strings are cached, we have to choose the option of ‘Cache
every unique URL’

Since this is the ideal approach, all other options are incorrect
For more information on working with query strings for CDN, one can go to the below link
https://docs.microsoft.com/en-us/azure/cdn/cdn-query-string
Question 50: Correct
An application is being developed that interacts with BLOB’s in Azure storage. There is a
requirement to ensure that concurrent updates don’t happen for the same BLOB object.
Which of the following would you implement in the code for this requirement?


Set the BLOB properties

Set the BLOB metadata

Set a Lease for the BLOB

(Correct)

Take a snapshot of the BLOB

Explanation
Correct Answer – C
To work with concurrency for BLOB objects, you can acquire a lease for the BLOB. The
Microsoft documentation mentions the following

Since this is the ideal approach, all other options are incorrect
For more information on the lease feature for the BLOB, one can go to the below link
https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob
Question 51: Correct
A development team needs to setup an Azure Web App using the Azure App service. They
also have to ensure that the Web App is connected to an Azure Redis Cluster. They need to
develop an Azure CLI script for this You have to complete the below script for the above-
mentioned requirement:
Larger image
Which of the following would go into Slot1?

az appservice plan create

az webapp create

(Correct)

az redis create

az group create

Explanation
Correct Answer – B
An example of this is given in the Microsoft documentation

Since this is clearly given, all other options are invalid


For more information on the CLI script for an Azure Web app to connect to a Redis cluster, one
can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-connect-to-redis
Question 52: Correct
A development team needs to setup an Azure Web App using the Azure App service. They
also have to ensure that the Web App is connected to an Azure Redis Cluster. They need to
develop an Azure CLI script for this You have to complete the below script for the above-
mentioned requirement:
Larger image

Which of the following would go into Slot2?

az appservice plan create

az webapp create

az redis create
(Correct)

az group create

Explanation
Correct Answer – C
An example of this is given in the Microsoft documentation

Since this is clearly given, all other options are invalid


For more information on the CLI script for an Azure Web app to connect to a Redis cluster, one
can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-connect-to-redis
Question 53: Correct
A development team needs to setup an Azure Web App using the Azure App service. They
also have to ensure that the Web App is connected to an Azure Redis Cluster. They need to
develop an Azure CLI script for this You have to complete the below script for the above-
mentioned requirement:
Larger image
Which of the following would go into Slot3?

az redis list-keys

(Correct)

az redis set-keys

az redis get-keys

az redis update-keys

Explanation
Correct Answer – A
An example of this is given in the Microsoft documentation

Since this is clearly given, all other options are invalid


For more information on the CLI script for an Azure Web app to connect to a Redis cluster, one
can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-connect-to-redis
Question 54: Correct
A development team needs to setup an Azure Web App using the Azure App service. They
also have to ensure that the Web App is connected to an Azure Redis Cluster. They need to
develop an Azure CLI script for this You have to complete the below script for the above-
mentioned requirement:
Larger image
Which of the following would go into Slot4?

redis

appsettings

(Correct)

app

key

Explanation
Correct Answer – B
An example of this is given in the Microsoft documentation

Since this is clearly given, all other options are invalid


For more information on the CLI script for an Azure Web app to connect to a Redis cluster, one
can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-connect-to-redis
Question 55: Correct
You are developing a system that is going to make use of Event Hubs for data streaming.
You have to ensure that data is streamed from the Event Hub to Azure BLOB storage.
Which of the following would you use for this purpose?

Event Grid

Event Hubs Capture


(Correct)

BLOB capture

Resource Manager

Explanation
Correct Answer – B
The Microsoft documentation mentions the following

Since this is clearly given, all other options are invalid


For more information on Event Hubs capture, one can go to the below link
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-capture-enable-through-portal

AZ-203 : Developing Solutions for MS Azure : Practice Test 2 -


Results

Return to review

Attempt 12
All knowledge areas
All questions
Question 1: Correct
A team has created an Index in the Azure Search service. You have to upload data into the
Index. You propose the following steps to carry out from your .Net program:
- Create a SearchServiceClient object to connect to the search index.
- Create a DataContainer that contains the documents which must be added.
- Create a DataSource instance and set its Container property to the DataContainer.
- Set the DataSource property of the SearchServiceCIient

Does the list of steps fulfil the requirement?

Yes

No

(Correct)

Explanation
Correct Answer – B
The correct list of steps is given below as per an example from the Microsoft documentation

For an example on the steps for importing data, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-import-data-dotnet
Question 2: Correct
A team has created an Index in the Azure Search service. You have to upload data into the
Index. You propose the following steps to carry out from your .Net program:
- Create a SearchlndexClient object to connect to the search index
- Create an IndexBatch that contains the documents which must be added.
- Call the Documents.Index method of the SearchlndexClient and pass the IndexBatch.

Does the list of steps fulfil the requirement?

Yes

(Correct)

No

Explanation
Correct Answer – A
Yes, this is the correct list of steps as shown below from the Microsoft documentation

For an example on the steps for importing data, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-import-data-dotnet
Question 3: Correct
A team has created an Index in the Azure Search service. You have to upload data into the
Index. You propose the following steps to carry out from your .Net program:
- Create a SearchlndexClient object to connect to the search index.
- Create a DataContainer that contains the documents which must be added.
- Create a DataSource instance and set its Container property to the DataContainer
- Call the Documents.Search method of the SearchlndexClient and pass the DataSource.
Does the list of steps fulfil the requirement?

Yes

No

(Correct)

Explanation
Correct Answer – B
The correct list of steps is given below as per an example from the Microsoft documentation

For an example on the steps for importing data, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-import-data-dotnet
Question 4: Correct
A developer has created a table in an Azure storage account called "Customers". The data
in the table is partitioned by the column firstname. The developer needs to write a query
that would return all the customers with the first name of "Dave". Which of the following
is the right code segment for the Where clause?

TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "Dave")

(Correct)

TableQuery.GenerateFilterCondition("PartitionKey", Equals, "Dave")

TableQuery.GenerateFilterCondition("firstname", QueryComparisons.Equal, "Dave")

TableQuery.GenerateFilterCondition("firstname", Equal, "Dave")

Explanation
Correct Answer – A
An example of this is given in the Microsoft documentation as shown below. Here you need to
search via the partition key and use the QueryComparisions clause.

Since this is clearly given in the Microsoft documentation, all other options are incorrect
For an example on using table storage from .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 5: Correct
A company is developing an application for a company. The application is making use of
CosmosDB as the backend store. The application store patient details for a hospital. Below
are the key requirements for certain modules:
Requirement 1 - The status for the patient must be the most recent. This should be the case
even if multiple users in different locations update the patient's records
Requirement 2 - The health for a patient is recorded by one module. Here it needs to be
ensured that the data must be either the current version or a prior version
Requirement 3 - When the patient is being discharged, all charges should be processed, and
the final bill should be processed
You have to ensure that you minimize the latency and any impact on the availability of the
solution.
Which of the following consistency level would you choose for Requirement1?

Strong

(Correct)

Bounded Staleness

Consistent Prefix

Eventual

Explanation
Correct Answer – A
Here since the requirement is that the patient’s record should be the most consistent, there is a
need for consistency in data and no staleness. So, we have to choose Strong consistency for this.
The Microsoft documentation mentions the following on the consistency level.
The other consistency level options will not give you the required level of consistency
For more information on consistency levels, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
Question 6: Correct
A company is developing an application for a company. The application is making use of
CosmosDB as the backend store. The application store patient details for a hospital.
Below are the key requirements for certain modules:
Requirement 1 - The status for the patient must be the most recent. This should be the case
even if multiple users in different locations update the patient's records
Requirement 2 - The health for a patient is recorded by one module. Here it needs to be
ensured that the data must be either the current version or a prior version
Requirement 3 - When the patient is being discharged, all charges should be processed, and
the final bill should be processed
You have to ensure that you minimize the latency and any impact on the availability of the
solution.
Which of the following consistency level would you choose for Requirement2?

Strong

Bounded Staleness

(Correct)

Consistent Prefix

Eventual

Explanation
Correct Answer – B
Here you can have consistency up to a certain level. From the Microsoft documentation, you can
see that this consistency level provides a feature of providing consistency up to a certain number
of versions of an item.

Since this is the best consistency preference as per the requirement, all the options are invalid.
For more information on consistency levels, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
Question 7: Correct
A company is developing an application for a company. The application is making use of
CosmosDB as the backend store. The application store patient details for a hospital.
Below are the key requirements for certain modules:
Requirement 1 - The status for the patient must be the most recent. This should be the case
even if multiple users in different locations update the patient's records
Requirement 2 - The health for a patient is recorded by one module. Here it needs to be
ensured that the data must be either the current version or a prior version
Requirement 3 - When the patient is being discharged, all charges should be processed, and
the final bill should be processed
You have to ensure that you minimize the latency and any impact on the availability of the
solution.
Which of the following consistency level would you choose for Requirement3?

Strong

Bounded Staleness

Consistent Prefix


Eventual

(Correct)

Explanation
Correct Answer – D
Since we here we just need to wait for the final charges, we can just wait for all changes to take
effect so here the most effective would be Eventual consistency.
The Microsoft documentation mentions the following on the consistency level.

Since this is the best consistency preference as per the requirement, all the options are invalid.
For more information on consistency levels, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
Question 8: Correct
CASE STUDY (Q8-11)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Which of the following will go into Slot1?

Region

(Correct)

Phone


Email

ID

Explanation
Correct Answer – A
Since the question states that we will be using Region to load balance the data, we have to use
that as the partition key. The Microsoft documentation mentions the following on the partition
key design

For more information on Azure Table storage design, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-design-guide
Question 9: Correct
CASE STUDY (Q8-11)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Which of the following will go into Slot2?

Region

Phone

Email

(Correct)

ID

Explanation
Correct Answer – C
You need to have a value for the RowKey. So, if the Phone field has missing values for some of
the entities, then we have to choose Email as the RowKey. The Microsoft documentation
mentions the following on the Row Key

For more information on understanding the table service data model, one can go to the below
link
https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-the-table-service-data-
model
Question 10: Correct
CASE STUDY (Q8-11)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Which of the following will go into Slot3?

CloudTable

(Correct)

CloudTableClient

TableEntity

TableEntityAdapter

Explanation
Correct Answer – A
Since we are passing in a table parameter, and this would be a reference to our cloud table, we
would need to use the CloudTable data type.
An example snippet of code in the Microsoft documentation is given below
Since this is clearly given in the Microsoft documentation, all other options are incorrect
For more information on using table storage with .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 11: Correct
CASE STUDY (Q8-11)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy1
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Which of the following will go into Slot4?

TableEntity query=TableEntity.Retrieve<Customer>(p_partitionkey,p_rowkey)

TableOperation query=TableOperation.Retrieve<Customer>(p_partitionkey,p_rowkey)
(Correct)

TableResult query=TableQuery.Retrieve<Customer>(p_partitionkey,p_rowkey)

TableResultSegment query=TableResult.Retrieve<Customer>(p_partitionkey,p_rowkey)

Explanation
Correct Answer – B
If we need to retrieve an entity based on the partition and row key , we will need to use the
TableOperation method.
An example snippet of code in the Microsoft documentation is given below

Since this is clearly given in the Microsoft documentation, all other options are incorrect
For more information on using table storage with .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 12: Correct
A team is developing a software that will generate large data sets. These large data sets will
be processed by nodes in the Azure Batch Service. In the program , you have to create the
compute nodes for Azure Batch. Which of the following would you do?

In the program, implement a class for TaskAddParameter

In the program, implement a class for JobAddParameter

In the program, call the method - BatchClient.PoolOperations.CreatePool

(Correct)

In the program, call the method - BatchClient.VMOperations.CreateVM

Explanation
Correct Answer – C
The Microsoft documentation clearly gives the command for creating a pool of Virtual Machines
as shown below

The Batch client class and the CreatePool method are used to create a pool of instances
Since this is clearly given in the Microsoft documentation, all other options are incorrect
For more information on using .Net to work with Batch clients, one can go to the below link
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet

Question 13: Correct


A team is developing container-based applications that need to be deployed to a
Kubernetes cluster in Azure. You have to create the cluster and ensure the services are
running as desired. Which of the following commands would you execute? Choose 4
answers from the options given below

az aks create

(Correct)

az group create

(Correct)

kubectl apply

(Correct)

az appservice plan create

az aks get-credentials

(Correct)

Explanation
Correct Answers – A, B, C and E
An example of the steps which need to be followed are given below
The first command is used to create a resource group in Azure. An example is given below
The next command is used to create the kubernetes cluster. An example is given below

Next you need to merge the Kubernetes cluster credentials. An example is given below

And then finally you can use “kubectl apply” to deploy your application onto the cluster
Option D is incorrect since we don’t need an App service plan for a Kubernetes cluster.
For more information on using the Azure CLI to work with Kubernetes clusters, one can go to
the below link
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
Question 14: Correct
A company has a web application that has been deployed using the Azure Web App
service. The current service plan being used is D It needs to be ensured that the application
infrastructure can automatically scale when the CPU load reaches 85 percent. You also
have to ensure costs are minimized. Which of the following steps would you implement to
achieve the requirements? Choose 4 answers from the options given below

Enable autoscaling on the Web application

(Correct)

Configure a scale condition


(Correct)

Configure the web application to use the Standard App Service Plan

(Correct)

Configure the web application to use the Premium App Service Plan

Add a scale rule.

(Correct)

Explanation
Correct Answers: A, B, C and E
Since the explanation to this question could not fit here, please visit the following external link to
read the detailed explanation
Read explanation to the question here
Question 15: Incorrect
A company is planning on using the Azure CDN service to distribute static images.
Below is a set of steps in a random order which would be followed by the CDN service.
1. The Origin server will return an image to the Edge server in the Point of Presence. The
edge server will cache the image and return the image to the user
2. If no edge server in the Point of Presence has an image in the cache, the Point of
Presence will request the image from the origin server.
3. A user requests an image from the CDN URL. The DNS routes the request to the best
performing Point of Presence location
4. Subsequent requests for the image may be directed to the same Point of Presence. The
Point of Presence will return the image if the TTL has not expired.
Which of the following is the correct process of how the Content Delivery service would
distribute the images?

3,2,1,4
(Correct)

2,1,3,4

(Incorrect)

1,2,3,4

4,3,2,1

Explanation
Correct Answer - A
An example of this is given in the Microsoft documentation
Since the steps are clearly mentioned, all other options are incorrect
For more information on Azure Web App Autoscaling, one can go to the below link
https://docs.microsoft.com/en-us/azure/cdn/cdn-overview
Question 16: Correct
A team needs to manage several Logic Apps. There is a need to change definitions, add new
logic and optimize the applications on a regular basis. You need to ensure that you use the
right tools for the right purpose.
Which of the following would you use to edit B2B workflows?

Logic Apps Designer


Code View Editor

Enterprise Integration Pack

(Correct)

API Connections

Explanation
Correct Answer – C
This is given in the Microsoft documentation

Since this is clearly given, all other options are incorrect


For more information on enterprise integration with B2B, one can go to the below link
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-b2b
Question 17: Correct
A team needs to manage several Logic Apps. There is a need to change definitions, add new
logic and optimize the applications on a regular basis. You need to ensure that you use the
right tools for the right purpose.
Which of the following would you use to edit definitions in JSON?

Logic Apps Designer

Code View Editor

(Correct)

Enterprise Integration Pack

API Connections

Explanation
Correct Answer – B
You can use the App Code view of Azure Logic Apps as shown below.

Since this is evident from the implementation, all other options are invalid.
For more information on authoring definitions in Azure Logic Apps, one can go to the below
link
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-author-definitions
Question 18: Correct
A team needs to manage several Logic Apps. There is a need to change definitions, add new
logic and optimize the applications on a regular basis. You need to ensure that you use the
right tools for the right purpose.
Which of the following would you use to visually add functionality to the Logic App?

Logic Apps Designer

(Correct)


Code View Editor

Enterprise Integration Pack

API Connections

Explanation
Correct Answer – A
You can use the Logic Apps Designer as shown below. There you can create and add
functionality to the Logic App using the Designer.

Since this is evident from the implementation, all other options are invalid.
For more information on an example on using Azure Logic Apps, one can go to the below link
https://docs.microsoft.com/en-us/azure/logic-apps/quickstart-create-first-logic-app-workflow
Question 19: Correct
A team is developing a project management service by using ASP.NET. One of the modules
of the service needs to allow users to search for keywords in the index data hosted in Azure
Search. You need to implement code that creates the object which is used to create indexes
in the Azure Search service.
Which of the following objects would you use for this purpose? Choose 2 answers from the
options given below

SearchService

SearchlndexCIient

SearchServiceClient

(Correct)

SearchCredentials

(Correct)

Explanation
Correct Answers – C and D
You have to use the SearchServiceClient and use the Indexes property as shown below in the
Microsoft documentation. And the other object you would use is the SearchCredentials object
which has the credentials to connect to the Search service.

Since this is clearly given in the Microsoft documentation, all other options are incorrect
For more information on creating an index in .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/search/search-create-index-dotnet
Question 20: Correct
A company needs to develop a script that will do the following:
- Create an Azure Web App
- Create the Web App service plan
- Ensure automatic deployment of code from Github

The following variables are in place:


Larger image

You have to complete the following script:


Larger image

Which of the following would go into Slot1?

az webapp create

az appservice plan create


(Correct)

az webapp deployment

az group assign

Explanation
Correct Answer – B
This is given as an example in the Microsoft documentation

Question 21: Correct


A company needs to develop a script that will do the following:
- Create an Azure Web App
- Create the Web App service plan
- Ensure automatic deployment of code from Github

The following variables are in place:


Larger image
You have to complete the following script:
Larger image

Which of the following would go into Slot2?

az webapp create

(Correct)

az appservice plan create

az webapp deployment

az group assign
Explanation
Correct Answer – A
This is given as an example in the Microsoft documentation

Since this is clearly given in the documentation, all other options are incorrect
For more information on using the CLI for deployment, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-github
Question 22: Correct
A company needs to develop a script that will do the following:
- Create an Azure Web App
- Create the Web App service plan
- Ensure automatic deployment of code from Github

The following variables are in place:


Larger image
You have to complete the following script:
Larger image

Which of the following would go into Slot3?

az webapp create

az appservice plan create

az webapp deployment

(Correct)

az group assign
Explanation
Correct Answer – C
This is given as an example in the Microsoft documentation

Since this is clearly given in the documentation, all other options are incorrect
For more information on using the CLI for deployment, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-github
Question 23: Correct
A company needs to develop a script that will do the following:
- Create an Azure Web App
- Create the Web App service plan
- Ensure automatic deployment of code from Github

The following variables are in place:


Larger image
You have to complete the following script:
Larger image

Which of the following would go into Slot4?

--repo-url

(Correct)

--github-deploy

--github-repo

--repo-deploy
Explanation
Correct Answer – A
This is given as an example in the Microsoft documentation

Since this is clearly given in the documentation, all other options are incorrect
For more information on using the CLI for deployment, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-github
Question 24: Correct
Your team is developing Azure Web jobs. You have to decide on the type of Webjobs to be
used for different scenarios.
- Runs on all instances that the web app runs on.
- Have the ability to restrict the web job to run on a single instance
- Supports remote debugging
- Ability to run based on a schedule

Which of the following web job type would you choose for the below requirement?
“Supports remote debugging”

Triggered

Continuous

(Correct)

Scheduled

Instance

Explanation
Correct Answer – B
This is given in the Microsoft documentation as shown below

Since this is clearly given in the documentation, all other options are incorrect
For more information on creating web jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/webjobs-create
Question 25: Correct
Your team is developing Azure Web jobs. You have to decide on the type of Webjobs to be
used for different scenarios.
- Runs on all instances that the web app runs on.
- Have the ability to restrict the web job to run on a single instance
- Supports remote debugging
- Ability to run based on a schedule

Which of the following web job type would you choose for the below requirement?
“Ability to run based on a schedule”

Triggered

(Correct)

Continuous

Scheduled

Instance

Explanation
Correct Answer – A
This is given in the Microsoft documentation as shown below
Since this is clearly given in the documentation, all other options are incorrect
For more information on creating web jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/webjobs-create
Question 26: Correct
A company is developing a web site. They are planning on deploying the web site to Azure.
There is a requirement to ensure that the web site remains available when it experiences
high volumes of traffic. You need to minimize on cost. Which of the following would you
consider from a deployment perspective?

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.

Deploy the website to a virtual machine. Configure the virtual machine to automatically scale when
the CPU load is high.

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)

Deploy the website to a virtual machine. Configure a Scale Set to increase the virtual machine
instance count when the CPU load

Question 27: Correct


A developer is creating code to implement the Azure batch service. You have to implement
the method to submit a job to the Batch service. Which method would you use?

JobOperations.CreateJob()

(Correct)

CloudJob.Enable(IEnumerable<BatchClientBehavior>)

CloudJob.CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken)

JobOperations.EnableJob(String, Enumerable<BatchClientBehavior>)

JobOperations.EnableJobAsync(String. IEnumerable<BatchClientBehavior>. CancellationToken)

Explanation
Correct Answer – A
This is given as an example in the Microsoft documentation
Since this is clearly given in the Microsoft documentation, all other options are incorrect
For more information on an example of using Azure Batch with .Net, one can go to the below
link
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet

Question 28: Correct


A developer is deploying a web application to Azure. The Web application uses Azure
Active Directory for authentication. There is a requirement to implement multifactor
authentication for the application. Which of the following needs to be done to fulfil this
requirement? Choose 2 answers from the options given below

In Azure AD, create a new conditional access policy.

(Correct)

In Azure AD, enable application proxy

Configure the website to use Azure AD B2C.

In Azure AD conditional access, enable the baseline policy.


Upgrade to Azure AD Premium.

(Correct)

Explanation
Correct Answers - A and E
The Microsoft documentation mentions the following
Conditional access policies can be used to ensure that Multi-factor is implemented for users.
The Microsoft documentation also has a quick start tutorial on how to implement MFA for apps
using conditional access policies.

To use conditional access policies, you need to have Azure AD Premium licensing.

Option B is incorrect since you need to use conditional access policies and not application proxy
Option C is incorrect since this does not have the feature for Multi-factor authentication
Option D is incorrect since the baseline is already in place and only allows MFA for
administrators
For more information on conditional access policies, one can go to the below link
https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/overview
Question 29: Correct
A company is setting role definitions for various departments in their IT department.
Below are some of the requirements:
- The development teams should be able to communicate with Microsoft support
- The IT customer center team should be able to view Azure resources and create support
tickets
- Custom role definitions need to be in place for the various requirements based on existing
role definitions.

Which of the following powershell command would you use to create the custom role?

Get-AzRoleDefinition -Name "Reader" | ConvertTo-Json Out-File C:\Sample.json

(Correct)

Set-AzRoleDefinition -Name "Reader" | ConvertTo-Json Out-File C:\Sample.json

Update-AzRoleDefinition -Name "Reader" | ConvertTo-Json Out-File C:\Sample.json

Update-AzRoleDefinition -Name "Reader"

Explanation
Correct Answer – A
First you have to get an existing role definition using the Get-AzRoleDefinition command. An
example from the Microsoft documentation is given below
Since this is clearly shown in the documentation, all other options are incorrect
For more information on creating custom roles, one can go to the below link
https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles-powershell
Question 30: Correct
A company is setting role definitions for various departments in their IT department.
Below are some of the requirements:
- The development teams should be able to communicate with Microsoft support
- The IT customer center team should be able to view Azure resources and create support
tickets
- Custom role definitions need to be in place for the various requirements based on existing
role definitions.

Which of the following action would be applicable to allow a team to contact Microsoft
support?

"*/read.Microsoft.support"

"*"


“Microsoft.Support/*”

(Correct)

“/*/Microsoft.Support/*”

Explanation
Correct Answer – C
If you look at the built-in role and see an example for actions to allow support to raise Microsoft
support tickets, you can see the required action

Since this is clearly shown in the documentation, all other options are incorrect
For more information on the built-in roles, one can go to the below link
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
Question 31: Correct
A team is developing an ASP.NET Core application. The Application needs to log
information onto Application Insights. You have to enable logging. You also have to ensure
that log messages can be correlated to events tracked by Application Insights. Partial code
snippets are given below. You have to complete the missing slots for the code.
Larger image
Which of the following would go into Slot1?

IncludeEventId

ServerFeatures

LoggerFilterOptions

ApplicationServices

ApplicationInsightsLoggerOptions

(Correct)

TrackExceptionsAsExceptionTelemetry

Explanation
Correct Answer – E
This is given as an example in a github article

Since the implementation is clearly given, all other options are incorrect
For more information on logging in ASP.Net Core, one can go to the below link
https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Logging
Question 32: Correct
A team is developing an ASP.NET Core application. The Application needs to log
information onto Application Insights. You have to enable logging. You also have to ensure
that log messages can be correlated to events tracked by Application Insights. Partial code
snippets are given below.
Larger image

You have to complete the missing slots for the code. Which of the following would go into
Slot2?

IncludeEventId

(Correct)

ServerFeatures

LoggerFilterOptions

ApplicationServices

ApplicationInsightsLoggerOptions

TrackExceptionsAsExceptionTelemetry

Explanation
Correct Answer - A
This is given as an example in a github article

Since the implementation is clearly given, all other options are incorrect
For more information on logging in ASP.Net Core, one can go to the below link
https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Logging

Question 33: Correct


A team is developing an ASP.NET Core application. The Application needs to log
information onto Application Insights. You have to enable logging. You also have to ensure
that log messages can be correlated to events tracked by Application Insights. Partial code
snippets are given below. You have to complete the missing slots for the code.
Larger image
Which of the following would go into Slot3?

IncludeEventId

ServerFeatures

LoggerFilterOptions

ApplicationServices

(Correct)

ApplicationInsightsLoggerOptions

TrackExceptionsAsExceptionTelemetry

Explanation
Correct Answer – D
This is given as an example in a github article

Since the implementation is clearly given, all other options are incorrect
For more information on logging in ASP.Net Core, one can go to the below link
https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Logging
Question 34: Correct
Your team has developed an application API based on the OpenAPI specification. You
have to ensure that the API can be accessed via an Azure API management service
instance. Which of the following Azure powershell command would you run?

Import-AzureRmApiManagementApi -Context $montanaApiMgmtContext -SpecificationFormat


"Swagger" -SpecificationPath $montanaSwaggerPath -Path $montanaPath

New-AzureRmApiManagementBackend -Context $montanaApiMgmtContext -Url $montanaurl -


Protocol http

New-AzureRmApiManagement -ResourceGroupName $montana-rg -Name $montananame -


Location $Location -Organization "Montana" -AdminEmail $montanaadmin

(Correct)


New-AzureRmApiManagementBackendProxy -Url $montanaurl

Explanation
Correct Answer – C
First you need to create a new API management instance as shown below

Option A is incorrect since this is used to import an Azure API Management API from a file or a
URL in Web Application Description Language (WADL), Web Services Description Language
(WSDL), or Swagger format
Option B is incorrect since this is used to create a new backend for the API
Option D is incorrect since this is used is just used to create a new backend proxy
For more information on creating an API Instance, one can go to the below link
https://docs.microsoft.com/en-us/azure/api-management/powershell-create-service-instance
Question 35: Correct
A company is developing an application. The application will be storing data about game
scores for players. A class called PlayerScore is in place in the code as a Table Entity. The
table is populated with thousands of records. You need to design code that will retrieve 10
records where the score exceeds 4000. The following snippets of code have been put in
place:
Larger image
Larger image

Does the code query the Azure Table and retrieve the TimePlayed property from the table?

Yes

No

(Correct)

Explanation
Correct Answer - B
No, since the Select part is in place, this will only select the score property.

For more information on table operations in .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 36: Correct
A company is developing an application. The application will be storing data about game
scores for players. A class called PlayerScore is in place in the code as a Table Entity. The
table is populated with thousands of records. You need to design code that will retrieve 10
records where the score exceeds 4000. The following snippets of code have been put in
place:
Larger image

Larger image
Does the code return a maximum of ten records?

Yes

(Correct)

No

Explanation
Correct Answer – A
Yes, because of the Take condition which limits the rows, the number of records will be limited
to 10.

For more information on table operations in .Net, one can go to the below link
https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-dotnet
Question 37: Correct
A company is developing an application. The application will be storing data about game
scores for players. A class called PlayerScore is in place in the code as a Table Entity. The
table is populated with thousands of records. You need to design code that will retrieve 10
records where the score exceeds 4000. The following snippets of code have been put in
place:
Larger image

Larger image
Does the code return a maximum of ten records?

Does the code return all records to the client? The client will then display the records
where the score is greater than 4000?

Yes

(Correct)

No

Explanation
Correct Answer – A
Here since the query is performed on a property that is not related to the Partition Key, all the
rows from the table will be fetched. The Microsoft documentation mentions the following

For more information on designing table storage, one can go to the below link
https://docs.microsoft.com/en-us/azure/storage/tables/table-storage-design-for-query
Question 38: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You have to ensure that all sign-in and sign-out events can be processed by the
EventGridController.
You propose the following solution:
“Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out
events.”
Does this solution meet the requirement?

Yes

(Correct)

No

Explanation
Correct Answer - A
Yes, you can create topics for both the sign in and sign out events.
For more information on posting to a custom topic, one can go to the below link
https://docs.microsoft.com/en-us/azure/event-grid/post-to-custom-topic
Question 39: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You have to ensure that all sign-in and sign-out events can be processed by the
EventGridController.
You propose the following solution:
“Create a new Azure Event Grid subscription for all authentication that delivers messages
to an Azure Event Hub. Use the subscription to process sign-out events”
Does this solution meet the requirement?


Yes

No

(Correct)

Explanation
Correct Answer – B
The Azure Event Hub is normally used as a data ingestion service
For more information on Event Hubs, one can go to the below link
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-about

Question 40: Correct


CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You have to ensure that all sign-in and sign-out events can be processed by the
EventGridController.
You propose the following solution:
“Create a new Azure Event Grid topic and add a subscription for the events.”
Does this solution meet the requirement?

Yes

No
(Correct)

Explanation
Correct Answer – B
It is better to create separate topics. Since the sign-outs need to be processed immediately, you
should create a separate topic for the sign in a separate topic for the sign-out process.
For more information on posting to a custom topic, one can go to the below link
https://docs.microsoft.com/en-us/azure/event-grid/post-to-custom-topic
Question 41: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You are designing the class that will be used to parse the Event Data from the Event Grid.
You have to complete the below class segment:
Larger image
Which of the following will go into Slot1?

id

(Correct)

eventType

topic


metadataVersion

Explanation
Correct Answer – A
Since the EventGridController.cs file refers to the id and topic value, we need to ensure these are
in place in the class definition for the object
The Microsoft documentation below specifies the Event Schema for the Event Grid

For more information on the Event Grid schema, one can go to the below link
https://docs.microsoft.com/en-us/azure/event-grid/event-schema
Question 42: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
You are designing the class that will be used to parse the Event Data from the Event Grid.
You have to complete the below class segment:
Larger image
Which of the following will go into Slot2?

id

eventType

topic

(Correct)


metadataVersion

Explanation
Correct Answer – C
Since the EventGridController.cs file refers to the id and topic value, we need to ensure these are
in place in the class definition for the object
The Microsoft documentation below specifies the Event Schema for the Event Grid

For more information on the Event Grid schema, one can go to the below link
https://docs.microsoft.com/en-us/azure/event-grid/event-schema
Question 43: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
Users report that anomaly detection emails can sometimes arrive several minutes after an
anomaly is detected. How can you resolve this issue?


Ensure that the Azure Function is using an App Service plan.

Set Always On to false

Ensure that the Azure Function is set to use a consumption plan.

Set Always On to true.

(Correct)

Explanation
Correct Answer – D
Here the issue is that the Azure Web app is being stopped when it is not being used. For this you
have to ensure the AlwaysOn setting for the Web App is implemented as True as shown below
The Microsoft documentation mentions the following on the setting.

Options A and C are incorrect since this is not an issue with the Azure Function, but with the
Web App
Option B is incorrect since the setting should be True
For more information on Azure Web App settings, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure
Question 44: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
The “MontanaPolicyService” application must be able to scale on demand. Which Azure
Application Insights data model should you use?

An Application Insights metric

(Correct)

An Application Insights dependency

An Application Insights trace


An Application Insights event

Explanation
Correct Answer – A
You can use Application Insights metrics to scale Web Apps. The Microsoft documentation
gives an example on this where the metrics source is Application Insgihts.

Since this is clearly mentioned in the Microsoft documentation, all other options are incorrect
For more information on autoscaling based on a custom metric, one can go to the below link
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-custom-metric
Question 45: Correct
CASE STUDY (Q38-45)
To answer the question that follows, please read the case study available at the below URL:
http://bit.ly/az-203-pt2-casestudy2
(Open a new Tab in the browser and paste the above URL to view the case study. Do not
close THIS current exam tab)

Question
There is a plan to use Azure Redis Cache to improve the performance of the
“MontanaPolicyService” application. Which of the following would you store in Azure
Redis Cache?

HttpContext.Items

ViewState

Session state

(Correct)

TempData

Explanation
Correct Answer – C
You would ideally store the session state in Azure Redis. The Microsoft documentation mentions
the following as one of the patterns or use cases for using Azure Redis.

For more information on Azure Redis, one can go to the below link
https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-overview
Question 46: Correct
A company maintains an existing Azure SQL Database. Keys which can be used to encrypt
the database is stored in the Azure Key Vault. The database contains the following
columns:
- FirstName
- LastName
- Age
- SSN
An external consulting firm has been given the responsibility to manage the database. But
you have to ensure that the external party does not have the ability to access the data in the
SSN column of the table.
You decide on using the following protection method:
"Enable AlwaysOn encryption"
Would this protection method fulfil the requirement?

Yes

(Correct)

No

Explanation
Correct Answer – A
A similar example of this is given in the Microsoft documentation as shown below. So, you
should ensure AlwaysOn Encryption for this requirement
For more information on AlwaysOn Encryption for Azure SQL Database, please go ahead and
visit the below URL
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-always-encrypted-azure-key-
vault
Question 47: Correct
A company maintains an existing Azure SQL Database. Keys which can be used to encrypt
the database is stored in the Azure Key Vault. The database contains the following
columns:
- FirstName
- LastName
- Age
- SSN
An external consulting firm has been given the responsibility to manage the database. But
you have to ensure that the external party does not have the ability to access the data in the
SSN column of the table.
You decide on using the following protection method:
"Set the column encryption setting as disabled"
Would this protection method fulfil the requirement?

Yes

No

(Correct)

Explanation
Correct Answer – B
You have to setup AlwaysOn Encryption. This is how you can protect certain columns in the
Azure SQL Database
For more information on AlwaysOn Encryption for Azure SQL Database, please go ahead and
visit the below URL
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-always-encrypted-azure-key-
vault
Question 48: Correct
A company maintains an existing Azure SQL Database. Keys which can be used to encrypt
the database is stored in the Azure Key Vault. The database contains the following
columns:
- FirstName
- LastName
- Age
- SSN
An external consulting firm has been given the responsibility to manage the database. But
you have to ensure that the external party does not have the ability to access the data in the
SSN column of the table.
You decide on using the following protection method:
"Assign users to the Public fixed database role"
Would this protection method fulfil the requirement?

Yes

No

(Correct)

Explanation
Correct Answer - B
Roles are more from a permission level aspect from the entire database perspective and not from
a column to column perspective
For more information on security for SQL databases, please go ahead and visit the below URL
https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/getting-
started-with-database-engine-permissions?view=sql-server-2017
Question 49: Correct
A company maintains an existing Azure SQL Database. Keys which can be used to encrypt
the database is stored in the Azure Key Vault. The database contains the following
columns:
- FirstName
- LastName
- Age
- SSN
An external consulting firm has been given the responsibility to manage the database. But
you have to ensure that the external party does not have the ability to access the data in the
SSN column of the table.
You decide on using the following protection method:
"Store column encryption keys in the system catalogue view of the database"
Would this protection method fulfil the requirement?

Yes

No

(Correct)

Explanation
Correct Answer – B
The keys should always be stored in the Azure Key vault from a security perspective and should
not be stored in the database itself.
The Microsoft documentation mentions the following

For more information on AlwaysOn Encryption for Azure SQL Database, please go ahead and
visit the below URL
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-always-encrypted-azure-key-
vault
Question 50: Correct
A development team is developing an application that needs to be deployed to an Azure
Virtual Machine. It needs to be ensured that the underlying disk is encrypted using a Key
from the Azure Key Vault service. Which of the following powershell cmdlets would you
execute for this requirement? Choose 3 answers from the options given below

New-AzVM

(Correct)

New-AzVmDiskEncryption

Set-AzVmDiskEncryptionExtension

(Correct)

Set-AzVM

Get-AzKeyVault

(Correct)

Explanation
Correct Answers – A, C and E
First ensure that the Virtual Machine is in place.
Also ensure that you have an Azure Key vault already in place.
And then finally use the Set-AzVmDiskEncryptionExtension to enable encryption on the disk
An example of this is given in the Microsoft documentation

Option B is invalid since this is not a valid cmdlet


Option D is invalid since this is used to set a VM as generalized
For more information on encrypting a VM, please go ahead and visit the below URL
https://docs.microsoft.com/en-us/azure/security/quick-encrypt-vm-powershell
Question 51: Correct
A consultant needs to deploy Web Applications to the Azure Web App service for 4
customers. Each customer needs to have the application running on a separate individual
instance. The following key requirements are also in place:
- Ability to automatically scale on demand
- Ability to use deployment slots to test staging environments
- All Azure resources should be located in a separate isolated network
- Costs need to be minimized
Which of the following would you choose for the App Service Plan?

Basic

Standard

Premium

Isolated

(Correct)

Explanation
Correct Answer – D
Here the defining requirement is to ensure that Azure resources are located in a separate
environment, and for that we need to use the Isolated App Service Plan
The Microsoft documentation mentions the following

The Isolated App Service plan supports Auto Scaling and Deployment slots
Since this is the only viable option, all other options are incorrect
For more information on App Service Plans, please go ahead and visit the below URL
https://azure.microsoft.com/en-us/pricing/details/app-service/plans/
Question 52: Correct
A consultant needs to deploy Web Applications to the Azure Web App service for 4
customers. Each customer needs to have the application running on a separate individual
instance. The following key requirements are also in place:
- Ability to automatically scale on demand
- Ability to use deployment slots to test staging environments
- All Azure resources should be located in a separate isolated network
- Costs need to be minimized
How many instances would you keep running for the requirement?

(Correct)

12

16

Explanation
Correct Answer – A
Since each we need to ensure each customer’s Web app is running on a separate instance and
since we also need to cut down on costs , we should limit the number of instances to 4.
Since this is the only viable option, all other options are incorrect
For more information on App Service Plans, please go ahead and visit the below URL
https://azure.microsoft.com/en-us/pricing/details/app-service/plans/
Question 53: Correct
Your team is developing Azure Web jobs. You have to decide on the type of Webjobs to be
used for different scenarios.
- Runs on all instances that the web app runs on.
- Have the ability to restrict the web job to run on a single instance
- Supports remote debugging
- Ability to run based on a schedule

Which of the following web job type would you choose for the below requirement?
“Runs on all instances that the web app runs on.”

Triggered

Continuous

(Correct)

Scheduled

Instance

Explanation
Correct Answer – B
This is given in the Microsoft documentation as shown below
Since this is clearly given in the documentation, all other options are incorrect
For more information on creating web jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/webjobs-create
Question 54: Correct
Your team is developing Azure Web jobs. You have to decide on the type of Webjobs to be
used for different scenarios.
- Runs on all instances that the web app runs on.
- Have the ability to restrict the web job to run on a single instance
- Supports remote debugging
- Ability to run based on a schedule

Which of the following web job type would you choose for the below requirement?
“Have the ability to restrict the web job to run on a single instance”

Triggered

Continuous

(Correct)

Scheduled

Instance

Explanation
Correct Answer – B
This is given in the Microsoft documentation as shown below

Since this is clearly given in the documentation, all other options are incorrect
For more information on creating web jobs, one can go to the below link
https://docs.microsoft.com/en-us/azure/app-service/webjobs-create
Retake testContinue

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy