Certified Associate Developer for Apache Spark Practice Test 26
Question 250
At Northridge Retail, after a Spark runtime upgrade (fictional study case R280-C050-1), a developer points a full-snapshot overwrite at a shared parent location containing multiple independent datasets. The change owner wants to avoid damaging unrelated tables, jobs or access. Which change boundary BEST limits the correction to the affected Spark workload? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Limit overwrites to a single dataset directory or managed table target.
- Overwrite only the designated snapshot destination, not neighboring datasets.
- Partition the target output path without changing source-country values.
- Apply the schema to the affected CSV source only.
Explanation
Correct Answer
A:Keep the intervention within this boundary: Limit overwrites to a single dataset directory or managed table target. The reported failure mechanism is: The write path is broader than the intended dataset, so overwrite may remove unrelated data.
Incorrect Answers
B:Overwrite only the designated snapshot destination, not neighboring datasets. The action does not preserve the identified scope boundary: Limit overwrites to a single dataset directory or managed table target.
C:Partition the target output path without changing source-country values. The action does not preserve the identified scope boundary: Limit overwrites to a single dataset directory or managed table target.
D:Apply the schema to the affected CSV source only. It is not the bounded choice for the stated condition: A developer points a full-snapshot overwrite at a shared parent location containing multiple independent datasets. The permitted change must remain: Limit overwrites to a single dataset directory or managed table target.
Question 251
At Northstar Payments, while reconciling a reporting dataset (fictional study case R280-C051-1), a notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. Which corrective Spark operation or design change BEST addresses the reported failure? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Read the table with the Delta-aware source or managed table API where supported.
- Use `mode('append')` after validating schema and deduplication requirements for the target.
- Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax.
- Choose the required overwrite or append policy and remove implicit ignore behavior after approval.
Explanation
Correct Answer
C:Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax. The technical or governance gap is: The path was never loaded or referenced using a supported SQL data-source form. Check the affected state using: Inspect session catalog entries and the actual file format/path.
Incorrect Answers
A:Read the table with the Delta-aware source or managed table API where supported. The recorded mechanism is: The path was never loaded or referenced using a supported SQL data-source form. The proposed action does not correct that mechanism; use: Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax.
B:Use `mode('append')` after validating schema and deduplication requirements for the target. The option targets a different stage or condition. The relevant failure is: The path was never loaded or referenced using a supported SQL data-source form. The needed repair is: Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax.
D:Choose the required overwrite or append policy and remove implicit ignore behavior after approval. The option targets a different stage or condition. The relevant failure is: The path was never loaded or referenced using a supported SQL data-source form. The needed repair is: Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax.
Question 252
At Cloudhaven Apps, during a pipeline migration (fictional study case R280-C051-2), a notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. The engineer wants to distinguish the mechanism before changing code. Which underlying Spark mechanism BEST explains the observed symptom? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
- The path was never loaded or referenced using a supported SQL data-source form.
- The writer did not explicitly set a mode matching the approved incremental append use case.
- Ignore mode skips writing when the destination already exists instead of updating that dataset.
Explanation
Correct Answer
B:The reported symptom is: A notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. Its direct cause is: The path was never loaded or referenced using a supported SQL data-source form. Test that conclusion using: Inspect session catalog entries and the actual file format/path.
Incorrect Answers
A:Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The observed failure instead follows from: The path was never loaded or referenced using a supported SQL data-source form. The alternative does not explain the same dependency.
C:The writer did not explicitly set a mode matching the approved incremental append use case. The observed failure instead follows from: The path was never loaded or referenced using a supported SQL data-source form. The alternative does not explain the same dependency.
D:Ignore mode skips writing when the destination already exists instead of updating that dataset. The observed failure instead follows from: The path was never loaded or referenced using a supported SQL data-source form. The alternative does not explain the same dependency.
Question 253
At Bayshore Healthcare, after a Spark runtime upgrade (fictional study case R280-C051-1), a notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. Competing explanations are being considered; choose the most discriminating check. Which evidence check BEST distinguishes this cause from a different Spark problem? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing.
- Inspect session catalog entries and the actual file format/path.
- Inspect path existence, mode and the intended incremental record keys.
- Compare file timestamps and counts before and after an `ignore` write.
Explanation
Correct Answer
B:Use this focused test: Inspect session catalog entries and the actual file format/path. The test distinguishes the reported condition from alternatives by checking: The path was never loaded or referenced using a supported SQL data-source form.
Incorrect Answers
A:Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect session catalog entries and the actual file format/path.
C:Inspect path existence, mode and the intended incremental record keys. That does not establish whether the stated cause is present: The path was never loaded or referenced using a supported SQL data-source form. The diagnostic is: Inspect session catalog entries and the actual file format/path.
D:Compare file timestamps and counts before and after an `ignore` write. The case requires a discriminating check before any change, not the offered alternative. Use: Inspect session catalog entries and the actual file format/path.
Question 254
At Stonebridge Research, when validating a daily batch (fictional study case R280-C051-2), a notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. A proposed fix has been applied; its result still needs validation. Which measurable outcome BEST confirms the fix works without violating the data contract? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- The SQL query returns expected ORC rows under the intended schema.
- The query returns the committed Delta snapshot with correct rows.
- Existing rows remain and new valid rows are added exactly once.
- Expected daily updates appear rather than silently being skipped.
Explanation
Correct Answer
A:Acceptance requires: The SQL query returns expected ORC rows under the intended schema. That directly tests whether the mechanism was corrected: The path was never loaded or referenced using a supported SQL data-source form.
Incorrect Answers
B:The query returns the committed Delta snapshot with correct rows. Implementation or a check alone is not proof of success. The measurable end state is: The SQL query returns expected ORC rows under the intended schema.
C:Existing rows remain and new valid rows are added exactly once. The alternative cannot demonstrate that the issue has been corrected: A notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. The required result is: The SQL query returns expected ORC rows under the intended schema.
D:Expected daily updates appear rather than silently being skipped. The alternative cannot demonstrate that the issue has been corrected: A notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. The required result is: The SQL query returns expected ORC rows under the intended schema.
Question 255
At Cedarline Telecommunications, when reviewing an incremental load (fictional study case R280-C051-1), a notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. The change owner wants to avoid damaging unrelated tables, jobs or access. Which change boundary BEST limits the correction to the affected Spark workload? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Register or address only that ORC data source.
- Change only the Delta dataset reader, not unrelated Parquet sources.
- Append only into the approved output dataset.
- Change write mode only for the daily export path.
Explanation
Correct Answer
A:The approved limit is: Register or address only that ORC data source. It avoids applying the corrective step beyond the stated failure: A notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error.
Incorrect Answers
B:Change only the Delta dataset reader, not unrelated Parquet sources. This does not enforce the required scope: Register or address only that ORC data source. The specific failure is: The path was never loaded or referenced using a supported SQL data-source form.
C:Append only into the approved output dataset. The action does not preserve the identified scope boundary: Register or address only that ORC data source.
D:Change write mode only for the daily export path. It is not the bounded choice for the stated condition: A notebook executes SQL against raw ORC files using an undefined table name and gets a missing-relation error. The permitted change must remain: Register or address only that ORC data source.
Question 256
At Cobalt Analytics, while reconciling a reporting dataset (fictional study case R280-C052-1), a developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. Which corrective Spark operation or design change BEST addresses the reported failure? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Use `mode('append')` after validating schema and deduplication requirements for the target.
- Choose the required overwrite or append policy and remove implicit ignore behavior after approval.
- Configure an appropriate permissive/fail-fast policy and explicitly inspect invalid records before downstream aggregation.
- Read the table with the Delta-aware source or managed table API where supported.
Explanation
Correct Answer
D:Read the table with the Delta-aware source or managed table API where supported. This addresses the documented mechanism: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. Recovery is demonstrated when: The query returns the committed Delta snapshot with correct rows.
Incorrect Answers
A:Use `mode('append')` after validating schema and deduplication requirements for the target. The recorded mechanism is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The proposed action does not correct that mechanism; use: Read the table with the Delta-aware source or managed table API where supported.
B:Choose the required overwrite or append policy and remove implicit ignore behavior after approval. The recorded mechanism is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The proposed action does not correct that mechanism; use: Read the table with the Delta-aware source or managed table API where supported.
C:Configure an appropriate permissive/fail-fast policy and explicitly inspect invalid records before downstream aggregation. The option targets a different stage or condition. The relevant failure is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The needed repair is: Read the table with the Delta-aware source or managed table API where supported.
Question 257
At Summit Supply, during a pipeline migration (fictional study case R280-C052-2), a developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. The engineer wants to distinguish the mechanism before changing code. Which underlying Spark mechanism BEST explains the observed symptom? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- The writer did not explicitly set a mode matching the approved incremental append use case.
- Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
- Ignore mode skips writing when the destination already exists instead of updating that dataset.
- Ingestion mode and corrupt-record handling were not evaluated for the JSON source.
Explanation
Correct Answer
B:The reported symptom is: A developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. Its direct cause is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. Test that conclusion using: Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing.
Incorrect Answers
A:The writer did not explicitly set a mode matching the approved incremental append use case. This is not the root cause established for the reported condition: A developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. The cause is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
C:Ignore mode skips writing when the destination already exists instead of updating that dataset. The observed failure instead follows from: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The alternative does not explain the same dependency.
D:Ingestion mode and corrupt-record handling were not evaluated for the JSON source. That explanation needs evidence of another fault. The specific mechanism here is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
Question 258
At Granite Insurance, after a Spark runtime upgrade (fictional study case R280-C052-1), a developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. Competing explanations are being considered; choose the most discriminating check. Which evidence check BEST distinguishes this cause from a different Spark problem? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Inspect path existence, mode and the intended incremental record keys.
- Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing.
- Compare file timestamps and counts before and after an `ignore` write.
- Feed valid and broken JSON samples through the declared read options.
Explanation
Correct Answer
B:The needed observation is: Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing. The suspected failure is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The repair should only follow that check.
Incorrect Answers
A:Inspect path existence, mode and the intended incremental record keys. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing.
C:Compare file timestamps and counts before and after an `ignore` write. That does not establish whether the stated cause is present: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The diagnostic is: Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing.
D:Feed valid and broken JSON samples through the declared read options. That does not establish whether the stated cause is present: Direct Parquet reading bypasses Delta transaction-log snapshot semantics. The diagnostic is: Compare Delta log version and rows from the correct Delta reader versus raw Parquet listing.
Question 259
At Elmwood Manufacturing, when validating a daily batch (fictional study case R280-C052-2), a developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. A proposed fix has been applied; its result still needs validation. Which measurable outcome BEST confirms the fix works without violating the data contract? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Existing rows remain and new valid rows are added exactly once.
- Expected daily updates appear rather than silently being skipped.
- Invalid data is visible or rejected under policy and legitimate records stay intact.
- The query returns the committed Delta snapshot with correct rows.
Explanation
Correct Answer
D:The query returns the committed Delta snapshot with correct rows. This is an observable state after the correction: Read the table with the Delta-aware source or managed table API where supported. It confirms the original problem no longer occurs.
Incorrect Answers
A:Existing rows remain and new valid rows are added exactly once. The alternative cannot demonstrate that the issue has been corrected: A developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. The required result is: The query returns the committed Delta snapshot with correct rows.
B:Expected daily updates appear rather than silently being skipped. The alternative cannot demonstrate that the issue has been corrected: A developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. The required result is: The query returns the committed Delta snapshot with correct rows.
C:Invalid data is visible or rejected under policy and legitimate records stay intact. The alternative cannot demonstrate that the issue has been corrected: A developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. The required result is: The query returns the committed Delta snapshot with correct rows.
Question 260
At Lakeside Devices, when reviewing an incremental load (fictional study case R280-C052-1), a developer reads Delta table storage as Parquet and gets an inconsistent snapshot after recent updates. The change owner wants to avoid damaging unrelated tables, jobs or access. Which change boundary BEST limits the correction to the affected Spark workload? Select ONE best answer. This is unofficial original Spark educational practice, not a real certification item.
- Append only into the approved output dataset.
- Change write mode only for the daily export path.
- Apply corrupt-record policy to this JSON feed.
- Change only the Delta dataset reader, not unrelated Parquet sources.
Explanation
Correct Answer
D:Keep the intervention within this boundary: Change only the Delta dataset reader, not unrelated Parquet sources. The reported failure mechanism is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
Incorrect Answers
A:Append only into the approved output dataset. This does not enforce the required scope: Change only the Delta dataset reader, not unrelated Parquet sources. The specific failure is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
B:Change write mode only for the daily export path. This does not enforce the required scope: Change only the Delta dataset reader, not unrelated Parquet sources. The specific failure is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics.
C:Apply corrupt-record policy to this JSON feed. This does not enforce the required scope: Change only the Delta dataset reader, not unrelated Parquet sources. The specific failure is: Direct Parquet reading bypasses Delta transaction-log snapshot semantics.