Certified Associate Developer for Apache Spark Practice Test 31
Question 300
At Silverpeak Bioinformatics, when reviewing an incremental load (fictional study case R280-C060-1), a load path contains ordinary Parquet partitions and a Delta log, leading to undefined results when queried with one source format. 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.
- Move or correct only the mixed output location under change control.
- Change only the Delta dataset reader, not unrelated Parquet sources.
- Append only into the approved output dataset.
Explanation
Correct Answer
B:Keep the intervention within this boundary: Move or correct only the mixed output location under change control. The reported failure mechanism is: Distinct table formats were placed in a shared physical location.
Incorrect Answers
A:Register or address only that ORC data source. This does not enforce the required scope: Move or correct only the mixed output location under change control. The specific failure is: Distinct table formats were placed in a shared physical location.
C:Change only the Delta dataset reader, not unrelated Parquet sources. It is not the bounded choice for the stated condition: A load path contains ordinary Parquet partitions and a Delta log, leading to undefined results when queried with one source format. The permitted change must remain: Move or correct only the mixed output location under change control.
D:Append only into the approved output dataset. This does not enforce the required scope: Move or correct only the mixed output location under change control. The specific failure is: Distinct table formats were placed in a shared physical location.
Question 301
At Willowbank Software, after a Spark runtime upgrade (fictional study case R280-C061-1), a job creates a temporary view and assumes another Spark session can query it the next day. 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.
- Write and register the table with a valid partition column and test partition pruning.
- Use appropriate partition and file organization and measure actual filter performance rather than claiming an index.
- Save the DataFrame as a persistent managed or external table under the intended catalog and schema.
- Validate exact columns/types and use an approved schema evolution or correction process before overwriting.
Explanation
Correct Answer
C:Save the DataFrame as a persistent managed or external table under the intended catalog and schema. The technical or governance gap is: Session temporary views are not persistent catalog tables and disappear when their session ends. Check the affected state using: Query catalog metadata from a fresh SparkSession after the original session exits.
Incorrect Answers
A:Write and register the table with a valid partition column and test partition pruning. The option targets a different stage or condition. The relevant failure is: Session temporary views are not persistent catalog tables and disappear when their session ends. The needed repair is: Save the DataFrame as a persistent managed or external table under the intended catalog and schema.
B:Use appropriate partition and file organization and measure actual filter performance rather than claiming an index. The recorded mechanism is: Session temporary views are not persistent catalog tables and disappear when their session ends. The proposed action does not correct that mechanism; use: Save the DataFrame as a persistent managed or external table under the intended catalog and schema.
D:Validate exact columns/types and use an approved schema evolution or correction process before overwriting. The recorded mechanism is: Session temporary views are not persistent catalog tables and disappear when their session ends. The proposed action does not correct that mechanism; use: Save the DataFrame as a persistent managed or external table under the intended catalog and schema.
Question 302
At Seabrook Education, when validating a daily batch (fictional study case R280-C061-2), a job creates a temporary view and assumes another Spark session can query it the next day. 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 storage/table layout does not expose `event_date` as a partition column.
- Sorting a distributed table does not create a database-style secondary index with that performance guarantee.
- Session temporary views are not persistent catalog tables and disappear when their session ends.
- Writer schema was not reconciled with the target table contract before replacement.
Explanation
Correct Answer
C:Session temporary views are not persistent catalog tables and disappear when their session ends. This accounts for the observed condition: A job creates a temporary view and assumes another Spark session can query it the next day. The relevant verification is: Query catalog metadata from a fresh SparkSession after the original session exits.
Incorrect Answers
A:The storage/table layout does not expose `event_date` as a partition column. The observed failure instead follows from: Session temporary views are not persistent catalog tables and disappear when their session ends. The alternative does not explain the same dependency.
B:Sorting a distributed table does not create a database-style secondary index with that performance guarantee. This is not the root cause established for the reported condition: A job creates a temporary view and assumes another Spark session can query it the next day. The cause is: Session temporary views are not persistent catalog tables and disappear when their session ends.
D:Writer schema was not reconciled with the target table contract before replacement. This is not the root cause established for the reported condition: A job creates a temporary view and assumes another Spark session can query it the next day. The cause is: Session temporary views are not persistent catalog tables and disappear when their session ends.
Question 303
At Bluewater Energy, when reviewing an incremental load (fictional study case R280-C061-1), a job creates a temporary view and assumes another Spark session can query it the next day. 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.
- Query catalog metadata from a fresh SparkSession after the original session exits.
- Inspect table metadata, partition layout and query scan paths.
- Compare physical plan file scans and filter latency across keyed lookups.
- Diff existing catalog schema with incoming DataFrame schema.
Explanation
Correct Answer
A:The needed observation is: Query catalog metadata from a fresh SparkSession after the original session exits. The suspected failure is: Session temporary views are not persistent catalog tables and disappear when their session ends. The repair should only follow that check.
Incorrect Answers
B:Inspect table metadata, partition layout and query scan paths. The case requires a discriminating check before any change, not the offered alternative. Use: Query catalog metadata from a fresh SparkSession after the original session exits.
C:Compare physical plan file scans and filter latency across keyed lookups. That does not establish whether the stated cause is present: Session temporary views are not persistent catalog tables and disappear when their session ends. The diagnostic is: Query catalog metadata from a fresh SparkSession after the original session exits.
D:Diff existing catalog schema with incoming DataFrame schema. The case requires a discriminating check before any change, not the offered alternative. Use: Query catalog metadata from a fresh SparkSession after the original session exits.
Question 304
At Meridian Commerce, before a production rollout (fictional study case R280-C061-2), a job creates a temporary view and assumes another Spark session can query it the next day. 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.
- A day-filtered query reads relevant date partitions with unchanged results.
- Lookup latency meets measured targets with documented storage design.
- The new table passes schema tests and retains required dimension fields.
- The table is discoverable and queryable across sessions under approved access.
Explanation
Correct Answer
D:The table is discoverable and queryable across sessions under approved access. This demonstrates the intended effect of: Save the DataFrame as a persistent managed or external table under the intended catalog and schema. The prior failure was: A job creates a temporary view and assumes another Spark session can query it the next day.
Incorrect Answers
A:A day-filtered query reads relevant date partitions with unchanged results. Implementation or a check alone is not proof of success. The measurable end state is: The table is discoverable and queryable across sessions under approved access.
B:Lookup latency meets measured targets with documented storage design. Implementation or a check alone is not proof of success. The measurable end state is: The table is discoverable and queryable across sessions under approved access.
C:The new table passes schema tests and retains required dimension fields. This is not the observed recovery outcome. Acceptance requires: The table is discoverable and queryable across sessions under approved access.
Question 305
At Copperline Finance, while optimizing an ETL application (fictional study case R280-C061-1), a job creates a temporary view and assumes another Spark session can query it the next day. 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.
- Persist only the shared reporting relation.
- Rebuild partitioning only for this reporting table.
- Tune this table's layout; do not invent unsupported indexing semantics.
- Block or repair only the affected table overwrite.
Explanation
Correct Answer
A:The approved limit is: Persist only the shared reporting relation. It avoids applying the corrective step beyond the stated failure: A job creates a temporary view and assumes another Spark session can query it the next day.
Incorrect Answers
B:Rebuild partitioning only for this reporting table. This does not enforce the required scope: Persist only the shared reporting relation. The specific failure is: Session temporary views are not persistent catalog tables and disappear when their session ends.
C:Tune this table's layout; do not invent unsupported indexing semantics. The action does not preserve the identified scope boundary: Persist only the shared reporting relation.
D:Block or repair only the affected table overwrite. This does not enforce the required scope: Persist only the shared reporting relation. The specific failure is: Session temporary views are not persistent catalog tables and disappear when their session ends.
Question 306
At Pinecrest Media, after a Spark runtime upgrade (fictional study case R280-C062-1), a large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. 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 appropriate partition and file organization and measure actual filter performance rather than claiming an index.
- Validate exact columns/types and use an approved schema evolution or correction process before overwriting.
- Partition by a coarser meaningful date or other bounded field, keeping precise timestamps in columns.
- Write and register the table with a valid partition column and test partition pruning.
Explanation
Correct Answer
D:Write and register the table with a valid partition column and test partition pruning. The technical or governance gap is: The storage/table layout does not expose `event_date` as a partition column. Check the affected state using: Inspect table metadata, partition layout and query scan paths.
Incorrect Answers
A:Use appropriate partition and file organization and measure actual filter performance rather than claiming an index. The recorded mechanism is: The storage/table layout does not expose `event_date` as a partition column. The proposed action does not correct that mechanism; use: Write and register the table with a valid partition column and test partition pruning.
B:Validate exact columns/types and use an approved schema evolution or correction process before overwriting. The recorded mechanism is: The storage/table layout does not expose `event_date` as a partition column. The proposed action does not correct that mechanism; use: Write and register the table with a valid partition column and test partition pruning.
C:Partition by a coarser meaningful date or other bounded field, keeping precise timestamps in columns. That would not resolve the reported problem: A large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. The source-supported intervention is: Write and register the table with a valid partition column and test partition pruning.
Question 307
At Ironlake Networks, when validating a daily batch (fictional study case R280-C062-2), a large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. 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.
- Sorting a distributed table does not create a database-style secondary index with that performance guarantee.
- Writer schema was not reconciled with the target table contract before replacement.
- The chosen partition key has excessive cardinality for efficient file pruning and metadata operations.
- The storage/table layout does not expose `event_date` as a partition column.
Explanation
Correct Answer
D:Investigation should distinguish this specific mechanism: The storage/table layout does not expose `event_date` as a partition column. The related symptom is: A large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. The discriminating check is: Inspect table metadata, partition layout and query scan paths.
Incorrect Answers
A:Sorting a distributed table does not create a database-style secondary index with that performance guarantee. This is not the root cause established for the reported condition: A large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. The cause is: The storage/table layout does not expose `event_date` as a partition column.
B:Writer schema was not reconciled with the target table contract before replacement. The observed failure instead follows from: The storage/table layout does not expose `event_date` as a partition column. The alternative does not explain the same dependency.
C:The chosen partition key has excessive cardinality for efficient file pruning and metadata operations. This is not the root cause established for the reported condition: A large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. The cause is: The storage/table layout does not expose `event_date` as a partition column.
Question 308
At Valleywide Travel, when reviewing an incremental load (fictional study case R280-C062-1), a large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. 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 table metadata, partition layout and query scan paths.
- Compare physical plan file scans and filter latency across keyed lookups.
- Diff existing catalog schema with incoming DataFrame schema.
- Count unique partition values and directory/file sizes in a sample write.
Explanation
Correct Answer
A:The needed observation is: Inspect table metadata, partition layout and query scan paths. The suspected failure is: The storage/table layout does not expose `event_date` as a partition column. The repair should only follow that check.
Incorrect Answers
B:Compare physical plan file scans and filter latency across keyed lookups. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect table metadata, partition layout and query scan paths.
C:Diff existing catalog schema with incoming DataFrame schema. That does not establish whether the stated cause is present: The storage/table layout does not expose `event_date` as a partition column. The diagnostic is: Inspect table metadata, partition layout and query scan paths.
D:Count unique partition values and directory/file sizes in a sample write. This is not the focused evidence-gathering step. Verify the suspected mechanism with: Inspect table metadata, partition layout and query scan paths.
Question 309
At Harbor Data Labs, before a production rollout (fictional study case R280-C062-2), a large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. 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.
- Lookup latency meets measured targets with documented storage design.
- A day-filtered query reads relevant date partitions with unchanged results.
- The new table passes schema tests and retains required dimension fields.
- Metadata remains manageable while time predicates return complete rows.
Explanation
Correct Answer
B:Acceptance requires: A day-filtered query reads relevant date partitions with unchanged results. That directly tests whether the mechanism was corrected: The storage/table layout does not expose `event_date` as a partition column.
Incorrect Answers
A:Lookup latency meets measured targets with documented storage design. This is not the observed recovery outcome. Acceptance requires: A day-filtered query reads relevant date partitions with unchanged results.
C:The new table passes schema tests and retains required dimension fields. Implementation or a check alone is not proof of success. The measurable end state is: A day-filtered query reads relevant date partitions with unchanged results.
D:Metadata remains manageable while time predicates return complete rows. The alternative cannot demonstrate that the issue has been corrected: A large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. The required result is: A day-filtered query reads relevant date partitions with unchanged results.
Question 310
At Oakline Transportation, while optimizing an ETL application (fictional study case R280-C062-1), a large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. 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.
- Tune this table's layout; do not invent unsupported indexing semantics.
- Block or repair only the affected table overwrite.
- Redesign only the table partition column.
- Rebuild partitioning only for this reporting table.
Explanation
Correct Answer
D:Rebuild partitioning only for this reporting table. This limits the change while addressing: The storage/table layout does not expose `event_date` as a partition column. The expected outcome is: A day-filtered query reads relevant date partitions with unchanged results.
Incorrect Answers
A:Tune this table's layout; do not invent unsupported indexing semantics. The action does not preserve the identified scope boundary: Rebuild partitioning only for this reporting table.
B:Block or repair only the affected table overwrite. The action does not preserve the identified scope boundary: Rebuild partitioning only for this reporting table.
C:Redesign only the table partition column. It is not the bounded choice for the stated condition: A large external table is queried by day, but daily files are not laid out as partitions and every file is scanned. The permitted change must remain: Rebuild partitioning only for this reporting table.