AZ-204 Exam QuestionsBrowse all questions from this exam

AZ-204 Exam - Question 78


HOTSPOT -

You are developing an Azure Function App. You develop code by using a language that is not supported by the Azure Function App host. The code language supports HTTP primitives.

You must deploy the code to a production Azure Function App environment.

You need to configure the app for deployment.

Which configuration values should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam AZ-204 Question 78
Show Answer
Correct Answer:
Exam AZ-204 Question 78

Box 1: Docker container -

A custom handler can be deployed to every Azure Functions hosting option. If your handler requires operating system or platform dependencies (such as a language runtime), you may need to use a custom container. You can create and deploy your code to Azure Functions as a custom Docker container.

Box 2: PowerShell core -

When creating a function app in Azure for custom handlers, we recommend you select .NET Core as the stack. A "Custom" stack for custom handlers will be added in the future.

PowerShell Core (PSC) is based on the new .NET Core runtime.

Box 3: 7.0 -

On Windows: The Azure Az PowerShell module is also supported for use with PowerShell 5.1 on Windows.

On Linux: PowerShell 7.0.6 LTS, PowerShell 7.1.3, or higher is the recommended version of PowerShell for use with the Azure Az PowerShell module on all platforms.

Reference:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-7.1.0

Discussion

33 comments
Sign in to comment
SaintBahamut
Apr 27, 2022

answer is wrong: if you pick docker container you cant specify stack and version, So ill go with >Code >Custom Handler >custom (only option when you pick Custom Handler)

hubekpeter
Nov 20, 2022

Sorry first answer should be docker

JustHereToLearn
Dec 13, 2022

To further support this answer see this video tutorial from Microsoft official channel where they also select "Custom Handler" and do not use Docker: https://www.youtube.com/watch?v=roWbjuo-c30

Esward
Jan 30, 2023

Agreed

TonyMel
Mar 24, 2023

correct, in 2023Mar24, score: 904/1000

adilkhan
Mar 27, 2023

all questions were from exam topics?

adilkhan
Mar 27, 2023

all questions were from exam topics?

mihailos
Aug 30, 2023

Got it in exam on 28/08/23. Went with this answer. Scored 912

130nk3r5
Jan 2, 2024

Got this today. Went with answer here. Score 927

InversaRadice
Feb 10, 2024

Given answer is correct...

EricCao
Oct 16, 2022

I checked it on Azure portal and the answer should be Code > Custom Handler > custom

JamieS
Jan 27, 2023

Just tried it to, he's right., Code > Custom Handler > Custom

warchoon
Feb 22, 2023

Did you use a language that is NOT supported by the Azure Function App host?

NelsonAI
Apr 28, 2022

Runtime Stack and Version are only available when you choose Publish Code, so Docker Container is incorrect. Right answer: - code - custom handler - custom

nlk0
Aug 26, 2023

Got this today 26/08/2023, went with the most voted. 880 Case study was contoso -> 9 questions + 35 question, two series. 3 of them were not from examptopics, all others were

LittleBean
Dec 16, 2023

did you bought contributor access?

vinodshetty
Sep 4, 2022

03 Sep 2022

MysticalSam
Jun 10, 2023

This question was in today's exam at 10-June-2023

kvtborad
Aug 8, 2023

I got this question on 6th August 2023. chose highly voted. passed with 904. I got Case study: city and Lights. All questions are from ExamTopics. Code, Custom Handler, Custom

macobuzi
Aug 16, 2023

Thank you for informing us! Glad to hear questions are from here.

royalbaby
Jul 7, 2024

Passed the exam. Got this Q on 07/07. Case Study - City Power & Lights Code > Custom Handler - Custom

cecho123
Oct 2, 2022

It feels like both approaches are correct, however the note about HTTP primitives support caught my attention. "Any language that supports HTTP primitives can implement a custom handler". https://learn.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers

hubekpeter
Nov 20, 2022

Code/Custom Handler/Custom - Custom handlers are lightweight web servers that receive events from the Azure Functions host. Any language that supports HTTP primitives can implement a custom handler. This means that custom handlers can be used to create functions in languages that aren't officially supported.

juanckar
Jul 6, 2023

This was on the exam (July 2023). Went with highly voted. Scored 917

Tarajee
Sep 11, 2023

Got this on exam 2023sept

NPE_
Nov 8, 2023

Got this on the exam Nov. 07 2023

11_NickName_11
Nov 12, 2023

Have you passed? Which one you choose: Code > Custom Handler > Custom?

SoftSol
Apr 26, 2022

I think the runtime stack should be a custom handler, should it not? https://docs.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers

azure_dunce
Apr 26, 2022

It should be custom handler - https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-other?tabs=rust%2Cwindows

OPT_001122
Nov 19, 2022

code custom handler custom

NikolaPops
Jan 3, 2023

I think Docker is correct because you can easily have updated versions of your runtime stack using pre-built docker images. But I'd say its Docker/custom/custom

warchoon
Feb 22, 2023

It's not logical, but MS recommends using Core https://learn.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers#deploying

Priya0703
Feb 20, 2023

Got this question on exam today 20-02-2023

70PineApple
Feb 20, 2023

Got this in exam today..20/02/23 score: 817

Defa
Mar 7, 2023

Going for: > Code > Custom > Custom

Kluk_Kluk
Mar 10, 2023

Custom handlers are lightweight web servers that receive events from the Azure Functions host. Any language that supports HTTP primitives can implement a custom handler. https://learn.microsoft.com/en-us/azure/azure-functions/supported-languages

sivaj
Mar 13, 2023

A custom handler can be deployed to every Azure Functions hosting option. If your handler requires operating system or platform dependencies (such as a language runtime), you may need to use a custom container. When creating a function app in Azure for custom handlers, we recommend you select .NET Core as the stack. A "Custom" stack for custom handlers will be added in the future. The given answer is correct

red0400
Mar 15, 2023

Answer is - Code Custom Handler Custom

RuffBoii
Sep 22, 2023

Had this on my exam today.

nikipediaa
Sep 26, 2023

me too, today

richardc7
Sep 28, 2023

got in the exam 28/09/2023

CarlosTheBoldest
Dec 11, 2023

I got this question on my exam, 2023Dec, go with what I remember was the most voted answer. Score 902, most of the questions were here, slightly different on wording because the Azure Ad <-> Entra Id change. Case was City Power & Light. Good luck!

Veeresh114
Jan 25, 2024

Does exam topics include case studies in these 200 questions or need to buy premium?

arunkuml
Dec 14, 2023

Got it in the exam 14/12/23. Went with given answer. All questions are from ExamTopics. Case study - VanArsdel, Ltd (11 questions)

JeganHalifax
Mar 11, 2024

I got this question - 09/03/224

onlyforheros
Mar 14, 2024

Got it in exam on 13.03.2024. Score: 910.

renewss
Jun 20, 2024

Custom handlers are lightweight web servers that receive events from the Azure Functions host. Any language that supports HTTP primitives can implement a custom handler. This means that custom handlers can be used to create functions in languages that aren't officially supported. To learn more, see Azure Functions custom handlers. https://www.examtopics.com/exams/microsoft/az-204/view/8/

giuliohome
Jul 4, 2024

if you use a docker container then the runtime and all is defined in the Dockerfile, hence I think it is not docker here because you have a "custom handler" and likely "code" makes more sense as an answer.

AryaNiaz
Aug 29, 2024

When you select Code as the publish option, Azure expects the code to be in a language that the Azure Functions runtime natively supports (such as C#, JavaScript, Python, Java, PowerShell, etc.). Since your language is not supported natively, you would not be able to use the Code option to deploy your function successfully.

Thameur01
Apr 19, 2025

please fix the answer, it just confusing: - Code - Custom Handler - Custom