exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 1 question 7 discussion

Actual exam question from Microsoft's AI-102
Question #: 7
Topic #: 1
[All AI-102 Questions]

DRAG DROP -
You plan to use containerized versions of the Anomaly Detector API on local devices for testing and in on-premises datacenters.
You need to ensure that the containerized deployments meet the following requirements:
✑ Prevent billing and API information from being stored in the command-line histories of the devices that run the container.
✑ Control access to the container images by using Azure role-based access control (Azure RBAC).
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Pull the Anomaly Detector container image.
Step 2: Create a custom Dockerfile
Step 3: Push the image to an Azure container registry.
To push an image to an Azure Container registry, you must first have an image.
Step 4: Distribute the docker run script
Use the docker run command to run the containers.
Reference:
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-intro

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
dinhhungitsoft
Highly Voted 2 years, 7 months ago
I think the it should be: 1. Create a custom docker file 2. Pull the container image (in the dockerfile) 3. Build the image 4 Push to ACR
upvoted 59 times
Aouatef
4 months, 3 weeks ago
1 - the custom dockerfile prevents the billing information from being stored in commandline histories 2 - pull and build are necessary to take into account the requirements defined in the dockerfile 3 - Push to acr where we can define RBAC access rules to the new image
upvoted 1 times
...
sheldon73
1 year, 6 months ago
This makes more sense, In the custom docker file you can define : FROM azure_image...
upvoted 4 times
...
...
mmaguero
Highly Voted 2 months, 1 week ago
ChatGPT: To meet the requirements, perform the following actions in sequence: 1. Create a custom Dockerfile: This allows you to define the specific configuration and dependencies for your containerized deployment. 2. Build the image: Use the Dockerfile to build the container image with the necessary components and configurations. 3. Push the image to an Azure container registry: Store the container image in an Azure container registry to control access and ensure secure storage. 4. Distribute a docker run script: Provide a docker run script that can be used to run the containerized deployment on local devices or in on-premises datacenters. This script should include any necessary environment variables or configuration settings. Note: The actions of pulling the Anomaly Detector container image and pushing the image to Docker Hub are not mentioned in the requirements. Therefore, they are not necessary for meeting the given requirements.
upvoted 22 times
serj
4 months, 3 weeks ago
Does the step "Distribute a docker run script" contradict the requirement "Prevent billing and API information from being stored in the command-line histories of the devices that run the container."?
upvoted 2 times
...
rdemontis
1 year, 1 month ago
I agree with you except for the explanation in the endnote: for me your answer is correct, but the reason why the pull of the anomaly detector image is irrelevant is because you put it in the dockerfile. So it is not necessary to specify this instruction separately otherwise we would have to do the same for all commands in the dockerfile.
upvoted 6 times
...
anto69
11 months ago
agree with u
upvoted 1 times
...
...
angelrishi
Most Recent 1 month ago
Incorrect. Correct answer is: 1. Create custom docker file (as it includes instructions to pull the latest image of anomaly detector) 2. Build the image 3. Push to ACR 4. Distribute Docker Run
upvoted 1 times
...
SAMBIT
2 months, 1 week ago
Pull the Anomaly Detector container image (b): Start by retrieving the official Anomaly Detector container image from a registry. You can use the docker pull command to download it. Create a custom Dockerfile (a): Next, create a custom Dockerfile that defines the instructions for building your specific image. Customize it to include your requirements, such as preventing sensitive information from being stored in command-line histories. Build the image (e): Use the Dockerfile to build your custom image. This step compiles the necessary components and configurations. Push the image to an Azure container registry (d): Finally, store your custom image in an Azure container registry. This ensures controlled access and secure storage.
upvoted 3 times
...
RahulShahane
2 months, 1 week ago
1. Create a custom docker file 2. Pull the container image (in the dockerfile) 3. Build the image 4 Push to ACR This is highly voted answer. Is it correct?....pls help
upvoted 1 times
...
AzureGeek79
2 months, 2 weeks ago
the give answer is correct according to ChatGPT.
upvoted 1 times
...
testmaillo020
3 months, 1 week ago
This is the right one: 1. Pull the Anomaly Detector container image. 2. Create a custom Dockerfile. 3. Build the image. 4. Push the image to an Azure container registry.
upvoted 2 times
...
RahulShahane
3 months, 2 weeks ago
what is correct sequence. All discussion are very confusing. pls help
upvoted 1 times
...
rookiee1111
5 months, 2 weeks ago
1. Pull the anomaly detector 2. build docker file 3. build image 4. publish to ACR this now will become source for all devices to pull the image and run from ACR.
upvoted 3 times
...
nanaw770
6 months, 2 weeks ago
1.Create a custom Dockerfile 2.Build the image 3.Push the image to an Azure container registry 4.Distribute a docker run script From Takedajuku perspective, if you study for 4 days and spend 2 days reviewing, you will have a better chance of passing the exam.
upvoted 1 times
...
TJ001
6 months, 4 weeks ago
it is important to note NOTE: More than one order of answer choices is correct.
upvoted 1 times
...
TJ001
6 months, 4 weeks ago
1. Pull the image 2. Create dockerfile 3. Build 4. Run 5. Push to ACR if required
upvoted 2 times
TJ001
6 months, 1 week ago
while this order is fine technically, after reading the question again i think it is important to push the image to ACR to manage RBAC..So skipping the docker pull and instead pull directly from MCR in the dockerfile is better so my 4 choices are below 1. Create dockerfile 2. Build 3. Push to ACR if required 4. Run
upvoted 2 times
...
...
tolliik
7 months, 1 week ago
1. Create. 2. Build. 3. Push 4. Run Instruction example hello-world image https://learn.microsoft.com/en-us/azure/container-registry/container-registry-quickstart-task-cli
upvoted 6 times
vovap0vovap
6 months, 1 week ago
Yeah, but instructions say "datacenters" - plural. That means basically that step "Distribute a docker run script" is there for a reason.
upvoted 1 times
...
...
varinder82
8 months, 2 weeks ago
Final Answer: 1.Create a custom Dockerfile 2.Build the image 3.Push the image to an Azure container registry 4.Distribute a docker run script:
upvoted 4 times
...
Murtuza
8 months, 3 weeks ago
I think the it should be: 1. Pull the container image (in the dockerfile) 2. Create a custom docker file 3. Build the image 4 Push to ACR
upvoted 4 times
...
evangelist
9 months, 3 weeks ago
check Azure official on youtube: https://www.youtube.com/watch?v=XLQLNazid4I The steps should be 1. Pull the container image (in the dockerfile) 2. Create a custom docker file 3. Build the image 4 Push to ACR
upvoted 11 times
...
Rsp_
1 year ago
Its totally confusing, what should be exact answer
upvoted 3 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 ...