Certified Associate Developer for Apache Spark Practice Test 29
Question 280
At Redwood Transit, when reviewing an incremental load (fictional study case R280-C056-1), a SQL analyst queries external CSV files without a declared schema and sees all measures as strings. 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.
- Correct only the CSV source schema and dependent queries.
- Apply the codec to the evaluated ORC dataset only.
- Limit the change to the export sink and metadata cleanup if authorized.
- Add parsing only to the affected text feed.
Explanation
Correct Answer
A:Keep the intervention within this boundary: Correct only the CSV source schema and dependent queries. The reported failure mechanism is: Path-based reads need explicit schema or casting for reliable numeric operations.
Incorrect Answers
B:Apply the codec to the evaluated ORC dataset only. The action does not preserve the identified scope boundary: Correct only the CSV source schema and dependent queries.
C:Limit the change to the export sink and metadata cleanup if authorized. It is not the bounded choice for the stated condition: A SQL analyst queries external CSV files without a declared schema and sees all measures as strings. The permitted change must remain: Correct only the CSV source schema and dependent queries.
D:Add parsing only to the affected text feed. It is not the bounded choice for the stated condition: A SQL analyst queries external CSV files without a declared schema and sees all measures as strings. The permitted change must remain: Correct only the CSV source schema and dependent queries.
Question 281
At Meadowvale Robotics, while reconciling a reporting dataset (fictional study case R280-C057-1), a team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. 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 a file-based DataFrameWriter save operation to the explicit destination when no table registration is required.
- Extract fields with documented parsing expressions before SQL filters reference them.
- Benchmark supported ORC codec choices against real query and I/O patterns before deployment.
- Separate Delta and ordinary Parquet destinations and read each with its own supported format.
Explanation
Correct Answer
C:The observed defect follows from: Compression size alone does not establish query performance or processing cost. The appropriate correction is: Benchmark supported ORC codec choices against real query and I/O patterns before deployment. Confirm the result by verifying: Chosen compression meets storage and latency objectives with unchanged rows.
Incorrect Answers
A:Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required. The option targets a different stage or condition. The relevant failure is: Compression size alone does not establish query performance or processing cost. The needed repair is: Benchmark supported ORC codec choices against real query and I/O patterns before deployment.
B:Extract fields with documented parsing expressions before SQL filters reference them. That would not resolve the reported problem: A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. The source-supported intervention is: Benchmark supported ORC codec choices against real query and I/O patterns before deployment.
D:Separate Delta and ordinary Parquet destinations and read each with its own supported format. The recorded mechanism is: Compression size alone does not establish query performance or processing cost. The proposed action does not correct that mechanism; use: Benchmark supported ORC codec choices against real query and I/O patterns before deployment.
Question 282
At Northridge Retail, during a pipeline migration (fictional study case R280-C057-2), a team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. 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.
- `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output.
- Text sources expose raw line value unless parsing derives structured columns.
- Distinct table formats were placed in a shared physical location.
- Compression size alone does not establish query performance or processing cost.
Explanation
Correct Answer
D:A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. The supporting root cause is: Compression size alone does not establish query performance or processing cost. The appropriate remedy is: Benchmark supported ORC codec choices against real query and I/O patterns before deployment.
Incorrect Answers
A:`saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. This is not the root cause established for the reported condition: A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. The cause is: Compression size alone does not establish query performance or processing cost.
B:Text sources expose raw line value unless parsing derives structured columns. The observed failure instead follows from: Compression size alone does not establish query performance or processing cost. The alternative does not explain the same dependency.
C:Distinct table formats were placed in a shared physical location. This is not the root cause established for the reported condition: A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. The cause is: Compression size alone does not establish query performance or processing cost.
Question 283
At Northstar Payments, after a Spark runtime upgrade (fictional study case R280-C057-1), a team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. 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.
- Measure bytes, scan time and CPU for equal query workloads on both outputs.
- Inspect catalog for newly created tables and compare final output path.
- Inspect loaded schema and parsed sample event rows.
- Inspect the presence of `_delta_log` and unrelated file layout within the path.
Explanation
Correct Answer
A:A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. The useful diagnostic is: Measure bytes, scan time and CPU for equal query workloads on both outputs. That can confirm or refute: Compression size alone does not establish query performance or processing cost.
Incorrect Answers
B:Inspect catalog for newly created tables and compare final output path. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Measure bytes, scan time and CPU for equal query workloads on both outputs.
C:Inspect loaded schema and parsed sample event rows. The case requires a discriminating check before any change, not the offered alternative. Use: Measure bytes, scan time and CPU for equal query workloads on both outputs.
D:Inspect the presence of `_delta_log` and unrelated file layout within the path. The case requires a discriminating check before any change, not the offered alternative. Use: Measure bytes, scan time and CPU for equal query workloads on both outputs.
Question 284
At Cloudhaven Apps, when validating a daily batch (fictional study case R280-C057-2), a team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. 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.
- Required files exist without unexpected catalog objects.
- Host and severity are correctly derived from line content and queryable.
- Chosen compression meets storage and latency objectives with unchanged rows.
- Both datasets have reproducible reads under correct format semantics.
Explanation
Correct Answer
C:Chosen compression meets storage and latency objectives with unchanged rows. This demonstrates the intended effect of: Benchmark supported ORC codec choices against real query and I/O patterns before deployment. The prior failure was: A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries.
Incorrect Answers
A:Required files exist without unexpected catalog objects. Implementation or a check alone is not proof of success. The measurable end state is: Chosen compression meets storage and latency objectives with unchanged rows.
B:Host and severity are correctly derived from line content and queryable. The alternative cannot demonstrate that the issue has been corrected: A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. The required result is: Chosen compression meets storage and latency objectives with unchanged rows.
D:Both datasets have reproducible reads under correct format semantics. Implementation or a check alone is not proof of success. The measurable end state is: Chosen compression meets storage and latency objectives with unchanged rows.
Question 285
At Bayshore Healthcare, when reviewing an incremental load (fictional study case R280-C057-1), a team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries. 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 the change to the export sink and metadata cleanup if authorized.
- Apply the codec to the evaluated ORC dataset only.
- Add parsing only to the affected text feed.
- Move or correct only the mixed output location under change control.
Explanation
Correct Answer
B:The approved limit is: Apply the codec to the evaluated ORC dataset only. It avoids applying the corrective step beyond the stated failure: A team changes a large ORC output to a different compression setting and presumes smaller files imply faster queries.
Incorrect Answers
A:Limit the change to the export sink and metadata cleanup if authorized. The action does not preserve the identified scope boundary: Apply the codec to the evaluated ORC dataset only.
C:Add parsing only to the affected text feed. This does not enforce the required scope: Apply the codec to the evaluated ORC dataset only. The specific failure is: Compression size alone does not establish query performance or processing cost.
D:Move or correct only the mixed output location under change control. The action does not preserve the identified scope boundary: Apply the codec to the evaluated ORC dataset only.
Question 286
At Stonebridge Research, while reconciling a reporting dataset (fictional study case R280-C058-1), a pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. 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.
- Extract fields with documented parsing expressions before SQL filters reference them.
- Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required.
- Separate Delta and ordinary Parquet destinations and read each with its own supported format.
- Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax.
Explanation
Correct Answer
B:A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. The underlying cause is: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. The corrective step is: Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required. Validate the outcome: Required files exist without unexpected catalog objects.
Incorrect Answers
A:Extract fields with documented parsing expressions before SQL filters reference them. That would not resolve the reported problem: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. The source-supported intervention is: Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required.
C:Separate Delta and ordinary Parquet destinations and read each with its own supported format. That would not resolve the reported problem: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. The source-supported intervention is: Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required.
D:Create a DataFrame and temp view for the ORC path or use a supported direct-file SQL syntax. That would not resolve the reported problem: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. The source-supported intervention is: Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required.
Question 287
At Cedarline Telecommunications, during a pipeline migration (fictional study case R280-C058-2), a pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. 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.
- Text sources expose raw line value unless parsing derives structured columns.
- Distinct table formats were placed in a shared physical location.
- `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output.
- The path was never loaded or referenced using a supported SQL data-source form.
Explanation
Correct Answer
C:`saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. This accounts for the observed condition: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. The relevant verification is: Inspect catalog for newly created tables and compare final output path.
Incorrect Answers
A:Text sources expose raw line value unless parsing derives structured columns. The observed failure instead follows from: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. The alternative does not explain the same dependency.
B:Distinct table formats were placed in a shared physical location. The observed failure instead follows from: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. The alternative does not explain the same dependency.
D:The path was never loaded or referenced using a supported SQL data-source form. The observed failure instead follows from: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. The alternative does not explain the same dependency.
Question 288
At Cobalt Analytics, after a Spark runtime upgrade (fictional study case R280-C058-1), a pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. 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 loaded schema and parsed sample event rows.
- Inspect catalog for newly created tables and compare final output path.
- Inspect the presence of `_delta_log` and unrelated file layout within the path.
- Inspect session catalog entries and the actual file format/path.
Explanation
Correct Answer
B:Use this focused test: Inspect catalog for newly created tables and compare final output path. The test distinguishes the reported condition from alternatives by checking: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output.
Incorrect Answers
A:Inspect loaded schema and parsed sample event rows. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect catalog for newly created tables and compare final output path.
C:Inspect the presence of `_delta_log` and unrelated file layout within the path. That does not establish whether the stated cause is present: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output. The diagnostic is: Inspect catalog for newly created tables and compare final output path.
D:Inspect session catalog entries and the actual file format/path. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect catalog for newly created tables and compare final output path.
Question 289
At Summit Supply, when validating a daily batch (fictional study case R280-C058-2), a pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. 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.
- Host and severity are correctly derived from line content and queryable.
- Both datasets have reproducible reads under correct format semantics.
- Required files exist without unexpected catalog objects.
- The SQL query returns expected ORC rows under the intended schema.
Explanation
Correct Answer
C:Required files exist without unexpected catalog objects. This demonstrates the intended effect of: Use a file-based DataFrameWriter save operation to the explicit destination when no table registration is required. The prior failure was: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance.
Incorrect Answers
A:Host and severity are correctly derived from line content and queryable. Implementation or a check alone is not proof of success. The measurable end state is: Required files exist without unexpected catalog objects.
B:Both datasets have reproducible reads under correct format semantics. This is not the observed recovery outcome. Acceptance requires: Required files exist without unexpected catalog objects.
D:The SQL query returns expected ORC rows under the intended schema. Implementation or a check alone is not proof of success. The measurable end state is: Required files exist without unexpected catalog objects.
Question 290
At Granite Insurance, when reviewing an incremental load (fictional study case R280-C058-1), a pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. 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.
- Add parsing only to the affected text feed.
- Limit the change to the export sink and metadata cleanup if authorized.
- Move or correct only the mixed output location under change control.
- Register or address only that ORC data source.
Explanation
Correct Answer
B:The approved limit is: Limit the change to the export sink and metadata cleanup if authorized. It avoids applying the corrective step beyond the stated failure: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance.
Incorrect Answers
A:Add parsing only to the affected text feed. It is not the bounded choice for the stated condition: A pipeline writes files with `saveAsTable()` and unexpectedly creates catalog metadata not approved by governance. The permitted change must remain: Limit the change to the export sink and metadata cleanup if authorized.
C:Move or correct only the mixed output location under change control. The action does not preserve the identified scope boundary: Limit the change to the export sink and metadata cleanup if authorized.
D:Register or address only that ORC data source. This does not enforce the required scope: Limit the change to the export sink and metadata cleanup if authorized. The specific failure is: `saveAsTable` creates or writes a table relation, whereas the requirement was only an external file output.