Databricks-DE-Pro Data Ingestion and Acquisition Practice Question
A data engineer is configuring an Auto Loader stream to ingest JSON files from an S3 bucket into a Bronze Delta table. The source bucket contains both .json and .json.gz files, and the engineer wants to ensure that only .json files are processed. Which parameter should be set to achieve this?
⚠ Common exam trap
Many exam-takers confuse the parameter that specifies the data format with the one that filters files by extension; cloudFiles.format defines parsing, not selection.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
cloudFiles.pathGlobFilter
Auto Loader provides the cloudFiles.pathGlobFilter option to filter files using glob patterns. Setting it to '*.json' ensures that only files with the .json extension are processed, while other files like .json.gz are ignored. This is the intended mechanism for file selection based on path patterns in Auto Loader, making it the correct choice for this scenario.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
cloudFiles.schemaLocation
Why it's wrong here
The cloudFiles.schemaLocation parameter specifies a location to store the inferred schema and metadata for the stream. It is used for schema evolution and checkpointing, not for filtering files. Setting this parameter would not affect which files are ingested; it only manages schema information and does not restrict file selection based on extension.
- ✗
cloudFiles.includeExistingFiles
Why it's wrong here
This parameter controls whether Auto Loader processes files that already exist in the source location when the stream starts. It does not filter by file extension. Setting it to true would ingest all existing files regardless of format, and setting it to false would ignore existing files. It is unrelated to selecting only .json files and would not prevent .json.gz files from being ingested.
- ✗
cloudFiles.format
Why it's wrong here
The cloudFiles.format parameter specifies the format of the source files, such as json, csv, or parquet. It tells Auto Loader how to parse the file contents, but it does not filter which files are picked up based on their extension. All files in the directory would still be considered, and .json.gz files would also be read as JSON, potentially causing issues.
- ✓
cloudFiles.pathGlobFilter
Why this is correct
The cloudFiles.pathGlobFilter parameter allows you to specify a glob pattern to filter files based on their path or extension. By setting it to '*.json', Auto Loader will only process files ending with .json, excluding .json.gz files. This is the correct way to selectively ingest files by extension in Auto Loader, ensuring only the desired files are read.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
About these practice questions
One of 267 original Databricks-DE-Pro practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Databricks exam blueprint
This Databricks-DE-Pro practice question is part of Courseiva's free Databricks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Databricks-DE-Pro exam.