exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 5 question 4 discussion

Actual exam question from Microsoft's AZ-203
Question #: 4
Topic #: 5
[All AZ-203 Questions]

You develop a gateway solution for a public facing news API. The news API back end is implemented as a RESTful service and uses an OpenAPI specification.
You need to ensure that you can access the news API by using an Azure API Management service instance.
Which Azure PowerShell command should you run?

  • A. Import-AzureRmApiManagementApi ""Context $ApiMgmtContext ""SpecificationFormat "Swagger" -SpecificationPath $SwaggerPath ""Path $Path
  • B. New-AzureRmApiManagementBackend -Context $ApiMgmtContext -Url $Url -Protocol http
  • C. New-AzureRmApiManagement ""ResourceGroupName $ResourceGroup ""Name $Name ""Location $Location ""Organization $Org "" AdminEmail $AdminEmail
  • D. New-AzureRmApiManagementBackendProxy ""Url $ApiUrl
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
New-AzureRmApiManagementBackendProxy creates a new Backend Proxy Object which can be piped when creating a new Backend entity.
Example: Create a Backend Proxy In-Memory Object
PS C:\>$secpassword = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force
PS C:\>$proxyCreds = New-Object System.Management.Automation.PSCredential ("foo", $secpassword)
PS C:\>$credential = New-AzureRmApiManagementBackendProxy -Url "http://12.168.1.1:8080" -ProxyCredential $proxyCreds
PS C:\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\>$backend = New-AzureRmApiManagementBackend -Context $apimContext -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -Title
"first backend" -SkipCertificateChainValidation $true -Proxy $credential -Description "backend with proxy server"
Creates a Backend Proxy Object and sets up Backend
Incorrect Answers:
A: The Import-AzureRmApiManagementApi cmdlet imports 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.
B: New-AzureRmApiManagementBackend creates a new backend entity in Api Management.
C: The New-AzureRmApiManagement cmdlet creates an API Management deployment in Azure API Management.
References:
https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/new-azurermapimanagementbackendproxy?view=azurermps-6.13.0

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
quagmire
Highly Voted 5 years, 2 months ago
Shouldn't the correct answer be A? I don't see why it should be D like the comment says.
upvoted 10 times
boldarev
5 years, 2 months ago
I think alsow, Correct answer is A. An OpenAPI Specification, formerly known as the Swagger Specification.
upvoted 5 times
MAzureLearner2020
4 years, 8 months ago
yes should be a PS C:\>$ApiMgmtContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso" PS C:\>Import-AzureRmApiManagementApi -Context $ApiMgmtContext -SpecificationFormat "Swagger" -SpecificationPath "C:\contoso\specifications\echoapi.swagger" -Path "apis"
upvoted 1 times
...
Juanlu
4 years, 6 months ago
Yes, in my opinion should be A, but it look like is a little confuse.
upvoted 1 times
...
...
...
AK89
Highly Voted 5 years ago
Answer is C Link : https://docs.microsoft.com/en-us/azure/api-management/powershell-create-service-instance#create-an-api-management-service
upvoted 10 times
...
Kumar1988
Most Recent 4 years, 2 months ago
should be D correct ans
upvoted 1 times
...
dancsita
4 years, 3 months ago
According to Whizlabs the Answer is C
upvoted 2 times
...
dtdame
4 years, 4 months ago
New-AzureRmApiManagement is used to create a new instance of the service if I am not wrong about this, then B C D are not relevant to me, A looks like the best option !
upvoted 1 times
...
ahadjithoma
4 years, 6 months ago
You need another Api management service instance for testing. This is done with New-AzApiManagement. So it should be C https://docs.microsoft.com/en-us/azure/api-management/powershell-create-service-instance
upvoted 6 times
...
bhushan_786
4 years, 6 months ago
Yes the answer is C.
upvoted 3 times
...
27close
4 years, 6 months ago
answer c New-AzApiManagement -Name "myapim" -ResourceGroupName "myResourceGroup" ` -Location "West US" -Organization "Contoso" -AdminEmail "[email protected]" https://docs.microsoft.com/en-us/azure/api-management/powershell-create-service-instance#create-an-api-management-service
upvoted 2 times
...
NajamKhan
4 years, 7 months ago
The C is the the correct answer. Here is the answer: https://docs.microsoft.com/en-us/azure/api-management/powershell-create-service-instance#create-an-api-management-service
upvoted 2 times
...
AnkitN
4 years, 9 months ago
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.
upvoted 2 times
cbn
4 years, 4 months ago
Agree. We need a new API management instance, so answer is C
upvoted 1 times
TangAnna
3 years ago
No, we need to import API as A did
upvoted 1 times
...
...
...
ens1z
5 years ago
I think A is the best. https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/import-azurermapimanagementapi?view=azurermps-6.13.0
upvoted 2 times
...
lau13
5 years ago
Import-AzApiManagementApi will import the WSDL/swagger of the API to the application, it cannot help you to ensure you have access to that API. The question is saying - you are developing a gateway solution that will consume a public news API, i.e. that news API backend already exist, you do not need to run New-AzureRmApiManagementBackend to create it again. That's why A & C are both incorrect.
upvoted 3 times
lau13
5 years ago
typo I mean what's why A & B are both incorrect
upvoted 2 times
...
...
barubs
5 years, 1 month ago
It might be A because: https://docs.microsoft.com/en-us/azure/api-management/scripts/powershell-import-api-and-add-to-product?toc=/powershell/module/toc.json # import api from Url But they should clarify what they are asking for...
upvoted 2 times
rrongcheng
4 years, 10 months ago
Yes, I think it's A. The question is to import the existing API to an API Management product. So the cmd is: # import api from Url $api = Import-AzApiManagementApi -Context $context -SpecificationUrl $swaggerUrl -SpecificationFormat Swagger -Path $apiPath
upvoted 1 times
...
...
Jay_2pt0
5 years, 2 months ago
Wouldn't the correct answer be C? https://docs.microsoft.com/en-us/azure/api-management/powershell-create-service-instance#create-an-api-management-service
upvoted 6 times
...
hmirko
5 years, 2 months ago
Can someone provide link with explanation why it should be Backend Proxy and not Backend? To me, it looks like answer is Backend Proxy, since PowerShell for Backend has parameter -Protocol http, which is not well for public facing news API
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...