Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : TOOLS IN DATA SCIENCE
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
You construct a
file. Which formatting rule must be followed to avoid parsing errors?
Choose the correct answer.
Choose the correct answer.
Solution
A student types
in their Bash terminal. If
doesn't exist, what immediately occurs?
Choose the correct answer.
Choose the correct answer.
Solution
A student queries a remote 5GB Parquet file versus 5GB CSV. Parquet queries are much faster. Why?
Choose the correct answer.
Choose the correct answer.
Solution
When committing code to a public repository, which files should be added to
?
Choose all correct options.
Choose all correct options.
Solution
You run
. What happens?
Choose the correct answer.
Choose the correct answer.
Solution
You fetch data with
. What's the difference between
and
?
Choose the correct answer.
Choose the correct answer.
Solution
A Vercel server crashes for 5 minutes. A Cloudflare Worker performs the same API logic. What happens to the Worker?
Choose the correct answer.
Choose the correct answer.
Solution
Ngrok's free tier doesn't support custom subdomains. What's localtunnel's advantage?
Choose the correct answer.
Choose the correct answer.
Solution
A developer tests a sorting function with Hypothesis. Which represents a valid invariant for any sorting function?
Choose the correct answer.
Choose the correct answer.
Solution
In DuckDB, you run
. One row has
latency. How is the
average calculated?
Choose the correct answer.
average calculated?
Choose the correct answer.
Solution
A spatial join of 100K customers to 50 warehouses takes 45 minutes without index, 8 seconds with index. Why?
Choose the correct answer.
Choose the correct answer.
Solution
Your UI on
fetches from
. Browser throws
. How to resolve?
Choose the correct answer.
Choose the correct answer.
Solution
Why pin dependencies (e.g.,
) instead of leaving them unpinned?
Choose the correct answer.
Choose the correct answer.
Solution
A data analyst is computing the distance between two delivery points stored as latitude/longitude pairs (in degrees). They try three approaches:
1. Euclidean distance directly on the raw (lat, lon) degree values.
2. The Haversine formula with Earth radius R = 6371 km.
3. Converting the coordinates to a projected CRS (e.g., UTM) first, then using Euclidean distance in metres.
Which statement is correct?
1. Euclidean distance directly on the raw (lat, lon) degree values.
2. The Haversine formula with Earth radius R = 6371 km.
3. Converting the coordinates to a projected CRS (e.g., UTM) first, then using Euclidean distance in metres.
Which statement is correct?
Solution
Fraud model: 99.2% test accuracy, 52% production accuracy. Dataset chronological,
, rolling stats computed before splitting. What caused collapse?
Choose the correct answer.
Choose the correct answer.
Solution
A Vercel edge function processes logs; needs 40 seconds but hits
at 10 seconds. Why?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
Read the following passage carefully:
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
parameter directly to the response header. The application speeds up drastically. However, when the student tries to test the API locally by fetching from the React UI (
) to the backend (
), the browser abruptly rejects the network connection and throws an error indicating missing headers.
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
). However, the entire server process completely halts when one specific downstream node hangs randomly for 60 seconds without resolving. Finally, a malicious user inputs trick instructions via the "Movie Title" input field, attempting to cleanly override the LLM's primary instructions.
Based on the above data, answer the given subquestions.
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
Based on the above data, answer the given subquestions.
Why does the browser reject the connection when React (
) fetches from FastAPI (
)?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
Read the following passage carefully:
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
parameter directly to the response header. The application speeds up drastically. However, when the student tries to test the API locally by fetching from the React UI (
) to the backend (
), the browser abruptly rejects the network connection and throws an error indicating missing headers.
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
). However, the entire server process completely halts when one specific downstream node hangs randomly for 60 seconds without resolving. Finally, a malicious user inputs trick instructions via the "Movie Title" input field, attempting to cleanly override the LLM's primary instructions.
Based on the above data, answer the given subquestions.
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
Based on the above data, answer the given subquestions.
What does
do?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
Read the following passage carefully:
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
parameter directly to the response header. The application speeds up drastically. However, when the student tries to test the API locally by fetching from the React UI (
) to the backend (
), the browser abruptly rejects the network connection and throws an error indicating missing headers.
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
). However, the entire server process completely halts when one specific downstream node hangs randomly for 60 seconds without resolving. Finally, a malicious user inputs trick instructions via the "Movie Title" input field, attempting to cleanly override the LLM's primary instructions.
Based on the above data, answer the given subquestions.
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
Based on the above data, answer the given subquestions.
What guarantee does "Structured Outputs" provide for LLM JSON generation?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
Read the following passage carefully:
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
parameter directly to the response header. The application speeds up drastically. However, when the student tries to test the API locally by fetching from the React UI (
) to the backend (
), the browser abruptly rejects the network connection and throws an error indicating missing headers.
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
). However, the entire server process completely halts when one specific downstream node hangs randomly for 60 seconds without resolving. Finally, a malicious user inputs trick instructions via the "Movie Title" input field, attempting to cleanly override the LLM's primary instructions.
Based on the above data, answer the given subquestions.
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
Based on the above data, answer the given subquestions.
In
, 4 nodes resolve in 1s, 1 hangs for 60s. What happens?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
Read the following passage carefully:
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
parameter directly to the response header. The application speeds up drastically. However, when the student tries to test the API locally by fetching from the React UI (
) to the backend (
), the browser abruptly rejects the network connection and throws an error indicating missing headers.
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
). However, the entire server process completely halts when one specific downstream node hangs randomly for 60 seconds without resolving. Finally, a malicious user inputs trick instructions via the "Movie Title" input field, attempting to cleanly override the LLM's primary instructions.
Based on the above data, answer the given subquestions.
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
Based on the above data, answer the given subquestions.
How to force the cache to fetch fresh data instead of serving cached results?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
Read the following passage carefully:
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
parameter directly to the response header. The application speeds up drastically. However, when the student tries to test the API locally by fetching from the React UI (
) to the backend (
), the browser abruptly rejects the network connection and throws an error indicating missing headers.
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
). However, the entire server process completely halts when one specific downstream node hangs randomly for 60 seconds without resolving. Finally, a malicious user inputs trick instructions via the "Movie Title" input field, attempting to cleanly override the LLM's primary instructions.
Based on the above data, answer the given subquestions.
A student builds a FastAPI proxy backend to fetch movie data from a public API, pass the data to an LLM to generate a summary, and return the result to a React frontend. Initially, the student notices that every time they refresh the browser, the LLM takes 5 seconds to summarize the exact same movie, running up their API bill rapidly.
To fix this, the student adds an explicit
After resolving the browser block, the student requires the LLM to return the summary strictly as a JSON object. Instead of hoping the LLM formats it correctly, they utilize the API's native "Structured Outputs" constraint parameter to force the mathematical generation of valid JSON architecture.
During load testing, the backend evaluates 5 web requests concurrently using asynchronous execution (
Based on the above data, answer the given subquestions.
How to defend LLM from malicious "Movie Title" input overriding instructions?
Choose the correct answer.
Choose the correct answer.
Solution
Comprehension Passage
HUGGINGFACE_DOCKER_LATENCY
Scenario Context: A developer deploys a Machine Learning text-classification service hosted dynamically on Hugging Face Docker Spaces. During production monitoring, the developer realizes the service boots painfully slowly and frequently crashes abruptly midway through container initialization. Additionally, the developer attempts to map API logs natively into an internal
SQLite file locally within the cloud environment but is unsure if this breaks data retention policies.
Provided Dockerfile:

Provided Backend Structure (
):

Please construct a technical analysis diagnosing the container logic sequence, explicitly addressing the given areas.
Based on the above data, answer the given subquestions.
Scenario Context: A developer deploys a Machine Learning text-classification service hosted dynamically on Hugging Face Docker Spaces. During production monitoring, the developer realizes the service boots painfully slowly and frequently crashes abruptly midway through container initialization. Additionally, the developer attempts to map API logs natively into an internal
Provided Dockerfile:
Provided Backend Structure (
Please construct a technical analysis diagnosing the container logic sequence, explicitly addressing the given areas.
Based on the above data, answer the given subquestions.
Inscript
Docker Layer Caching : Identify the critical sequencing error within the provided Dockerfile. Explain structurally how this specific order ruins layer caching, leading to severely inefficient build pipelines upon every minor code update.
NOTE: Your answer should not exceed 200 words.
Docker Layer Caching : Identify the critical sequencing error within the provided Dockerfile. Explain structurally how this specific order ruins layer caching, leading to severely inefficient build pipelines upon every minor code update.
NOTE: Your answer should not exceed 200 words.
Solution
Comprehension Passage
HUGGINGFACE_DOCKER_LATENCY
Scenario Context: A developer deploys a Machine Learning text-classification service hosted dynamically on Hugging Face Docker Spaces. During production monitoring, the developer realizes the service boots painfully slowly and frequently crashes abruptly midway through container initialization. Additionally, the developer attempts to map API logs natively into an internal
SQLite file locally within the cloud environment but is unsure if this breaks data retention policies.
Provided Dockerfile:

Provided Backend Structure (
):

Please construct a technical analysis diagnosing the container logic sequence, explicitly addressing the given areas.
Based on the above data, answer the given subquestions.
Scenario Context: A developer deploys a Machine Learning text-classification service hosted dynamically on Hugging Face Docker Spaces. During production monitoring, the developer realizes the service boots painfully slowly and frequently crashes abruptly midway through container initialization. Additionally, the developer attempts to map API logs natively into an internal
Provided Dockerfile:
Provided Backend Structure (
Please construct a technical analysis diagnosing the container logic sequence, explicitly addressing the given areas.
Based on the above data, answer the given subquestions.
Inscript
Model Cold Starts : The Hugging Face pipeline initializes globally at application startup. Explain fundamentally why executing parameter weights fetching dynamically during runtime creates massive "Cold Start" execution latency.
NOTE: Your answer should not exceed 200 words.
Model Cold Starts : The Hugging Face pipeline initializes globally at application startup. Explain fundamentally why executing parameter weights fetching dynamically during runtime creates massive "Cold Start" execution latency.
NOTE: Your answer should not exceed 200 words.
Solution
Comprehension Passage
Read the passage carefully and answer the subquestions.
A student builds a browser-based data dashboard to avoid backend server costs. They compile DuckDB and Python into WebAssembly using Pyodide, enabling SQL queries to run directly in the browser. The dashboard downloads a 1.5GB Parquet database locally.
Initially, it works well—Parquet's columnar format allows querying specific columns without lag. However, during a demo, critical issues emerge. First, clicking "Run Complex Query" freezes the entire UI for 10 seconds—animations halt and buttons become unresponsive. Second, attempting to use Python's
library (
,
) crashes the WASM engine with "module unavailable" errors.
Third, loading multiple dashboards across Chrome tabs triggers "Out-Of-Memory" exceptions, forcing the browser to terminate pages. The developer decides to abandon the browser approach and migrate the application to a Docker container running on
.
A student builds a browser-based data dashboard to avoid backend server costs. They compile DuckDB and Python into WebAssembly using Pyodide, enabling SQL queries to run directly in the browser. The dashboard downloads a 1.5GB Parquet database locally.
Initially, it works well—Parquet's columnar format allows querying specific columns without lag. However, during a demo, critical issues emerge. First, clicking "Run Complex Query" freezes the entire UI for 10 seconds—animations halt and buttons become unresponsive. Second, attempting to use Python's
Third, loading multiple dashboards across Chrome tabs triggers "Out-Of-Memory" exceptions, forcing the browser to terminate pages. The developer decides to abandon the browser approach and migrate the application to a Docker container running on
Why does clicking "Run Complex Query" freeze the UI, blocking all clicks and animations?
Solution
Comprehension Passage
Read the passage carefully and answer the subquestions.
A student builds a browser-based data dashboard to avoid backend server costs. They compile DuckDB and Python into WebAssembly using Pyodide, enabling SQL queries to run directly in the browser. The dashboard downloads a 1.5GB Parquet database locally.
Initially, it works well—Parquet's columnar format allows querying specific columns without lag. However, during a demo, critical issues emerge. First, clicking "Run Complex Query" freezes the entire UI for 10 seconds—animations halt and buttons become unresponsive. Second, attempting to use Python's
library (
,
) crashes the WASM engine with "module unavailable" errors.
Third, loading multiple dashboards across Chrome tabs triggers "Out-Of-Memory" exceptions, forcing the browser to terminate pages. The developer decides to abandon the browser approach and migrate the application to a Docker container running on
.
A student builds a browser-based data dashboard to avoid backend server costs. They compile DuckDB and Python into WebAssembly using Pyodide, enabling SQL queries to run directly in the browser. The dashboard downloads a 1.5GB Parquet database locally.
Initially, it works well—Parquet's columnar format allows querying specific columns without lag. However, during a demo, critical issues emerge. First, clicking "Run Complex Query" freezes the entire UI for 10 seconds—animations halt and buttons become unresponsive. Second, attempting to use Python's
Third, loading multiple dashboards across Chrome tabs triggers "Out-Of-Memory" exceptions, forcing the browser to terminate pages. The developer decides to abandon the browser approach and migrate the application to a Docker container running on
Why does Python code like
fail when executing inside Pyodide/WebAssembly in the browser?
Solution
Comprehension Passage
Read the passage carefully and answer the subquestions.
A student builds a browser-based data dashboard to avoid backend server costs. They compile DuckDB and Python into WebAssembly using Pyodide, enabling SQL queries to run directly in the browser. The dashboard downloads a 1.5GB Parquet database locally.
Initially, it works well—Parquet's columnar format allows querying specific columns without lag. However, during a demo, critical issues emerge. First, clicking "Run Complex Query" freezes the entire UI for 10 seconds—animations halt and buttons become unresponsive. Second, attempting to use Python's
library (
,
) crashes the WASM engine with "module unavailable" errors.
Third, loading multiple dashboards across Chrome tabs triggers "Out-Of-Memory" exceptions, forcing the browser to terminate pages. The developer decides to abandon the browser approach and migrate the application to a Docker container running on
.
A student builds a browser-based data dashboard to avoid backend server costs. They compile DuckDB and Python into WebAssembly using Pyodide, enabling SQL queries to run directly in the browser. The dashboard downloads a 1.5GB Parquet database locally.
Initially, it works well—Parquet's columnar format allows querying specific columns without lag. However, during a demo, critical issues emerge. First, clicking "Run Complex Query" freezes the entire UI for 10 seconds—animations halt and buttons become unresponsive. Second, attempting to use Python's
Third, loading multiple dashboards across Chrome tabs triggers "Out-Of-Memory" exceptions, forcing the browser to terminate pages. The developer decides to abandon the browser approach and migrate the application to a Docker container running on
After moving the application to Docker with
in the Dockerfile, running
fails to connect at
. What is missing?
Solution
Shape
Thickness [ / ]
3
All colors