Associate Cloud Engineer practice question · Planning and implementing a cloud solution
A company is moving an existing Apache Spark application, packaged as a JAR, from its on-premises Hadoop cluster to…
A company is moving an existing Apache Spark application, packaged as a JAR, from its on-premises Hadoop cluster to Google Cloud. The application must run with as few code changes as possible, on a managed service, so the team does not have to install or maintain Spark. What should the team do?
- ACreate a Dataproc cluster, then run gcloud dataproc jobs submit spark with the JAR and the cluster name
- BRewrite the application as an Apache Beam pipeline and run the pipeline on Dataflow
- CCreate a Compute Engine managed instance group and install Spark on each of its VMs
- DLoad the application's input data into BigQuery and rewrite the Spark logic as SQL queries
Show the answer and explanation
Correct answer: A) Create a Dataproc cluster, then run gcloud dataproc jobs submit spark with the JAR and the cluster name
Dataproc runs existing Spark jobs on managed clusters. Create a cluster and submit the job with gcloud dataproc jobs submit spark, with no rewrite and no self-managed Spark.
Why each option is right or wrong
- A) Correct. Dataproc is Google Cloud's managed Spark and Hadoop service. After you create a cluster, gcloud dataproc jobs submit spark --cluster=CLUSTER --region=REGION runs the existing JAR, given as --jar or --class with --jars, without changing the code.
- B) Incorrect. Dataflow is managed, but it runs Apache Beam pipelines. Porting Spark code to Beam is a major rewrite, which breaks the minimal-code-change requirement.
- C) Incorrect. This could run the JAR, but the team would have to install, configure, and maintain Spark themselves. That is the operational work the requirement asks to avoid.
- D) Incorrect. BigQuery is managed, but rewriting the Spark logic in SQL is a significant code change, and some Spark logic may not translate directly to SQL.
- Exam domain
- Planning and implementing a cloud solution · ~30% of Associate Cloud Engineer
- Question type
- Multiple choice (one answer)
Related Associate Cloud Engineer questions
- A company's on-premises DNS servers are authoritative for several internal domains.Planning and implementing a cloud solution
- A team publishes internal Python packages to an Artifact Registry standard repository and caches public PyPI packages…Planning and implementing a cloud solution
- A team manages its Google Cloud infrastructure with Terraform. They want to configure a feature that is still in…Planning and implementing a cloud solution
- A business-critical application runs on a Cloud SQL for MySQL instance in Enterprise edition, configured for high…Planning and implementing a cloud solution
All 60 free Associate Cloud Engineer questions by domain · 15 sample questions on one page
Practise the full Associate Cloud Engineer exam
This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.