Crowdly
Add to Chrome
Questions Bank (1536241 total)
Which of the following ensures correct volume declaration and usage in `docker-compose.yaml` for storing flagged files?
Add `volumes: - /flagged:/flagged` under the service definition.
0%
Add `volumes: - ./flagged:/flagged` under the service definition.
0%
Add `volumes: - /flagged:/app/flagged` under the service definition.
0%
Add `volumes: - ./flagged:/app/flagged` under the service definition.
0%
View this question
How can you correctly limit the maximum amount of RAM a container can use in `docker-compose.yaml`?
Add `memory: 8g` under the service definition.
0%
Add `mem_limit: 8g` under the service definition.
0%
Add `ram_limit: 8g` under the service definition.
0%
Add `resources: memory: 8g` under the service definition.
100%
View this question
Calculate the current ratio for firm Beta
1.67
0%
3.65
0%
none of the answers is correct
0%
2.59
0%
View this question
In the context of the Dockerized Gradio application for stage 2, which of the following ensures that the Gradio interface is correctly set up for image input and output?
`gr.Interface(fn=sepia, inputs=gr.Image(), outputs=gr.Image())`
0%
`gr.Interface(fn=sepia, inputs=gr.Image(), outputs=gr.Text())`
0%
`gr.Interface(fn=sepia, inputs=gr.Text(), outputs=gr.Text())`
0%
`gr.Interface(fn=sepia, inputs=gr.Text(), outputs=gr.Image())`
0%
View this question
Which of the following is an example of proper version pinning in a `requirements.txt` file?
`gradio==3.23.0`
100%
`gradio`
0%
`gradio<=3.23.0`
0%
`gradio>=3.23.0`
0%
View this question
You have successfully built and started your Docker container for the Gradio "Hello World" application. The container is configured to expose the service on port `7860`. How can you test that the service is running correctly?
Run `curl http://localhost:7860` from your host machine
0%
Run `docker exec -it
curl http://127.0.0.1:7860`
0%
Open a web browser and navigate to `http://localhost:7860`
100%
Run `docker logs
` and check for errors
0%
View this question
Calculate the interest cover ratio for firm Alpha
7.58
✅
54.12
❌
38.88
❌
none of the answers is correct
❌
View this question
Calculate the ROSF ratio for firm Alpha
68.94%
0%
88.62%
0%
60.97%
0%
none of the answers is correct
0%
View this question
Which of the following ensures that the code is run by a user named `appuser` in the container?
`RUN useradd appuser` followed by `USER root`
0%
`RUN adduser appuser` followed by `USER root`
0%
`RUN useradd appuser` followed by `USER appuser`
0%
`RUN adduser --disabled-password --home /app appuser` followed by `USER appuser`
100%
View this question
What is the correct way to ensure the `requirements.txt` file is used and copied in the container?
`RUN pip install -r requirements.txt`
0%
`RUN pip install requirements.txt`
0%
`COPY requirements.txt /app/` followed by `RUN pip install --no-cache-dir -r /app/requirements.txt`
0%
`COPY requirements.txt /app/` followed by `RUN pip install requirements.txt`
0%
View this question
Previous
1
More pages
139039
139040
139041
139042
139043
More pages
153625
Next
Telegram
Instagram
TikTok
Question Bank
Terms of Use
Contact Us
Add to Chrome