Az 204 - Sheet1 (2) Flashcards
You have two Hyper-V hosts named Host1 and Host2. Host1 has an Azure virtual machine
named VM1 that was deployed by using a custom Azure Resource Manager template.
You need to move VM1 to Host2.
What should you do?
A. From the Update management blade, click Enable.
B. From the Overview blade, move VM1 to a different subscription.
C. From the Redeploy blade, click Redeploy.
D. From the Profile blade, modify the usage location.
Answer: C
Explanation:
When you redeploy a VM, it moves the VM to a new node within the Azure infrastructure and
then powers it back on, retaining all your configuration options and associated resources.
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure
AD-joined device. The cluster is located in a resource group.
Developers have created an application named MyApp. MyApp was packaged into a container
image.
You need to deploy the YAML manifest file for the application.
Solution: You install the Azure CLI on the device and run the kubectl apply –f
myapp.yaml command.
Does this meet the goal?
A. Yes
B. No
Answer: A
Explanation:
kubectl apply -f myapp.yaml applies a configuration change to a resource from a file or stdin.
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure
AD-joined device. The cluster is located in a resource group.
Developers have created an application named MyApp. MyApp was packaged into a container
image.
You need to deploy the YAML manifest file for the application.
Solution: You install the docker client on the device and run the docker run -it
microsoft/azure-cli:0.10.17 command.
Does this meet the goal?
A. Yes
B. No
Answer: B
Your company has a web app named WebApp1.
You use the WebJobs SDK to design a triggered App Service background task that automatically
invokes a function in the code every time new data is received in a queue.
You are preparing to configure the service processes a queue data item.
Which of the following is the service you should use?
A. Logic Apps
B. WebJobs
C. Flow
D. Functions
Answer: B
Usually you’ll host the WebJobs SDK in Azure WebJobs, but you can also run your jobs in a Worker Role. The Azure WebJobs feature of Azure Web Apps provides an easy way for you to run programs such as services or background tasks in a Web App…
Your company has an Azure subscription.
You need to deploy a number of Azure virtual machines to the subscription by using Azure
Resource Manager (ARM) templates. The virtual machines will be included in a single
availability set.
You need to ensure that the ARM template allows for as many virtual machines as possible to
remain accessible in the event of fabric failure or maintenance.
Which of the following is the value that you should configure for the
platformFaultDomainCount property?
A. 10
B. 30
C. Min Value
D. Max Value
Answer: D
2 or 3 is max for a region so answer should be Max.
Your company has an Azure subscription.
You need to deploy a number of Azure virtual machines to the subscription by using Azure
Resource Manager (ARM) templates. The virtual machines will be included in a single
availability set.
You need to ensure that the ARM template allows for as many virtual machines as possible to
remain accessible in the event of fabric failure or maintenance.
Which of the following is the value that you should configure for the
platformUpdateDomainCount property?
A. 10
B. 20
C. 30
D. 40
Answer: B
Each availability set can be configured with up to three fault domains and twenty update domains.
This question requires that you evaluate the underlined text to determine if it is correct.
You company has an on-premises deployment of MongoDB, and an Azure Cosmos DB account
that makes use of the MongoDB API.
You need to devise a strategy to migrate MongoDB to the Azure Cosmos DB account.
You include the Data Management Gateway tool in your migration strategy.
Instructions: Review the underlined text. If it makes the statement correct, select “No change
required.” If the statement is incorrect, select the answer choice that makes the statement correct.
A. No change required
B. mongorestore
C. Azure Storage Explorer
D. AzCopy
Answer: B
You are developing an e-Commerce Web App.
You want to use Azure Key Vault to ensure that sign-ins to the e-Commerce Web App are
secured by using Azure App Service authentication and Azure Active Directory (AAD).
What should you do on the e-Commerce Web App?
A. Run the az keyvault secret command.
B. Enable Azure AD Connect.
C. Enable Managed Service Identity (MSI).
D. Create an Azure AD service principal.
Answer: C
Explanation:
A managed identity from Azure Active Directory allows your app to easily access other AADprotected resources such as Azure Key Vault.
This question requires that you evaluate the underlined text to determine if it is correct.
Your Azure Active Directory Azure (Azure AD) tenant has an Azure subscription linked to it.
Your developer has created a mobile application that obtains Azure AD access tokens using the
OAuth 2 implicit grant type.
The mobile application must be registered in Azure AD.
You require a redirect URI from the developer for registration purposes.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is
needed.” If the statement is incorrect, select the answer choice that makes the statement correct.
A. No change required.
B. a secret
C. a login hint
D. a client ID
Answer: A
Explanation:
For Native Applications you need to provide a Redirect URI, which Azure AD will use to return
token responses.
You are creating an Azure key vault using PowerShell. Objects deleted from the key vault must
be kept for a set period of 90 days.
Which two of the following parameters must be used in conjunction to meet the requirement?
(Choose two.)
A. EnabledForDeployment
B. EnablePurgeProtection
C. EnabledForTemplateDeployment
D. EnableSoftDelete
Answer: BD
You’ll need to enable soft delete, and then purge protection to make sure that soft-deleted objects are not purged early.
You manage an Azure SQL database that allows for Azure AD authentication.
You need to make sure that database developers can connect to the SQL database via Microsoft
SQL Server Management Studio (SSMS). You also need to make sure the developers use their
on-premises Active Directory account for authentication. Your strategy should allow for
authentication prompts to be kept to a minimum.
Which of the following should you implement?
A. Azure AD token.
B. Azure Multi-Factor authentication.
C. Active Directory integrated authentication.
D. OATH software tokens.
Answer: C
Explanation:
Azure AD can be the initial Azure AD managed domain. Azure AD can also be an on-premises
Active Directory Domain Services that is federated with the Azure AD.
You are developing an application to transfer data between on-premises file servers and Azure
Blob storage. The application stores keys, secrets, and certificates in Azure Key Vault and makes
use of the Azure Key Vault APIs.
You want to configure the application to allow recovery of an accidental deletion of the key
vault or key vault objects for 90 days after deletion.
What should you do?
A. Run the Add-AzKeyVaultKey cmdlet.
B. Run the az keyvault update –enable-soft-delete true –enablepurge-protection true CLI.
C. Implement virtual network service endpoints for Azure Key Vault.
D. Run the az keyvault update –enable-soft-delete false CLI.
Answer: B
Explanation:
When soft-delete is enabled, resources marked as deleted resources are retained for a specified
period (90 days by default). The service further provides a mechanism for recovering the deleted
object, essentially undoing the deletion.
Purge protection is an optional Key Vault behavior and is not enabled by default. Purge
protection can only be enabled once soft-delete is enabled.
When purge protection is on, a vault or an object in the deleted state cannot be purged until the
retention period has passed. Soft-deleted vaults and objects can still be recovered, ensuring that
the retention policy will be followed.
The default retention period is 90 days, but it is possible to set the retention policy interval to a
value from 7 to 90 days through the Azure portal. Once the retention policy interval is set and
saved it cannot be changed for that vault.
You are configuring a web app that delivers streaming video to users. The application makes use
of continuous integration and deployment.
You need to ensure that the application is highly available and that the users’ streaming
experience is constant. You also want to configure the application to store data in a geographic
location that is nearest to the user.
Solution: You include the use of Azure Redis Cache in your design.
Does the solution meet the goal?
A. Yes
B. No
Answer: B
You are configuring a web app that delivers streaming video to users. The application makes use
of continuous integration and deployment.
You need to ensure that the application is highly available and that the users’ streaming
experience is constant. You also want to configure the application to store data in a geographic
location that is nearest to the user.
Solution: You include the use of an Azure Content Delivery Network (CDN) in your design.
Does the solution meet the goal?
A. Yes
B. No
Answer: A
You are configuring a web app that delivers streaming video to users. The application makes use
of continuous integration and deployment.
You need to ensure that the application is highly available and that the users’ streaming
experience is constant. You also want to configure the application to store data in a geographic
location that is nearest to the user.
Solution: You include the use of a Storage Area Network (SAN) in your design.
Does the solution meet the goal?
A. Yes
B. No
Answer: B
You develop a Web App on a tier D1 app service plan.
You notice that page load times increase during periods of peak traffic.
You want to implement automatic scaling when CPU load is above 80 percent. Your solution
must minimize costs.
What should you do first?
A. Enable autoscaling on the Web App.
B. Switch to the Premium App Service tier plan.
C. Switch to the Standard App Service tier plan.
D. Switch to the Azure App Services consumption plan.
Answer: C
Explanation:
Configure the web app to the Standard App Service Tier. The Standard tier supports autoscaling, and we should minimize the cost. We can then enable autoscaling on the web app, add a
scale rule and add a Scale condition.
Your company’s Azure subscription includes an Azure Log Analytics workspace.
Your company has a hundred on-premises servers that run either Windows Server 2012 R2 or
Windows Server 2016, and is linked to the Azure Log Analytics workspace. The Azure Log
Analytics workspace is set up to gather performance counters associated with security from these
linked servers.
You must configure alerts based on the information gathered by the Azure Log Analytics
workspace.
You have to make sure that alert rules allow for dimensions, and that alert creation time should
be kept to a minimum. Furthermore, a single alert notification must be created when the alert is
created and when the alert is resolved.
You need to make use of the necessary signal type when creating the alert rules.
Which of the following is the option you should use?
A. The Activity log signal type.
B. The Application Log signal type.
C. The Metric signal type.
D. The Audit Log signal type.
Answer: C
Explanation:
Metric alerts in Azure Monitor provide a way to get notified when one of your metrics cross a
threshold. Metric alerts work on a range of multi-dimensional platform metrics, custom metrics,
Application Insights standard and custom metrics.
Note: Signals are emitted by the target resource and can be of several types. Metric, Activity log,
Application Insights, and Log
You are developing a .NET Core MVC application that allows customers to research
independent holiday accommodation providers.
You want to implement Azure Search to allow the application to search the index by using
various criteria to locate documents related to accommodation.
You want the application to allow customers to search the index by using regular expressions.
What should you do?
A. Configure the SearchMode property of the SearchParameters class.
B. Configure the QueryType property of the SearchParameters class.
C. Configure the Facets property of the SearchParameters class.
D. Configure the Filter property of the SearchParameters class.
Answer: B
Explanation:
The SearchParameters.QueryType Property gets or sets a value that specifies the syntax of the
search query. The default is ‘simple’. Use ‘full’ if your query uses the Lucene query syntax.
You can write queries against Azure Search based on the rich Lucene Query Parser syntax for
specialized query forms: wildcard, fuzzy search, proximity search, regular expressions are a few
examples.
You are a developer at your company.
You need to update the definitions for an existing Logic App.
What should you use?
A. the Enterprise Integration Pack (EIP)
B. the Logic App Code View
C. the API Connections
D. the Logic Apps Designer
Answer: B
Explanation:
Edit JSON - Azure portal
Sign in to the Azure portal.
From the left menu, choose All services. In the search box, find “logic apps”, and then from the
results, select your logic app.
On your logic app’s menu, under Development Tools, select Logic App Code View.
The Code View editor opens and shows your logic app definition in JSON format.
You are developing a solution for a public facing API.
The API back end is hosted in an Azure App Service instance. You have implemented a
RESTful service for the API back end.
You must configure back-end authentication for the API Management service instance.
Solution: You configure Basic gateway credentials for the Azure resource.
Does the solution meet the goal?
A. Yes
B. No
Answer: B
Explanation:
API Management allows to secure access to the back-end service of an API using client
certificates.
You are developing a solution for a public facing API.
The API back end is hosted in an Azure App Service instance. You have implemented a
RESTful service for the API back end.
You must configure back-end authentication for the API Management service instance.
Solution: You configure Client cert gateway credentials for the HTTP(s) endpoint.
Does the solution meet the goal?
A. Yes
B. No
Answer: A
This is scenario questions.
If backend is accepts HTTP(S)
Then Basic AUTH or Certificate will work.
so Client Certificate + HTTP(s) YES
You are developing a solution for a public facing API.
The API back end is hosted in an Azure App Service instance. You have implemented a
RESTful service for the API back end.
You must configure back-end authentication for the API Management service instance.
Solution: You configure Basic gateway credentials for the HTTP(s) endpoint.
Does the solution meet the goal?
A. Yes
B. No
Answer: A
This is scenario questions.
If backend is accepts HTTP(S)
Then Basic AUTH or Certificate will work.
so Basic + HTTPS Yes
You are developing a solution for a public facing API.
The API back end is hosted in an Azure App Service instance. You have implemented a
RESTful service for the API back end.
You must configure back-end authentication for the API Management service instance.
Solution: You configure Client cert gateway credentials for the Azure resource.
Does the solution meet the goal?
A. Yes
B. No
Answer: B
This is scenario questions.
If backend is accepts HTTP(S)
Then Basic AUTH or Certificate will work.
so Certificate + Azure Resource NO
You are developing a .NET Core MVC application that allows customers to research
independent holiday accommodation providers.
You want to implement Azure Search to allow the application to search the index by using
various criteria to locate documents related to accommodation venues.
You want the application to list holiday accommodation venues that fall within a specific price
range and are within a specified distance to an airport.
What should you do?
A. Configure the SearchMode property of the SearchParameters class.
B. Configure the QueryType property of the SearchParameters class.
C. Configure the Facets property of the SearchParameters class.
D. Configure the Filter property of the SearchParameters class.
Answer: D
Explanation:
The Filter property gets or sets the OData $filter expression to apply to the search query